BAPI_GOODSMVT_CREATE: printing GR/GI slip
I need to print the GR/GI slip using BAPI_GOODSMVT_CREATE.
There are two fields in header structure (GOODSMVT_HEADER) to fill:
I have filled the first one for example. with 1 (for individual slip) and set X on the second one but it doesnt work.
Using the parameter NDR like
(DATA l_ndr TYPE c VALUE X.) SET PARAMETER ID 'NDR' FIELD l_ndr.
before calling BAPI doesnt work either.
When I set the parameter-id using transaction su01 (user maintenance) the BAPI prints permanently regardless of wihich fields are filled or not filled. I need the printing only if it is required.
Any ideas? Thank you.
P.S.: If it is necessary to know: The print flag by transaction 'mb01' works correct.