08-22-2016 7:24 AM
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.
08-22-2016 7:37 AM
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.
08-22-2016 7:37 AM
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.
08-22-2016 7:49 AM
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.
08-22-2016 8:33 AM
So as per my understanding just clear vendor name and use vendor number in PAI
08-22-2016 8:38 AM
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.
08-22-2016 8:40 AM
08-22-2016 8:58 AM
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
08-22-2016 9:06 AM
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.
08-22-2016 9:20 AM
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.
08-23-2016 8:37 AM