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 transaction with parameter

Former Member
0 Likes
29,086

All,

I want call a custom transaction in from another custom program and I want to set the input parameter in the destination report.

The parameter has been declared this way:

PARAMETERS: p_batch LIKE mcha-charg


and the parameter ID associated to the data element is CHA.


So I call the transaction this way:


set parameter ID 'CHA' field XXXXXX-XXXXXXX.


call transaction Z123.


But when i execute it the value is not being populated,


Any idea?


Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
11,358

Hi Jon,

Did you use get parameter id in the other program(which is assigned to the tcode Z123)?

Regards,

Mounika

All,

I want call a custom transaction in from another custom program and I want to set the input parameter in the destination report.

The parameter has been declared this way:

PARAMETERS: p_batch LIKE mcha-charg


and the parameter ID associated to the data element is CHA.


So I call the transaction this way:


set parameter ID 'CHA' field XXXXXX-XXXXXXX.


call transaction Z123.


But when i execute it the value is not being populated,


Any idea?


Regards

8 REPLIES 8
Read only

Former Member
0 Likes
11,358

This message was moderated.

Read only

0 Likes
11,358

This message was moderated.

Read only

Former Member
0 Likes
11,359

Hi Jon,

Did you use get parameter id in the other program(which is assigned to the tcode Z123)?

Regards,

Mounika

Read only

0 Likes
11,358

Hi Mounika,

No I have not written it, anyway i have used bdc_data and now it works.

Regards

Read only

0 Likes
11,358

It works, thanks i knew i forgot something.

Read only

0 Likes
11,358

Hi Jon,

Yeah its fine. You can even use SUBMIT as others mentioned and even use EXPORT, IMPORT statements.

If your issue got solved then please close the thread.

Regards,

Mounika

Read only

enric101
Active Contributor
0 Likes
11,358


Hi Jon,

One option to call transaction with parameter is using USING bdc_tab. Please check the follow link:

Call Transaction using BDC data | SCN

The other possibility is call program (if it is a report) like:

SUBMIT (your report)

WITH  (Your parameter) IN  p_batch

AND RETURN.

Regards,

Enric

Read only

Former Member
0 Likes
11,358

This message was moderated.