2013 Dec 07 7:47 AM
hi i am gettig strange error on a module pool screen as below the table exist and it is giving no error on table ymrextn but it is giving error on other table on module dispatch_person_input as "ydftdetl-disper not recognized" but the screen fields exists and also screen elment exists.
pls suggest posible cause or solution
PROCESS AFTER INPUT.
CHAIN.
.
FIELD ydftdetl-disper.
MODULE dispatch_person ON CHAIN-REQUEST.
FIELD ymrrextn-lgort.
ENDCHAIN.
MODULE dispatch_person INPUT.
* CLEAR lv_string.
* lv_string = ydftdetl-disper.
* IF NOT lv_string IS INITIAL.
* IF lv_string CA space.
* MESSAGE e001(00) WITH 'Enter a dispatch person.'.
* ENDIF.
* ENDIF.
ENDMODULE.
regards
Arora
2013 Dec 07 9:41 AM
The module pool flow logic checks if fields used in flow logic are available in the layout design of the screen.So this means your flow logic and screen should be in sync.
In the screen , the field "ydftdetl-disper" should be present.For this go to the screen layout ,and check if the field exists on the screen(there can be a spelling mistake for the field name or the field does not exist altogether).
How to check?
Press F6 in layout screen and in the window enter "ydftdetl-disper",Click on "Get from Program", check if a lock button is displayed in the line item displayed for the field:"ydftdetl-disper", .If so the field is used in the screen otherwise bring it on the screen and activate.
Once this is done,the issue will be solved
Hope it Helps
2013 Dec 07 8:01 AM
declare your table in main program from where PAI and PBO is called like:
Tables: ydftdetl.
2013 Dec 07 9:41 AM
The module pool flow logic checks if fields used in flow logic are available in the layout design of the screen.So this means your flow logic and screen should be in sync.
In the screen , the field "ydftdetl-disper" should be present.For this go to the screen layout ,and check if the field exists on the screen(there can be a spelling mistake for the field name or the field does not exist altogether).
How to check?
Press F6 in layout screen and in the window enter "ydftdetl-disper",Click on "Get from Program", check if a lock button is displayed in the line item displayed for the field:"ydftdetl-disper", .If so the field is used in the screen otherwise bring it on the screen and activate.
Once this is done,the issue will be solved
Hope it Helps
2013 Dec 07 12:06 PM
Hi Nishant
if you already have the same field in layout then you need to declare it also in top include or beginning of the program. Just use tables:《custom table》...the idea is whatever you are using in layout the same should be declared in the program that is how it will communicate
nabheet