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

orders05 mapping segments data with internal table data

Former Member
0 Likes
9,436

I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields , so please anyone kindly contribute in mapping atleast one so that everone can help me out.

1) I have a internal table with following contents.

sales organization (vbak-vkorg)

dist channel (vbak-vtweg)

division (vbak-spart)

sales order type (vbak-auart)

customers sold to party (kuag-kunnr)

customers ship to party ( kuwev-kunnr)

purchase order (vbkd-bstkd)

Purchase Order Date (VBAK-BSTDK)

Delivering plant (RV45A-DWERK)

Material (VBAP-MATNR)

Order Quantity (RV45A-KWMENG)

contion type ( KOMV-KSCHL)

net price -(KOMV-KBETR).

Terms of payment (VBKD-ZTERM)

item text

Now i want to map the orders05 segment fields, please help me in mapping .

E1EDK01 IDoc: Document header general data

E1EDK14 IDoc: Document Header Organizational Data

E1EDK03 IDoc: Document header date segment

E1EDK04 IDoc: Document header taxes

E1EDK05 IDoc: Document header conditions

E1EDKA1 IDoc: Document Header Partner Information

E1EDK02 IDoc: Document header reference data

E1EDK17 IDoc: Document Header Terms of Delivery

E1EDK18 IDoc: Document Header Terms of Payment

E1EDK35 IDoc: Document Header Additional Data

E1EDK36 IDOC: Doc.header payment cards

E1EDKT1 IDoc: Document Header Text Identification

E1EDP01 IDoc: Document Item General Data

E1CUCFG CU: Configuration data

E1EDL37 Handling unit header

E1EDS01 IDoc: Summary segment general

For example i tried to map E1EDK14 IDoc: Document Header Organizational Data

here i think ORGID field need to be filled with sales area data.

but in which format i dont know

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,219
5 REPLIES 5
Read only

Former Member
0 Likes
3,219

check documentation for idoc type orders05 in we61 , it will help .

Read only

Former Member
0 Likes
3,220
Read only

alex_m
Active Contributor
0 Likes
3,219

Except 1 fields pls see the mapping... You can also look WE61 for more info...

sales organization (vbak-vkorg) E1EDK14-orgid QUALF(008)

dist channel (vbak-vtweg)E1EDK14-orgid QUALF(006)

division (vbak-spart) E1EDK14-orgid QUALF(007)

sales order type (vbak-auart) E1EDK14-orgid QUALF(012)

customers sold to party (kuag-kunnr) E1EDKA1-PARTN PARVW(AG)

customers ship to party ( kuwev-kunnr) E1EDKA1-PARTN PARVW(WE)

purchase order (vbkd-bstkd) E1EDK02-BELNR QUALF(001)

Purchase Order Date (VBAK-BSTDK)E1EDK02-DATUM QUALF(017)

Delivering plant (RV45A-DWERK)

Material (VBAP-MATNR) E1EDP01-MATNR

Order Quantity (RV45A-KWMENG)E1EDP20-WMENG

contion type ( KOMV-KSCHL) E1EDP05-KSCHL

net price -(KOMV-KBETR). E1EDP05-KPERC

Terms of payment (VBKD-ZTERM) E1EDK01-ZTERM

item text E1EDPT1-TDID

Read only

Former Member
0 Likes
3,218

Alexander really thank you so much for the great help

1)what is the significance of qualifer field

2)how to populate it in the program.

itab i have 4fields ie sales org,distribution channel,division,document type.

Now i want to fill the idoc structure. so how to fill this in E1EDK14.

I am trying to do like this but i think it is not correct because it is not a table to append.

Loop at itab.

E1EDK14-ORGID = ITAB-sales org

E1EDK14-QUALF = 008

append....

E1EDK14-ORGID =itab-distribution channel

E1EDK14-QUALF = 006

append...

E1EDK14-ORGID= itab-division

E1EDK14-QUALF = 006

append...

endloop.

Please tell me how to do this.

Also i tried we19 to test idoc posting.

In the E1EDK14 qualifer has taking one input ( eiter 006 or 007 etc )but orgid we can give more lenth. I am trying to populate 006,007,008 but it is not accomodating.

Read only

Former Member
0 Likes
3,218

Hey there,

As said in your other thread,

Use the same logic in the program as well.

Loop at itab.

E1EDK14-ORGID = ITAB-sales org

E1EDK14-QUALF = 008

append.... no need to append, pass this to data record

E1EDK14-ORGID =itab-distribution channel

E1EDK14-QUALF = 006

append...pass this to data record

E1EDK14-ORGID= itab-division

E1EDK14-QUALF = 006

append...pass this to data record

endloop.

Best Regards,

Vvieks

"Grow and help others to Grow"