Application Development 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: 

call transaction from another program

kunal1812
Explorer
0 Kudos

I want to call tcode with user input,

I am using

1. Parameter id for passing user input

2.‘call transaction and skip first screen’.

but the tcode is having an alv on which i have to select an entry first, then only select options will come where i can fill the user input using parameter id.


i am stuck at how to pass that alv entry which is the first step, with call transaction, the alv entries do not have parameter id’

Thanks

8 REPLIES 8

FredericGirod
Active Contributor
0 Kudos

did you try to record using transaction SHDB ?

raymond_giuseppi
Active Contributor
0 Kudos

Is it a standard transaction (it would be difficult, if not impossible, to process some ALV events in a batch-input technology)

If it is a specific transaction you can pass the required information into memory and the specific transaction would read, process and delete this data. (Theorically you could also code this behavior in a standard transaction using some implicit or explicit Enhancments)

If the transaction is some list/menu/cockpit transaction, look for individual transactions or BAPI tool that could execute the same process on the selected object

Sandra_Rossi
Active Contributor
0 Kudos

It's unclear what are the technical elements of your screens. Maybe it's possible, maybe it's not. Please clarify that.

kunal1812
Explorer
0 Kudos

Tcode is standard.

first screen of tcode is split screen, on the left side pf screen- there is alv, alv is having A B C D entries, when user double clicks on aly of thses entries then corresponding select options will appear on right side of the first screen.

I want to call this tcode, i am having all the necessary inputs including A B C D and their respective select options as per user input. How can I achieve this?

1. i want to call this tcode form another program

2. Bdc is not recommended here

Sandra_Rossi
Active Contributor
0 Kudos

If it's standard, then please tell us the name so that we can look at the screens, ans see how it was designed by SAP.

kunal1812
Explorer

MDS_LOAD_COCKPIT

Sandra_Rossi
Active Contributor
0 Kudos

I don't know but I understand that it's a complex screen (Enhancements to MDS_LOAD_COCKPIT – ECC EHP8 SP15 | SAP Blogs) using Control Framework extensively and it will be difficult to automate it with Batch Input.

Workarounds:

  • Is there a basic transaction code which does the same without Control Framework?
  • Is there a BAPI to do the same?
  • Is SAP GUI Scripting an option? (the user needs to run it online)
  • Debug the transaction code to see what classes are called (CL_MDS*, MDS_*, etc.), and do the same.

0 Kudos

I agree with sandra.rossi , In fact, this is a complex cockpit transaction, so run an Abap trace when executing the actions you want to replicate, and identify the selection criteria and the classes or programs that are executed. Then build your own wrapper program to run the same process, but I would forget about the idea of running this transaction programmatically without too much of a struggle.

(You could also debug some execution, for example set a break-point at start of form START_SYNC_PROCESS_100 of MDS_LOAD_COCKPIT.