‎2010 Mar 26 4:26 PM
Hi,
I'm making one module pool programming. In that, I've to make select-option. For that I'm using this command --
1) In PBO --
CALL SUBSCREEN sub INCLUDING 'YBOE_PRINT' '5100'.
2) In PAI --
CALL SUBSCREEN sub.
But, Syntax Error is generated as below --
"." or "ID.........FIELD" expected after "SUBSCREEN"
Please suggest.
Thanks.
Kumar Saurav.
‎2010 Mar 26 4:37 PM
HI Kumar,
Check this thread hope this would solve your issue.
http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html
Regards
Ramchander Rao.K
‎2010 Mar 26 5:12 PM
Hi Ramchander,
Thanks for replying. But, even if I changed Prog_Name with term 'repid', that same error regarding
"." or "ID ... FIELD ..." expected after "SUBSCREEN"
is coming up.
I guess, there is any step missing.
Lemme describe what I'm doing in points --
1) I declared SELECTION-SCREEN with screen no --
SELECTION-SCREEN BEGIN OF SCREEN 5100 AS SUBSCREEN.
PARAMETERS : p_bukrs TYPE ekko-bukrs OBLIGATORY DEFAULT '1000'.
SELECT-OPTIONS: kunnr FOR kna1-kunnr.
select-options: gjahr for bsid-gjahr.
select-options: bank for bsed-bank.
select-options: budat for bsid-budat.
SELECTION-SCREEN END OF SCREEN 5100.
2) Then I made a call in PBO as given above.
3) Finally, a call to that subscreen is made in PAI - again as given above.
When I checked that, this gave the error.
Are you looking any erroneous step ...?
Please guide.
Thanks.
Kumar Saurav.
‎2010 Mar 26 6:40 PM
HI,
I am using ECC6.0, When i didnot provided SUBSCREEN AREA on the screen it gave me syntax error.
After creating SUBSCREEN AREA it was OK
Check whether you have created the Sub Screen Area SUB on the Main Screen.
CALL SUBSCREEN SUB INCLUDING SY-REPID SY-DYNNR.
Cheerz
Ram
‎2010 Mar 27 4:56 AM
Hi Ram,
Thanks for replying. I have already made one subscreen area named SUB.
Can you please confirm whether the error on not defining subscreen was same as of mine..?
Actually, I've checked the syntax as well - as to whether I'm making any mistake or not - but, I'm unable to figure it out.
I followed as on the link --
[http://wiki.sdn.sap.com/wiki/display/ABAP/Select-OptionsinModulePoolProgramming]
Please guide.
Thanks.
Kumar Saurav.
‎2010 Apr 07 6:28 AM
Hi Ram,
Thanks for sharing your valued time with me.
Thanks.
Kumar Saurav.