‎2009 Aug 19 11:17 AM
hi experts,
Iam passing selection screen parameters from Z REPORT to standard report FAGL_ACCOUNT_ITEMS_GL
using sumbit statement.
But in my z report , document type is there in selection screen.
I want to pass these values to standard report selection ( dco type is in FREE SELECTION ) .
My submit syntax is .
SUBMIT FAGL_ACCOUNT_ITEMS_GL
WITH SD_SAKNR IN S_SAKNR
WITH SD_BUKRS IN S_BUKRS
WITH X_OPSEL EQ ' '
WITH X_CLSEL EQ ' '
WITH X_AISEL EQ 'X'
WITH SO_BUDAT IN S_BUDAT
WITH PA_VARI EQ P_VAR
EXPORTING LIST TO MEMORY
AND RETURN.
How to add document type syntax in the above syntax.
kindly give me any suggestions.
Thanks & regards,
Raghul
Edited by: Raghul Gandhi on Aug 19, 2009 2:04 PM
‎2009 Aug 19 1:23 PM
You may use FM FREE_SELECTIONS_RANGE_2_EX and then use addition WITH FREE SELECTIONS when submiting standard program.
Refer [example at the very bottom|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@]
Regards
Marcin
‎2009 Aug 20 8:17 AM
hi,
thanks for ur reply.
Can u explain briefly .
Actually my z report contains following filelds on selection screen.
1. g/l account
2. company code
3. posting date
4.document type
5. layout
I want to pass these sel screen values to standard program FAGL_ACCOUNT_ITEMS_GL ( tcode FAGLL03 )
i had used submit syntax as follows.
SUBMIT FAGL_ACCOUNT_ITEMS_GL
WITH SD_SAKNR IN S_SAKNR
WITH SD_BUKRS IN S_BUKRS
WITH X_OPSEL EQ ' '
WITH X_CLSEL EQ ' '
WITH X_AISEL EQ 'X'
WITH SO_BUDAT IN S_BUDAT
WITH PA_VARI EQ P_VAR
EXPORTING LIST TO MEMORY
AND RETURN.
In this document type values are not passing to standard report (fagll03 ) becoz document type field is available in free selection.
How to go about this.
kindly provide sample code for this.
ANY suggestions from experts
Thanks & regards,
Raghul
Edited by: Raghul Gandhi on Aug 20, 2009 12:29 PM
‎2009 Aug 20 12:26 PM
As Marcin wrote you must use WITH FREE SELECTIONS to pass dynamic select-options, look at the sample SAP provided in the link he provided.
First read Abap documentation at SAP online help [WITH FREE SELECTIONS texpr |http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] in [SUBMIT - selscreen_parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] of [SUBMIT|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] (or press F1 on SUBMIT)
Also look if those notes are relevant for your system
- [Note 965988 - FAGLL03: 'Dynamic selections' are ignored|https://service.sap.com/sap/support/notes/965988]
- [Note 1105201 - FAGLL03: 'Custom selections' are ignored|https://service.sap.com/sap/support/notes/1105201]
Regards,
Raymond
‎2009 Dec 19 6:21 PM
Hi,
please check onmline help on SUBMIT, [addition 5 free selections|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@]
Regards, Clemens