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

run bdc automatically

Former Member
0 Likes
2,282

hiii

is there a funtion module that can execute the batch automatically without passing through the SM35

i am using batch input (OPEN CLOSE group)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,752

Hi,

Use report RSBDCSUB.

submit rsbdcsub and return

with mappe = batchi.

Or Also:

have perform process_session statement after BDC

form process_session.

submit rsbdcsub

using selection-set 'XXX'

to sap-spool without spool dynpro

and return.

endform. " process_session

And most important to create a VARIANT with same name (as session)in RSBDCSUB.

Reward points if found helpful…..

Cheers,

Chandra Sekhar.

14 REPLIES 14
Read only

Former Member
0 Likes
1,752

Hi,

U can use call tr method in background method no.

regards,

desha

Read only

Former Member
0 Likes
1,752

howww?

i need to give the option to the user to decide if he want to process in background or foreground

Read only

Former Member
0 Likes
1,753

Hi,

Use report RSBDCSUB.

submit rsbdcsub and return

with mappe = batchi.

Or Also:

have perform process_session statement after BDC

form process_session.

submit rsbdcsub

using selection-set 'XXX'

to sap-spool without spool dynpro

and return.

endform. " process_session

And most important to create a VARIANT with same name (as session)in RSBDCSUB.

Reward points if found helpful…..

Cheers,

Chandra Sekhar.

Read only

0 Likes
1,752

when you submit program . i don't want the user to enter values for RSBDCSUB.

do you have any sample code

Read only

0 Likes
1,752

Hi

Chandra shekar,

acn u pls explain me deatil abt RSBDCSUB or if u acn can u pls send me the code.

My mail id ; jagadeesh.bachu@gmail.com

Thanks & Regards

Jagdeeshwar.B

Read only

Former Member
0 Likes
1,752

anyone have any idea pleazzzz

do we jave to use job_submit for that

Read only

Wil_Wilstroth
Active Participant
0 Likes
1,752

hi newbie82.c,

I had this similar experience like yours where user wants to automate a batch session after creating it but doesn't want to go to sm35.

What I did:

1. I do a bdc recording of sm35 and put the bdc code into the same program that does the OPEN and CLOSE GROUP...

So it means, after do a Batch (BDC) then I will also do another BDC for SM35 to automate it from the same program...

That solve my customer's requirement...

I hope this solve your problem too...

Thanks

William Wilstroth

Message was edited by:

william wilstroth

William Wilstroth
Read only

0 Likes
1,752

don't you think there is other way mo re simple

what abot FM JOB_OPEN

JOB_CLOSE

JOB_SUBMIT

Read only

0 Likes
1,752

Hi newbie82.c,

Yes you can use that 3 FMs.

Thanks

William Wilstroth

William Wilstroth
Read only

0 Likes
1,752

the 3 FM will it seem to me that it will run in background.

but what if user what to run the BDC in foreground

Read only

0 Likes
1,752

If user want BDC in foreground use a CALL TRANSACTION and don't create a BDC butt fill a BDCDATA structure table and then

CALL TRANSACTION 'transaction' USING itab

You can specify the way to process in OPTIONS and MODE parameters.

Look at

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/fa/09715a543b11d1898e0000e8322d00/frameset.htm">Using CALL TRANSACTION USING for Data Transfer</a>

something like

if foreground is initial.

BDC_OPEN_GROUP

endif.

fill bdcdata

if foreground is initial.

BDC_INSERT

BDC_CLOSE_GROUP

SUBMIT RSBDCSUB WITH MAPPE = group_name

else.

CALL transaction USING data MODE mode.

endif.

Regards

Read only

0 Likes
1,752

but with call transaction you can't load file from user desktop

Read only

0 Likes
1,752

You load the data from desktop file and use it to build the bdcdata table, then you call the transaction exactly the same way you create the BDC.

=> Look at online help for CALL TRABSACTION or use the link i provided earlier

Regards

Read only

Former Member
0 Likes
1,752

any can advise on code sample for releasing sesion without using SM35