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

Object type for Material Document

Former Member
0 Likes
3,370

Hi,

I need to get the object key for a material document, which has to be passed to NAST table. If 4900004026 is the material doc. then its object key is conerted as

490000402620050001. Is there any FM for conversion ?

7 REPLIES 7
Read only

h_senden2
Active Contributor
0 Likes
1,961

check the MSEG table, i think there is a field like OBJKY or OBJNR with the key

regards,

Hans

Read only

Former Member
0 Likes
1,961

Hi,

Theres no such fields in MSEG table. Think object key is the combination of Material Doc, Doc. year and Itam No.

Read only

Former Member
0 Likes
1,961

Hi,

Its a combination of Field MBLNR,MJAHR & ZEILE from MSEG table, where the values will be concatenated and stored in NAST Table.

I think it helps you solve the problem.

Regards,

Anbalagan

Read only

Former Member
0 Likes
1,961

Hi,

Now im seeing a different combination...where company code, MBLNR,MJAHR & ZEILE are combined. Hope there should be a standard FM for this Object Key Generation

Read only

Former Member
0 Likes
1,961

Hi,

Am not sure, whether Function Module is existing or not.

But, you can concatenate these fields to a String variable or split for the values based on Field Length to separate variables and you can proceed with your process.

Regards,

Anbalagan.

Read only

former_member188827
Active Contributor
0 Likes
1,961

u can create ur own fm concateneating da fiscal year of the document and line item number with the material document number

Read only

Former Member
0 Likes
1,961

CONVERSION_EXIT_CCMAT_INPUT Function Module for Material Number Conversion (INPUT)

CONVERSION_EXIT_CCMAT_OUTPUT Function Module for Material Number Conversion (OUTPUT)