08-27-2013 3:22 AM
Hi guys, it's my first time posting and I need your help.
I've configured an output type in Delivery Header with the processing program creating a Billing Document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE (with in background task addition). It's working fine during our tests. My analyst, however, wanted it to have some kind of message log so that the user can see if the Billing Documet is created successfully or not.
Can you guys give some suggestions on what kind of message log can be used in here? Any suggestions will be welcome! Thanks a lot!
Jenny
08-27-2013 10:10 AM
Hi Jenny,
if you use the output type (menu extras --> Delivery Output --> header) you could use the log of this part. The informations are stored in the CMFP table.
to update this log use the function module :
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
MSG_ARBGB = SYST-MSGID
MSG_NR = SYST-MSGNO
MSG_TY = SYST-MSGTY
MSG_V1 = SYST-MSGV1
MSG_V2 = SYST-MSGV2
MSG_V3 = SYST-MSGV3
MSG_V4 = SYST-MSGV4
EXCEPTIONS
OTHERS = 1.
Regards
Fred
08-27-2013 10:10 AM
Hi Jenny,
if you use the output type (menu extras --> Delivery Output --> header) you could use the log of this part. The informations are stored in the CMFP table.
to update this log use the function module :
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
MSG_ARBGB = SYST-MSGID
MSG_NR = SYST-MSGNO
MSG_TY = SYST-MSGTY
MSG_V1 = SYST-MSGV1
MSG_V2 = SYST-MSGV2
MSG_V3 = SYST-MSGV3
MSG_V4 = SYST-MSGV4
EXCEPTIONS
OTHERS = 1.
Regards
Fred
09-03-2013 9:06 AM