‎2022 Oct 06 3:56 PM
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
‎2022 Oct 06 4:39 PM
Do you perform a COMMIT after each BAPI call or just once for all of the calls?
‎2022 Oct 06 5:39 PM