2011 Aug 02 9:39 PM
I am currently calling the BAPI BAPI_BUPA_ADDRESS_ADD and the BAPI BAPI_TRANSACTION_COMMIT after BAPI BAPI_BUPA_ADDRESS_ADD. The process is working in my development system and QA system but not in production system. The input values to BAPI_BUPA_ADDRESS_ADD are populated when I do the call. For some reason the Addresses are not created or updated in Production but are updated and created in the other systems. Any ideas on what could be causing this?
STEP1:
CALL FUNCTION 'BAPI_BUPA_ADDRESS_ADD'
IN BACKGROUND TASK
AS SEPARATE UNIT
EXPORTING
businesspartner = wa_cs009_infile-buspartner
addressdata = aperdatab
accept_error = zif_ut=>cc_on " no errormessages for regional structure
IMPORTING
addressguid = lv_address_guid
TABLES
bapiadtel = aperteltab
bapiadfax = aperfaxtab
bapiadsmtp = apersmtptab
bapiad_rem = aperadremtab.
STEP2:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ''.
I am currently calling the BAPI BAPI_BUPA_ADDRESS_ADD and the BAPI BAPI_TRANSACTION_COMMIT after BAPI BAPI_BUPA_ADDRESS_ADD. The process is working in my development system and QA system but not in production system. The input values to BAPI_BUPA_ADDRESS_ADD are populated when I do the call. For some reason the Addresses are not created or updated in Production but are updated and created in the other systems. Any ideas on what could be causing this?
STEP1:
CALL FUNCTION 'BAPI_BUPA_ADDRESS_ADD'
IN BACKGROUND TASK
AS SEPARATE UNIT
EXPORTING
businesspartner = wa_cs009_infile-buspartner
addressdata = aperdatab
accept_error = zif_ut=>cc_on " no errormessages for regional structure
IMPORTING
addressguid = lv_address_guid
TABLES
bapiadtel = aperteltab
bapiadfax = aperfaxtab
bapiadsmtp = apersmtptab
bapiad_rem = aperadremtab.
STEP2:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ''.
2011 Aug 02 11:24 PM
what are you seeing in RETURN table after the main bapi call...
Do you see lv_address_guid getting populated?
2011 Aug 03 3:10 AM
Hi Steve,
Have you tried entering data manually in PA30 for IT0006? Check first if you have the right authorization to maintain Addresses in PA30.
Regards,
Peter
2011 Aug 03 11:28 AM
Hi Steve,
Try passing WAIT = 'X' to the BAPI_TRANSACTION_COMMIT FM.
Regards,
Ganga
2011 Aug 03 7:38 PM
2011 Aug 04 9:22 PM
The problem was with authority on the BATCH userid that was used to run the job in the production system. The batch userid did have the correct authority to perform updates in the development and QA systems thats why it was working in those systems. I appreciate the responses from this forum in pointing me in the right direction.
Thanks,
Steve Atlas
Edited by: Steve Atlas on Aug 4, 2011 10:25 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |