Application Development and Automation 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: 
Read only

field mapping

Former Member
0 Likes
1,109

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.

3 REPLIES 3
Read only

Former Member
0 Likes
655

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.

Read only

Former Member
0 Likes
655

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

Read only

Former Member
0 Likes
655

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.