Application Development 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: 

Custom F4

Former Member
0 Kudos

Hi Gurus,

I have created a custom screen that will enter values for Z_LIFNR. However the requirement now is instead of displaying the Vendor No. (Z_LIFNR) I have to display the Vendor Name (Z_NAME1), If I do this so the value in the screen field will take name and passes it on in PAI of the screen, which I don't want.

To make it simple I want the F4 to return the Name of the Vendor in screen field but when passing to the PAI I want the Vendor No. to be passed to the processes not the displayed Name.

How can I do that?

Regards.

1 ACCEPTED SOLUTION

dani_mn
Active Contributor
0 Kudos

Use two fields one for vendor # and other for vendor name. when user select vendor name the search help will fill both vendor name and number. and you can use number in PAI.

9 REPLIES 9

dani_mn
Active Contributor
0 Kudos

Use two fields one for vendor # and other for vendor name. when user select vendor name the search help will fill both vendor name and number. and you can use number in PAI.

Former Member
0 Kudos

Hi Ahmed,

The screen fields are not from the DDIC, i defined them on the screen still its going to fill both if i do as you suggested?

Regards.

0 Kudos

So as per my understanding  just clear vendor name and use vendor number in PAI

Former Member
0 Kudos

Hi Enjarapu,

I'm getting the value from the screen into my working area, if i clear the vendor name, i will pass Null as the Vendor No. is not on the screen field.

Former Member
0 Kudos

Hi Ahmed,

Please give an example or explain in steps.

Thanks

0 Kudos

after selection of vendor name from screen. select vendor number from table WTR vendor name and  use this in PAI. Correct me if am wrong

Former Member
0 Kudos

Hi Enjarapu,

Ok, now when i try this the screen field in the PAI still has no value to be passed to the table to get the vendor No. (it seems that even if i select a line, the value doesn't show in debugger).

what could be wrong here?

regards.

dani_mn
Active Contributor
0 Kudos

Yes if you create a search help which returns both name and number of vendor it will copy both to screen fields. Use the same name for fields as in data dictionary or reference them from data dictionary. Later you can copy them to required variable in PAI.

Former Member
0 Kudos

Hi Ahmed,

I solved the issue by using steps in following link:

Regards.