cancel
Showing results for 
Search instead for 
Did you mean: 

EANCOM2002_Invoice_To_INVOIC_INVOIC02

Former Member
0 Kudos

Hi Gurus,

In header segment E1EDK04 i have 2 fields MSATZ and MWSBT. I need to fill these fields by adding at the line item segment E1EDP04.

Suppose if I have values at line item level

Item1

MSATZ = 10 VAT RATE

MWSBT = 20 Value added tax amount

Item2

MSATZ = 10 VAT RATE

MWSBT = 30 Value added tax amount

So at haeder segment E1EDK04 I have to get values like

Header

MSATZ = 10 VAT RATE (which is always 10%)

MWSBT = 30 Value added tax amount

How I can achive this in graphical mapping..please help me its very urgernt.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You have not mentioned which value of MSATZ and MWSBT from item needs to be populated in the Header. However, from what I get from the example, you are populating the max value.

In this case,the source fields in the sender EANCOM message which populate the MSATZ and MWSBT fields under E1EDP04, use the same fields to populate the corresponding fields in the idoc Header E1EDK04.

use a removeContext -->sort -->collapseContext -->MSATZ / MWSBT to get the highest value into the fields.

Regards

Former Member
0 Kudos

Thanks for ur help I did the same way after remove context I add the sum function which is fine now.

Answers (1)

Answers (1)

former_member854360
Active Contributor
0 Kudos

Source ItemLevel--


>CopyValue(0)--


>TargetHeader

see this for standard Copyvalue function

http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm