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

Module pool problem.

Former Member
0 Likes
1,695

Hi Chaps,

Please help me out of this problem. realted to Module pool

I am creating one screen which is similar to the standard screen but i am adding one more field in screen.

Every things i have placed it on the screen now the thing is i have used structure 'RQM01' in Data Dict for putting the fields on the screen

screen names are: <b>RQM01-FERTAUFNR

RQM01-VERID.</b> Etc.

<b>Now the Problem is if i make a validation on the screen it is not recognising this field. Error is 'Field RQM01-FERTAUFNR ' is unknown.</b>Please help me what to do.

Waiting for your precious reply

19 REPLIES 19
Read only

Former Member
0 Likes
1,665

Hi,

While adding a field on the screen, what did you enter in the field name ? Is it the same as defined in the program ?

Reward points if the answer is helpful.

Regards,

Mukul

Read only

Former Member
0 Likes
1,665

HI,

I believe u need to declare the table in TOP INclude..

Regards

CNU

Read only

0 Likes
1,665

field name is same as it is with the structure name with the field name .

Where should i inclue the table on top can you help me

Read only

0 Likes
1,665

Hi Clemens,

Thanks for the reply my field is present inthe Chain EndChain.

Can you please figure out why it is not identifying in the filed

. <b>In Flow logic it identifies the field and not in the code(Include)</b>

Read only

0 Likes
1,665

IN top include...

TAbles: RQM01.

i think this command already there just add RQM01 to the list of tables in TOP INclude.

Regards

CNU

Read only

0 Likes
1,665

Hi Srinu,

how can i find the TOP include

Read only

0 Likes
1,665

Hi,

clcik on the Display Object list button in application tool bar in ur program. (CTRL + SHFT + F5 )

then it looks like SE80 trxn screen

and left side u can see the details fo ur module pool... screens, transaction, includes, fm, dicationary, ....

in includes go to TOP INCLUDE...

it will be like... LZprogramTOP

in that declare the table.

REgards

CNU

Read only

0 Likes
1,665

Hi Srinu,

Thanks alot for the reply. Now it is not giving me any error in the code. But now i am not able to set the break point on the code.

<b>Even once the screen comes up then after i enter '/h' in command line and after wards i press enter button it is not responding me. can you please tell me why it so</b>

<b>Like i created on Message but when i try to set a breakpoint it is not coming.

Can you please why this is happening.</b>

Read only

0 Likes
1,665

PAI of the screen is not executed. why i really dont know.

Can you please tell me why

Read only

0 Likes
1,665

PAI triggers only when user gives a command on screen like buttons or any...

check the code for the screen buttons and their function codes which r given correct or not in PAI..

and if possible paste the code of PBO and PAI.. so we can tell u what is exactly happenned... without seeing code.. it is hard to assume..

Regards

CNU

Read only

0 Likes
1,665

Actually i am changing the existing standard sap screen to customised screen.

reason is i haven't entered any button on hte screen. I will put and let you know

Read only

0 Likes
1,665

Hi Srinu,

Screen is comming but the neither PBO or PAI is not executing .

Can you please tell me why

Flow logic code is :


PROCESS BEFORE OUTPUT.
 MODULE STATUS_0150.
* MODULE FELDAUSWAHL.

PROCESS AFTER INPUT.

MODULE EXIT_WINDOW AT EXIT-COMMAND.
* MODULE USER_COMMAND_0150.
  chain.
    field rqm01-fertaufnr.
    field rqm01-rm_matnr.
    field rqm01-rm_werks.
     MODULE FEAUF_SAAUF_CHECK ON CHAIN-REQUEST.
  endchain.


Actual Code behind Flow logic is:

*----------------------------------------------------------------------*
***INCLUDE LZQM06O03 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*&      Module  STATUS_0150  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0150 OUTPUT.
  SET PF-STATUS SY-DYNNR.

  SET TITLEBAR SY-DYNNR.
RQM01-FERTAUFNR = '10142'.
ENDMODULE.                 " STATUS_0150  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  EXIT_WINDOW  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE EXIT_WINDOW INPUT.
  DATA: OK-CODE   LIKE SY-TCODE,
* Standard PF-Status Definition_
        C_FCODE_ABBR   LIKE SY-PFKEY     VALUE 'ABBR' .
  CASE OK-CODE.
    WHEN C_FCODE_ABBR.
*-- Abbrechen
*   Daten zurücknehmen
*    CLEAR RQM01.
      RAISE CANCEL.
  ENDCASE.

ENDMODULE.                 " EXIT_WINDOW  INPUT
*&---------------------------------------------------------------------*
*&      Module  FEAUF_SAAUF_CHECK  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE FEAUF_SAAUF_CHECK INPUT.
*        IF  NOT RQM01-FERTAUFNR IS INITIAL.
*      *  AND ( NOT RQM01-VERID IS INITIAL
*      *       OR NOT RQM01-RM_WERKS IS INITIAL
*      *       OR NOT RQM01-RM_MATNR IS INITIAL ).
**   nur Fertigungsauftrag oder Fertigungsversion sinnvoll

IF RQM01-FERTAUFNR IS INITIAL.
  MESSAGE E902(QM).
  ENDIF.
ENDMODULE.                 " FEAUF_SAAUF_CHECK  INPUT

Read only

0 Likes
1,665

hi,

at present i see only 1 mistake...

ok_code like sy-ucomm not like sy-tcode.

*&----


*

*& Module EXIT_WINDOW INPUT

*&----


*

  • text

*----


*

MODULE EXIT_WINDOW INPUT.

DATA: OK-CODE LIKE SY-UCOMM,

  • Standard PF-Status Definition_

C_FCODE_ABBR LIKE SY-PFKEY VALUE 'ABBR' .

CASE OK-CODE.

WHEN C_FCODE_ABBR.

*-- Abbrechen

  • Daten zurücknehmen

  • CLEAR RQM01.

RAISE CANCEL.

ENDCASE.

try with it..

check the pf-status again and activate every include b4 executing

Regards

CNU

pls provide the program name and screen no... so i can have a look at standard program

Message was edited by:

srinu k

one more thing.. what do u mean by SET PF-STATUS SY-DYNNR?

PF-STASTUS IS SOMETHING TO USER TO INTERACT ON BUTTON IN APPLICATION TOOLBAR.

TRY WITH COMMENTING ON PF-STATUS AND TITLEBAR STATEMENTS

Message was edited by:

srinu k

Read only

0 Likes
1,665

Thanks,'

I have already changed this code after posting it in SDN.

Problem is i am not able to see neither PBO and PAi execution in Debugg mode.

Thaats a probolem which i am not able to locate

Read only

0 Likes
1,665

I can see that my Funciton Module calls the Screen 'Call Screen 0150'.

But afterwards No PBO execution takes place in debug mode only Screen comes.

Read only

Clemenss
Active Contributor
0 Likes
1,665

Chidanand,

RQM01-FERTAUFNR should be present in the [CHAIN]...FIELDS...MODULE... section of PAI module. Also you may need TABLES statement for RQM01 in ABAP program. Look how they handle the other fields on the screen.

Regards,

Clemens

Read only

Former Member
0 Likes
1,665

Hi chauhan,

Try giving only field name FERTAUFNR. Or check weather are you providing proper condition in CHAIN & ENDCHAIN.

Ashven

Read only

0 Likes
1,665

Hi Ashven

No its not working and i have given the proper Chain EndChain. It is Activated in Flow Logic but syntax error in My include program

Read only

0 Likes
1,665

Please send me some alternative to solve it