09-04-2006 12:17 PM
Hi ,
How to map the field internally,
When you take table tpar and give the first field as 'SP'
then its display the field as 'AG'.internally it maps the field 'SP' as 'AG'.
How to convert it internally.
09-04-2006 12:22 PM
SAP converts VBPA-PARVW using conversion routine when you use VBPA-PARVW field. You have two options.
Option 1: Use MOVE command to move to a character variable and then use character field to show value. This will show AG.
Option 2: You can move the VBPA-PARVW into another character field using WRITE TO statement if you want to see SP instead AG and it will covert from SP to AG using conversion routine.
Hope this helps.
09-04-2006 12:33 PM
if you see the domain(PARVW) of that field, its having conversion routine to convert it from external format to internal format.
CONVERSION_EXIT_PARVW_INPUT
so call this function module,before sending it to the SELECT statement.
to know the actual sap internal value for the partner type, in se16,take F4 help for that field in the selection screen of that table VBPA. the values appears here are the SAP VALUES & if you pass these values in SELECT,you will get the entries.
Message was edited by: Srikanth Kidambi
09-04-2006 12:38 PM
SAP converts VBPA-PARVW using conversion routine when you use VBPA-PARVW field. You have two options.
You can move the PARVW into another character field using WRITE TO statement if you want to see SP instead AG and it will covert from SP to AG using conversion routine.
Use MOVE command to move to a character variable and then use character field to show value. This will show AG.
Or u can use 'CONVERSION_EXIT_PARVW_INPUT'
so call this function module,before sending it to the SELECT statement.