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

Problem in Select-option in Module Pool Programming

former_member186491
Contributor
0 Likes
802

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.

5 REPLIES 5
Read only

Former Member
0 Likes
710

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

Read only

0 Likes
710

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.

Read only

0 Likes
710

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

Read only

0 Likes
710

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.

Read only

0 Likes
710

Hi Ram,

Thanks for sharing your valued time with me.

Thanks.

Kumar Saurav.