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

Inbound Invoice IDoc - Problem, Please clarify.................

Former Member
0 Likes
781

Hi All,

I am implementing an Inbound INVOIC02 IDoc for posting Credit Memo that references purchase order. But there is some unique thing. This IDoc is used to post only the SAC (D240 - Freight Allowance).

Freight Allowance will come at Header level on the X12. This amount should be posted to a G/L account.

I want this SACD240 amount to be mapped onto IDoc.

I have extended the IDoc with a Z-segment @ line item level and is mapping into this z-segment.

The mapping team came up with a question. If SACD40 is mapped onto Z-segment. And no other line item information is present on the X12/IDoc (such as matnr). Will SAP process this IDoc??

Plz clarify??

Thanks,

Creasy

Hi All,

I am implementing an Inbound INVOIC02 IDoc for posting Credit Memo that references purchase order. But there is some unique thing. This IDoc is used to post only the SAC (D240 - Freight Allowance).

Freight Allowance will come at Header level on the X12. This amount should be posted to a G/L account.

I want this SACD240 amount to be mapped onto IDoc.

I have extended the IDoc with a Z-segment @ line item level and is mapping into this z-segment.

The mapping team came up with a question. If SACD40 is mapped onto Z-segment. And no other line item information is present on the X12/IDoc (such as matnr). Will SAP process this IDoc??

Plz clarify??

Thanks,

Creasy

3 REPLIES 3
Read only

Former Member
0 Likes
628

data in extended Z segment would not get processed automatically.

If std Function module IDOC_OUTPUT_INVOIC is used as inbound process code then

you need to add custom code in exit CALL CUSTOMER-FUNCTION '001' include ZXEDFU01 to pass to correct fields. or you may have to call another FM or BDC to pass data to required transaction/fields.

Read only

0 Likes
628

I am going to use Z function module with my code in it. Fun mod similar to INBOUND_INPUT_INVOIC .

But my question is, when SACD240 is mapped onto Zsegment. No Line item information is present. Still does it process the IDoc in SAP?

Thanks and Regards,

Vamsi

Read only

0 Likes
628

It depends how you are going to write code for it. If the information in zee segment is common for all Items, or if it is at header level, then Item info is not required in the Zee segment.

if there are going to be multiple instances of that Zee segment & those are for diff Item numbers, then u need Item no. in Segment.