SAP for Healthcare Discussions
Foster discussions about patient care, cost reduction, and operational excellence in healthcare organizations using SAP. Join the conversation.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload of the patient with the BAPI_PATIENT_CREATE

Former Member
0 Kudos
317

Hello!

Could you help me i nfollowing question:

For initial upload of patient we try to use functional module BAPI_PATIENT_CREATE.

-


piece of code when functional module is being called----


CALL FUNCTION 'BAPI_PATIENT_CREATE'

EXPORTING

client = sy-mandt

institution = ipat-einri

  • PATIENTID = ' '

patient_data = patient_data

testrun = ' '

  • transact_mode = 'N' "/'S'

IMPORTING

new_patient_data = new_patient_data

worst_returned_msgty = worst_returned_msgty

TABLES

i_addresses = i_addresses

i_add_phones = i_add_phones

e_addresses = e_addresses

e_add_phones = e_add_phones

return = return

-


AS a result we see in debugging: numbers for the patients are reserved from the number ranges ISH_NPAT, Sy-Subrc = 0, table "return" is empty, teables "new_patient_data" and "e_addresses" are correctly filled.

But table NPAT is empty. Patients master data have not been created.

What the reason of it? May be smth special in BAPI?

1 ACCEPTED SOLUTION

Claudius
Product and Topic Expert
Product and Topic Expert
0 Kudos
221

Hi Olga,

please have a look at BAPI_TRANSACTION_COMMIT to save your changes in the database.

Regards,

Claudius

View solution in original post

2 REPLIES 2

Claudius
Product and Topic Expert
Product and Topic Expert
0 Kudos
222

Hi Olga,

please have a look at BAPI_TRANSACTION_COMMIT to save your changes in the database.

Regards,

Claudius

Former Member
0 Kudos
221

Thank you a lot, Claudius!

It works))

Regards

Olga