Application Development and Automation 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: 
Read only

BDC_INPUT not working

Former Member
0 Likes
760

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

6 REPLIES 6
Read only

Former Member
0 Likes
713

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

Read only

0 Likes
713

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 ?

Read only

0 Likes
713

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.

Read only

0 Likes
713

Hi Sandra Rossi

Can you please elaborate your answer .

Pls provide some sample code if any .

Thanks in advance

Read only

0 Likes
713

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)

Read only

Former Member
0 Likes
713

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