2012 May 31 1:20 PM
Hi gurus,
I have one problem..
I have created esearch help for 2 fields of Selection Screen. First one is for Packing List no. from Ztable. And the other one is for Sub Packing List no. for selected Packing List no.
I have used following code,
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS : plno TYPE zpackh-zpno OBLIGATORY.
PARAMETERS : pitem TYPE zpackh-zpitem.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR plno.
PERFORM value_plno.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pitem.
PERFORM value_item.
First one works fine. But when I go for search help for sub packing list no. (pitem), I got nothing.
Because, In my code I am using packing list no. (plno) for retrieving sub packing list numbers. But the value of plno get cleared (0) in code (value_item). So, I am not getting sub packing list numbers.
Is there any event should be written before AT SELECTION-SCREEN ON VALUE-REQUEST ??
Please help me out..
Thanks in advance..
Moderator message: points gaming involving copied question.
http://scn.sap.com/message/13213077
Message was edited by: Thomas Zloch
Hi gurus,
I have one problem..
I have created esearch help for 2 fields of Selection Screen. First one is for Packing List no. from Ztable. And the other one is for Sub Packing List no. for selected Packing List no.
I have used following code,
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS : plno TYPE zpackh-zpno OBLIGATORY.
PARAMETERS : pitem TYPE zpackh-zpitem.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR plno.
PERFORM value_plno.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pitem.
PERFORM value_item.
First one works fine. But when I go for search help for sub packing list no. (pitem), I got nothing.
Because, In my code I am using packing list no. (plno) for retrieving sub packing list numbers. But the value of plno get cleared (0) in code (value_item). So, I am not getting sub packing list numbers.
Is there any event should be written before AT SELECTION-SCREEN ON VALUE-REQUEST ??
Please help me out..
Thanks in advance..
Moderator message: points gaming involving copied question.
http://scn.sap.com/message/13213077
Message was edited by: Thomas Zloch
2012 May 31 1:25 PM
Hi Pawan,
You need to use FM : DYNP_VALUES_READ
pass the screen field PLNO and get its value entered by the user.
Now when you get the value of PLNO, you can create the Sub-packing list.
Regards,
ManuB
Moderator message: "correct answer" removed.
Message was edited by: Thomas Zloch
2012 May 31 1:44 PM
HI...
The data is passed from dynpro to program during PAI (AT SELECTION-SCREEN), in the POV event (AT SELECTION-SCREEN ON VALUE REQUEST) on second field only the value of the field for which F4 is processed is copied locally from dynpro the value in the first field is not always the same between program and dynpro...
Use DYNP_VALUES_READ to get other fields before fill the internal table used in the F4 help.
Regards...
Surya
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |