I would like to know if you have any input as to the PARVW field in KNVP (Partner functions). When I look at the...
data in SE16 in multiple record mode, I see records with a partner function of 'RG'. However, when I select this record, the partner function value shows 'PY'. To make matters worse, in my ABAP program, I get no data back from my SELECT statement whether I select PARVW = 'PY' or PARVW = 'RG'. Help, please!
In the database, the data is actually stored as RG. Look at the domain for KNVP-PARVW, which is also called PARVW. It has a conversion routine defined on it. Navigate to that, and you will see the two function modules which translate what you put in, PY, into RG, and back again. You see, the partner function codes are language dependent. The values are held in table TPAUM.
In your ABAP program, therefore, you can either use the function module CONVERSION_EXIT_PARVW_INPUT, to convert from the language specific to the internal representation, RG; or use RG directly. Use this code:
select single * from knvp where parvw eq 'RG'.
I successfully read a record. I'd suggest then that your select is failing for some other reason.
Dig Deeper on SAP ABAP
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header.continue reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location.continue reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.