The first time you use BAPI, you encounter several problems. Summarized below.
Pager FUNCTION 'bapi_patient_create' ExportingClient=*institution = ' * '*Patientid = ' '*Sap_bpartnerid = ' '*Sap_bpgroup =Patient_data =*testrun = ' '*transact_mode = ' N '*Importing*New_patient_data =*worst_returned_msgty =*TABLES*i_addresses =*I_add_phones =*e_addresses =*E_add_phones =*RETURN =*I_legal_rep =*E_legal_rep =.
After the call, no data can be created successfully (New_patient_data is empty). There are several possibilities for this issue:
- The incoming data is incorrect, and you can see the error in the parameter return . You can see the input help in the foreground (transaction code NP01), or in the related tables (NPNT), to learn the correct way to enter.
- The runtime uses the test mode (TestRun = ' X ').
- After the call, no bapi_transaction_commit is used.
After the call, the data in the returned New_patient_data is normal, but the address data is not updated (e_addresses is empty), possibly because:
There is no correspondence between the Addr_no in the incoming patient_data and the addr_no in i_addresses.
After the call, the data in the returned New_patient_data is normal, but the additional phone number data is not updated (E_add_phones is empty):
- There is no correspondence between the addr_no in the incoming patient_data and the addr_no in I_add_phones.
- I_addresses-other_phones is not an ' X '. The i_add_phones will only take effect if the incoming i_addresses-other_phones is ' X ' .
This article link: http://www.cnblogs.com/hhelibeb/p/6132826.html
About Bapi_patient_create (Patient master data creation)