cancel
Showing results for 
Search instead for 
Did you mean: 

Posting Invioce with payment reference ( KIDNO) using INVOIC01 idoc

Former Member
0 Kudos

Hi SAP Gurus,

We have a process to post invoices in the system using IDoc basic type Invoic01.

The requirement is that vendor will pass the payment reference in the XML message and we need to populate this payment reference value in the payment reference field in invioce (in payment tab, techinical field name is KIDNO).

I am struggling to find the segment in the idoc which holds this value and qualifier if any to be used to post this automatically.

Can any one help please?

Edited by: Rish SAP consultant on May 5, 2011 1:58 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Experts,

has anyone an other on this question??

I have got the same problem now, too!

I want to send the value of VBRK-KIDNO with the IDOC basic type INVOIC01...

Thanks in advance,

Christopher

Former Member
0 Kudos

Hi,

We also have the same issue, but with INVOIC02... It seems like a field that is used as payment reference should be on the invoice (even if the invoice is electronic), don't you think? Perhaps the departments at SAP haven't spoken with each other.

I will try to create a message to SAP.

Br Linus Hellsing

Former Member
0 Kudos

Hi,

today I found (via Business connector Lookup) that in INVOIC01 and INVOIC02 a field is prepared for this payment reference (KIDNO):

segment E1EDK02 - QUALF 071 - "KIDNO Number"

But the problem now is: When I create an IDOC from the Invoice there's no segment with the QUALF 071.

Does anybody know how to "activate" the QUALF in the IDOC?

Best regards,

Christopher

TuncayKaraca
Active Contributor
0 Kudos

Hi Christopher,

There is nothing "activate" the QUALF in the IDOC.

In your example QUALF 009, 001, 002, 012, 087 already populated. QUALF value / segment is populated in IDOC inbound/ourbound processing function module based on the logic.

What is the processing function module in your case?

Former Member
0 Kudos

Hi Tuncay,

the function module for IDOC Invoices (outbound) is IDOC_OUTPUT_INVOIC. There the segment E1EDK02 is filled (Include LVEDFF0F) with some qualifiers (009,020,001.002,012,016,017,014,031,084,087 and 107) and values.

In every QUALF it jumps into Form "customer_function" with the user-exit "ZXEDFU02".

Are this existing QUALFs the SAP-Standard? Where can I add a QUALF with values (in this case the field KIDNO)? Do I have to extend the include LVEDFF0F or do I have to change the user-exit (and how)??

Thank you,

Christopher

TuncayKaraca
Active Contributor
0 Kudos

Hi Christopher,

Your process is an outbound process with IDOC_OUTPUT_INVOIC.

IDOC types have QUALF fields in some segments, but it doesn't mean they have to be used!

QUALF field identified BELNR field at E1EDK02 segment, basically it shows what BELNR value is. As you mentioned IDOC_OUTPUT_INVOIC doesn't populate QUALF 071, and if you want to populate you can populate in a user-exit (for example EXIT_SAPLVEDF_002 - ZXEDFU02)

Once you assing 071to QUALF fieldm you have to populate BELNR with KIDNO field.

The key is here whoever will process this IDOC need to know what 071 refers for BELNR field.

Tuncay

Former Member
0 Kudos

Hi,

I sent a message to SAP asking how to include the KIDNO in the IDOC. They said that it wasn't possible to add the payment reference in the electronic invoice without using custom code:

"

Unfortunately there is no KIDNO-Field provided within Invoic*-Idocs.

In the IDOC definition for E1EDK02 there exist a qualifier 071 (KIDNO)

but it is not used. This qualifier is used only in other function

modules and scenarios.


You have to use userexits and program your own functionality importing

and exporting KIDNO.


Within SAP Standard the functionality to transfer BSEG-KIDNO within

inter company billing from the document of the one company code to

the idoc to be posted in the secondary company code is not provided.


But you can use note 562193 as an example how to fill this field

in the customer function '002'.


Should you wish to have this functionality added to future releases

please consider entering a development request. Please see note 11 for

more on this.


Apologies for not having a more favourable answer and thank you for yourunderstanding.

"

Br Linus Hellsing

TuncayKaraca
Active Contributor
0 Kudos

Hi Linus,

It's useful information. I am glad you found the solution.  IDoc user-exits are very flexible, you can do in '002' user-exit.