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 with free selection for FAGLL03

Former Member
0 Likes
2,742

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

4 REPLIES 4
Read only

MarcinPciak
Active Contributor
0 Likes
1,634

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

Read only

0 Likes
1,634

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

Read only

0 Likes
1,634

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

Read only

Clemenss
Active Contributor
0 Likes
1,634

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