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

Search Help

Former Member
0 Likes
403

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

2 REPLIES 2
Read only

former_member209920
Active Participant
0 Likes
380

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

Read only

Former Member
0 Likes
380

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