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

CAll Tcode TBDM

Former Member
0 Likes
1,667

HI,

I want to call 'TBDM' transaction code from custom proram can anybody tell me the all procedure including step (if possible code as a prototype)

thanks.

10 REPLIES 10
Read only

Former Member
0 Likes
1,374

Hi,

CALL TRANSACTION 'TBDM'.

Thanks,

Naren

Read only

Former Member
0 Likes
1,374

CALL TRANSACTION 'TBDM'.

That's it.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,374

This is a report progam, so you can simply call it by using the SUBMIT statement.



submit RFTBFF00 via selection-screen
          and return.



Now if you want to pass parameters to this program, you can do so simply by using the WITH extension.

submit RFTBFF00 via selection-screen
     with file = 'C:test.txt'
          and return.

Regards,

Rich Heilman

Read only

0 Likes
1,374

If you want it to execute automatically you can pass the appropriate parameters using WITH and get rid of the VIA SELECTION-SCREEN extension. This will skip the selection screen and execute the program.



submit RFTBFF00  
      with file = 'C:test.txt'
          and return.


CALL TRANSACTION may not be a good solution in this case, since it is a report program.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,374

I am callling that tcode but how can I pass the value ot that tcode's selection screen.

Read only

0 Likes
1,374

If you check out my previous answers you will see that you can pass values to the selection screen by SUBMITing the program instead of CALLing the TRANSACTION. You can use the WITH extension of the SUBMIT statement.

Please see the above code.

Regards,

Rich Heilman

Read only

0 Likes
1,374

Here would be the complete call. You can change the parameters as you see fix. Remember when setting a radiobutton in a group, you need to make sure that the other radiobuttons in the group are = space.

submit RFTBFF00 via selection-screen

with file = 'C:\test.txt'

with pcupload = 'X' " Upload

with par_prs = 'X' " Exchange Rates

with par_men = space " Exchange Rates

with par_rfn = 'X' " Data Provider Direct

with par_rfd = space " Data Provider In Direct

with par_feed = space " Data Provider

with log = 'X' " Error File - Generate

with logfile = 'C:\SAPPCADM\errortest.log'

with logdwnld = 'X' " Error File -Download

with par_Tst = 'X' "Output - Test Mode

with par_dsal = space "All

with par_dsfl = 'X' "Errors

with par_dsok = space "Correct

with par_var = space "Variant

and return.

PLease make sure to award points for helpful answers and mark your posts as solved when solved completely. Thanks.

Regards,

Rich Heilman

Read only

0 Likes
1,374

Can you please help me to prepare the file format for this transaction TBDM.If you have some test data record can you just paste in this thread.

Read only

Former Member
0 Likes
1,374

can you tell me why you want me to go with the submit rather than call transaction. If I have solid reason then I can represent that to the functional people. (I already did the program with all the way and it working fine all the way but I did in call transaction to call TBDM with the same way as we do for BDC thats why Iam asking this question that is there any other way we can call transaction and also pass the section options. my proogram has also has the ability to do from submit also)

Read only

0 Likes
1,374

Why do a BDC to fill the values of a report program, when the SUBMIT statement provides the functionality for you. The CAll TRANSACTION statement is usually used to call module pool programs not reports.

You should always try to stay away from BDCs whenever possible, in this case, the SUBMIT is the better way to go.

Regards,

Rich Heilman