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

Vendor Master classifications using IDoc CLFMAS

Former Member
0 Likes
1,914

I am using the IDoc message type <b>CLFMAS</b>, basic type <b>CLFMAS01</b> and I set my source multi structures as follows:

<b>ZCLASS_HDR</b>

HDR C(005) Header Id :<HDR>

MAFID C(001) Assignment category: 'O'

OBJEK C(050) Vendor number:'5000101'

CLASS C(018) Class no. :'BEE-VENDORS'

KLART C(003) Class type :'010'

DATUV C(008) Date :sy-datum

OBJECT_TABLE C(030) : 'LFA1'

<b>ZCLASS_DTE</b>

DTE C(005):<DTE>

ATNAM C(030):'BEE_Senior_management'

ATFLV C(016):'10'

ATWRT C(030):'10'

where the bold represent the header structures and the values after the colon.

When I process the IDoc I get the following error:

<b>Object 5000102 (LFA1 ) not found</b>, the vendor number 5000102 is in table LFA1. Can anyone please tell me what I am doing wrong here?

Rgds

George

1 ACCEPTED SOLUTION
Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,195

Hi George!

Try with leading zeros: ZCLASS_HDR-OBJEK = '0005000101'. (In total 10 chars). You can use FM CONVERSION_EXIT_ALPHA_INPUT to do the conversion.

Regards,

Christian

I am using the IDoc message type <b>CLFMAS</b>, basic type <b>CLFMAS01</b> and I set my source multi structures as follows:

<b>ZCLASS_HDR</b>

HDR C(005) Header Id :<HDR>

MAFID C(001) Assignment category: 'O'

OBJEK C(050) Vendor number:'5000101'

CLASS C(018) Class no. :'BEE-VENDORS'

KLART C(003) Class type :'010'

DATUV C(008) Date :sy-datum

OBJECT_TABLE C(030) : 'LFA1'

<b>ZCLASS_DTE</b>

DTE C(005):<DTE>

ATNAM C(030):'BEE_Senior_management'

ATFLV C(016):'10'

ATWRT C(030):'10'

where the bold represent the header structures and the values after the colon.

When I process the IDoc I get the following error:

<b>Object 5000102 (LFA1 ) not found</b>, the vendor number 5000102 is in table LFA1. Can anyone please tell me what I am doing wrong here?

Rgds

George

3 REPLIES 3
Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,196

Hi George!

Try with leading zeros: ZCLASS_HDR-OBJEK = '0005000101'. (In total 10 chars). You can use FM CONVERSION_EXIT_ALPHA_INPUT to do the conversion.

Regards,

Christian

Read only

0 Likes
1,195

Thank you Christian!

It worked like a charm.

George

Read only

0 Likes
1,195

SDN way of saying thank you to Christian is to award him full points. You can do that by selecting the 'Problem Solved' radio-button next to his response.