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

INVOIC IDOC type sample

Former Member
0 Likes
1,905

Hi,

Can someone provide me with a sample inbound INVOIC IDOC with planned delivery costs. We already use thei IDOC type for incoming invoices and are trying to enhance it to include planned delivery costs. I have tried using segment E1EDp05 to give the condition type and amount corresponding to planned delivery costs. But, the IDOC is always erroring with an imbalance between credits and debits and it does not seem to be passing the values from E1EDP05 segment to the invoice creation function module.

Any help will be greatly appreciated.

Thanks in advance

Regards

Chitra

Hi,

Can someone provide me with a sample inbound INVOIC IDOC with planned delivery costs. We already use thei IDOC type for incoming invoices and are trying to enhance it to include planned delivery costs. I have tried using segment E1EDp05 to give the condition type and amount corresponding to planned delivery costs. But, the IDOC is always erroring with an imbalance between credits and debits and it does not seem to be passing the values from E1EDP05 segment to the invoice creation function module.

Any help will be greatly appreciated.

Thanks in advance

Regards

Chitra

4 REPLIES 4
Read only

Former Member
0 Likes
1,238

Hi Chitra:

Please let me know if you were able to solve this problem. I am facing a very similar issue...

How do we settle planned delivery costs in an EDI invoice.. Were you finally able to pass the values from segment E1EDP05 and process ?

Read only

Former Member
0 Likes
1,238

Hi CA,

Just ty with this sample...

If you want to send invoices with delivery costs from you must use Transaction CMOD to program the EXIT_SAPLMRMH_014 user exit as follows:

Create a customer project and use Transaction CMOD to call it. Add the MRMH0002 enhancement and the EXIT_SAPLMRMH_014 component. Insert the source code into the ZXM08U25 include.

DATA: ls_data_s01 type E1EDS01,

lv_beznk type MRM_RBKPV-beznk.

IF I_IDOC_DATA-SEGNAM = 'E1EDS01'.

ls_data_s01 = I_IDOC_DATA-SDATA.

IF ls_data_s01-sumid = '020'.

lv_beznk = ls_data_s01-summe.

E_RBKPV-BEZNK = lv_beznk.

E_CHANGE = 'X'.

ENDIF.

ENDIF.

Regards,

Kumar

Read only

0 Likes
1,238

Hi Kishore,

I am curious on how you are addressing this, are you saying that this will settle the invoice or would it settle it ? Pls advice.

Read only

Former Member
0 Likes
1,238

Found a SAP OSS note which said that the INVOIC Idoc is not meant to handle planned delivery costs.

So, for invoices with planned delivery costs, configured the IDOC with a different message variant. Attached a custom inbound process code (ZINVL) to the IDOC/Message variant and created a custom function module to process the IDOCs with this message variant. The custom function module extracted the values from the IDOC and called the INVOICE BAPI 'BAPI_INCOMINGINVOICE_CREAT' to process the invoice. BAPI takes care of planned delivery costs.

Thanks for all your help.

Regards

Chitra