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

Convert MATNR from SAP code to outbound system code.

Former Member
0 Likes
571

Hi Everybody,

SAP code: u201CAu201D + Product number (8) + Null (9)

(file)Outbound system code: Product number (8) + Null (10)

*Product number has to be set right justified in 8 digits.

*Set 0 in the blank digits of product number.

(Example)

SAP code: "A00612345" + Null (9)

(file)Outbound system code: "00612345" + Null (10)

how would i do ?

Regards,

sudheer v

3 REPLIES 3
Read only

Former Member
0 Likes
531

Hi Sudheer v,

I am not sure if I understand you correctly.

Is this what you trying to do.

data: _num(10) type c,

_sapc type matnr,

_proc(8) type c,

_extc(18) type c.

_num = '0'.

_sapc = 'A00612345000000000'.

_proc = _sapc+1.

concatenate _proc _num into _extc.

(_extc will be equal to '006123450000000000')

Kind Regards,

Quinton.

Read only

Former Member
0 Likes
531

Hi,

u can do it in this way.. here just skip the first character then conactenate a zero to last

concatenate sap_matnr+1(18) '0' into a lw_matnr.

Read only

Former Member
0 Likes
531

HI ,

You can use following logic...

var1 = sap_matnr+1(18).

now use FM CONVERSION_EXIT_MATN1_output , pass var1 into exporting variable and import this value into another variable var2.

var3 = va2+0(8)

Thanks

Shambhu