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

BDC Problem

Former Member
0 Likes
372

Hello

My problem Definition is as follow

**Internal Declaration

DATA:BEGIN OF H_ITAB OCCURS 0,

MATNR(18),

PLANT(4),

END OF H_ITAB.

DATA: L_VPSTA LIKE T130M-PSTAT.

SELECT SINGLE VPSTA INTO L_VPSTA FROM MARA WHERE MATNR = H_ITAB-MATNR.

when the input material number is numeric type then i am unable to get output above select statement ex : 26300000000008

when the input material number is alphanumeric type then i am getting output above select statement ex : 00400000314C4007

how to resolve this issue

with regards

Anand kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
322

Hi, You should transfer the material number's format by call a sap standard function module.

CONVERSION_EXIT_MATN1_INPUT

Michael Yan

2 REPLIES 2
Read only

Former Member
0 Likes
323

Hi, You should transfer the material number's format by call a sap standard function module.

CONVERSION_EXIT_MATN1_INPUT

Michael Yan

Read only

Former Member
0 Likes
322

Hi,

Use conversion exit function module.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = H_ITAB-matnr

IMPORTING

OUTPUT = H_ITAB-matnr.

Now use.

SELECT SINGLE VPSTA INTO L_VPSTA FROM MARA WHERE MATNR = H_ITAB-MATNR.

Regards

Siva