‎2009 Mar 13 5:58 AM
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
‎2009 Mar 13 6:07 AM
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..
‎2009 Mar 13 6:09 AM
‎2009 Mar 13 6:10 AM
Hi Neha,
Can u specify which transaction ur calling and what data u want to use in z prog.
Regards,
Sachin
‎2009 Mar 13 6:11 AM
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
‎2009 Mar 13 6:14 AM
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.
‎2009 Mar 13 6:18 AM
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.
‎2009 Mar 13 6:25 AM
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.