‎2008 Dec 05 10:44 AM
Hi all,
I made an RFC function that uses BAPI_GOODSMVT_CREATE.
My problem is now to get automatically the output message (defined on the customizing) for the material document.
To do this I've first tried to set the parameter 'NDR' to 'X' before calling the BAPI, but it was not workinig.
It works if I set it in the User Parameters, but.... only when I'm running the function with SE37.
When the function is called from the external system... it doesn't work
The RFC function is called always with the same user and I setted the NDR parameter on for this user.
Somebody can tell me why it's not working and where I'm wrong?
The only difference is that my user is a dialog user (with gui) and the external systen user is a communication user (without gui). Can be this the reason? Do I have any possibility to solve this issue?
Thanks!
P.S. Also an easy way to create the message after the bapi is called can be usefull
‎2008 Dec 06 11:23 AM
Hi,
You need to loop over the return internal table of type bapiret2 & then populate your own internal table.
Best regards,
Prashant
‎2008 Dec 08 7:53 AM
Thank you for your answer... but .. what do you mean?
My problem is that the goods receipts labels are not printed using the BAPI, also if I set the user parameter NDR to value 'X'.
It seemst that setting user parameters for a communication user doesn't work!
‎2008 Dec 08 9:17 PM
Hello,
The RFC function is called always with the same user ...
The only difference is that my user is a dialog user (with gui) and the external systen user is a communication user ...
Are you sure, that the user parameter NDR = 'X' (capital letter!) is set for the "communication user"?
Best regards
Stephan
‎2008 Dec 09 7:54 AM
‎2008 Dec 09 8:04 AM
Hello,
OSS note 520813 (https://service.sap.com/sap/support/notes/520813) question 12, describes the solution.
You have to fill the field PR_UNAME in the headerstructure with an user id. This user id must have set the user parameter NDR = 'X' (not the communication user). You also have to do all customizing settings for this user.
Best regards
Stephan
‎2008 Dec 09 8:56 AM
Hi Stephan,
Thank you so much for your answer!!!
So simple and it seemst to work
I've only tried with SE37 (giving differents users) and it's only printing the labels for the ones with the NDR parameter on!
Unfortunatly I must wait tomorrow to make a real test (calling the function from the external system) but I think it will be good!