‎2010 Jan 07 1:29 PM
Hello,
I donu2019t have very much experience in abap, so I will ask you to help me. I need to fill the the purchase order and the vendor field from vl31n transaction - initial screen with some values. Can you suggest me an user-exit, a badi or something else to solve my problem? I mention that I never worked with badi or user-exits, so I will appreciate any details about this and how is used..
Thanksu2019
‎2010 Jan 07 2:23 PM
I assume you want to call the transaction from within another abap program and populate the entry fields on the selection screen ?
Generally for any transaciton, if you place the cursor in the input field and press F1 you will get the help. From here if you select the technical help you will see information about the field.
On here there is a parameter id field, showing BES for Purchase order number and LIF for Vendor.
You can then use SET PARAMETER ID to set the values for these two IDs and they will appear when the transaction is then called.
‎2010 Jan 07 2:28 PM
No, I donu2019t want to call the transaction from another program. The transaction will be called from the command field and based on the purchase order stored in the parameter id u201Cbesu201D, I want to identify the vendor and this will be set into the u201Clifu201D parameter id.
‎2010 Jan 08 7:55 AM
The way I would approach this myself, would be to create a bespoke transaction with the same input screen fields as VL31N.
When this is called and the purchase order entered, I would code to find the vendor, then supply all the bespoke input data to the real VL31N via call transaction.
‎2010 Jan 08 1:43 PM