‎2007 Jan 19 6:38 PM
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
‎2007 Jan 19 6:45 PM
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
‎2007 Jan 19 6:48 PM
HI,
I believe u need to declare the table in TOP INclude..
Regards
CNU
‎2007 Jan 19 6:50 PM
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
‎2007 Jan 19 6:52 PM
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>
‎2007 Jan 19 6:53 PM
IN top include...
TAbles: RQM01.
i think this command already there just add RQM01 to the list of tables in TOP INclude.
Regards
CNU
‎2007 Jan 19 6:55 PM
‎2007 Jan 19 7:18 PM
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
‎2007 Jan 19 8:32 PM
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>
‎2007 Jan 19 8:33 PM
PAI of the screen is not executed. why i really dont know.
Can you please tell me why
‎2007 Jan 19 8:37 PM
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
‎2007 Jan 19 8:41 PM
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
‎2007 Jan 19 8:52 PM
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
‎2007 Jan 19 9:04 PM
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
‎2007 Jan 19 9:11 PM
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
‎2007 Jan 19 9:12 PM
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.
‎2007 Jan 19 6:49 PM
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
‎2007 Jan 19 6:56 PM
Hi chauhan,
Try giving only field name FERTAUFNR. Or check weather are you providing proper condition in CHAIN & ENDCHAIN.
Ashven
‎2007 Jan 19 6:59 PM
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
‎2007 Jan 19 7:07 PM