Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue using BAPI_HU_PROCESS_MSG_DIRECT serveral times

alexandreourth
Active Participant
0 Likes
1,235

Hello experts,

I am having an issue with a standard behaviour when calling several times the function BAPI_HU_PROCESS_MSG_DIRECT.

In TNAPR, the entry looks like this:

The first time executing this MF, the system calls ENTRY_2 from SDPACKDR to print a label. Then it calls the second program ZMM00212 but it fails inside but it's "normal". The thing is, the standard has already moved the field TNAPR-PGNAM2 into TNAPR_PGNAM, same for RONAME.

It means that SDPACKDR is being replaced by ZMM00212 so in TNAPR, i have two times this program....

Now when i execute the second times my BAPI, TNAPR is not recalculated (data kept in buffer) and there is no more the program SDPACKDR/ENTRY_2 so no label is printed. Same thing for third call and so on...

No sap note found...

Any ideas?

Best regards,

Alexandre

2 REPLIES 2
Read only

thkolz
Contributor
0 Likes
1,150

Do you perform a COMMIT after each BAPI call or just once for all of the calls?

Read only

0 Likes
1,150

After each call.