‎2009 Aug 12 7:10 AM
Hi all ,
I have a requirement of writing a BDC for QM02 in an update function module .
So I am using BDC_INPUT .
When this FM gets triggered in the program , I am getting sy-subrc 0 , but the notification (output of QM02 tcode ) is not getting created .
When i run the session manually in SM35, then my notification is created .
Any specific parameters I need to send to the FM so that the notification is created in the program itself rather than explicitly running SM35
Please help ...
Supriya
‎2009 Aug 12 12:56 PM
Hi,
Use the submit statement for the program rsbdcsub in your BDC code.
And use the selscreen_parameters of RSBDCSUB IN the above program.
SUBMIT {rep|(name)} [selscreen_options].
Here rep_name is RSBDCSUB.
Try with this....
Regards,
Rajesh
‎2009 Aug 12 1:32 PM
The problem is that My function module is called in an UPDATE task and in UPDATE task , we cannot user call transaction or submit .
Is there any solution to this ?
‎2009 Aug 12 2:31 PM
You may create a function module to be called IN BACKGROUND TASK (tRFC) with destination 'NONE'. You may also run in aRFC with NONE but you would then have to write a custom failure recovery procedure, while tRFC failures are handled via SM58 transaction (ask admins to be sure they review SM58 regularly). A drawback of that is that you can't retrieve parameters back from these function modules.
Otherwise you may use a background job of course, you'll have to write a custom failure recovery procedure also.
‎2009 Aug 13 6:01 AM
Hi Sandra Rossi
Can you please elaborate your answer .
Pls provide some sample code if any .
Thanks in advance
‎2009 Aug 13 9:15 AM
please read the official doc about these topics, and then refine your question (or if you know what are background tasks, rfc, etc., please refine your question)
‎2009 Aug 13 3:39 AM
HI supriya,
jus check with ur update request when ur fm triggered . use tx sm14 u will see the generated update request and its failure.
regards,
vinod.
Edited by: VINODH KUMAR R on Aug 13, 2009 4:54 AM