Application Development 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: 

Message Log for output type in Delivery header

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
0 Kudos

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

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

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

0 Kudos

Thanks! This helped a lot!