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

Submit Program

Former Member
0 Likes
1,788

Hi Experts,

I have one query. I have one report. In selection screen I have one date field as select option.

Then I need to call one standard transaction from that report & pass the input parameter as date field. So that for a particular date I will get the data provided by standard transaction.

I wanted to know how I can use that data in my Z-program as I am calling standard transaction using date field & I wanted to use the data provided by that transaction code.

Any pointers will be helpful.

Regards,

Neha

7 REPLIES 7
Read only

former_member242255
Active Contributor
0 Likes
927

please check for some BAPI or FM to get the data as you are saying that you want the data from the standard transaction..

and then you can pass all the parameters for that FM or BAPI and get all the details..

Read only

Former Member
0 Likes
927

hi check this thread:

:[;

Read only

Former Member
0 Likes
927

Hi Neha,

Can u specify which transaction ur calling and what data u want to use in z prog.

Regards,

Sachin

Read only

peter_ruiz2
Active Contributor
0 Likes
927

Hi Neha,

1. Go the Transaction you wish to be executed.

2. Select the Date Field you wish to fill-up and press F1.

3. Click on the Technical Info

4. Get the Parameter ID of the Field.

5. Go to your program and use this code

SET PARAMETER '<Parameter ID>' FIELD <field name that contains the date value>

CALL TRANSACTION <Transaction Code>.

Regards,

Peter

Read only

Former Member
0 Likes
927

Hi

Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list.

DATA list_tab TYPE TABLE OF abaplist. 

SUBMIT report EXPORTING LIST TO MEMORY 
AND RETURN. 

CALL FUNCTION 'LIST_FROM_MEMORY' 
TABLES 
listobject = list_tab 
EXCEPTIONS 
not_found = 1 
OTHERS = 2. 

IF sy-subrc = 0. 
CALL FUNCTION 'WRITE_LIST' 
TABLES 
listobject = list_tab. 
ENDIF.

Read only

Former Member
0 Likes
927

Hi,

The following piece of code calls transaction ME23N and passes the parameter Purchase Order No as input.

SET PARAMETER ID 'BES' FIELD WA_ALL-PO_NO.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

Similarly find out the parameter ID from the transaction you require as explained above by Peter...

Regards.

Read only

dev_parbutteea
Active Contributor
0 Likes
927

Hi,

Go to SE93 and look up report name and then:

submit report_name

and return

with knumas = p_field1

with bonem = p_field2

with testmod = p_field3.

Regards.