Application Development 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: 

filling up segments of Idoc of Invoice List

former_member699400
Active Participant
0 Kudos
1,311

Hi!

Invoices and Invoice List are beeing created... everything would be fine, but some fields are missing in the Invoice List while existing in Invoices.

I guess I need to find the code where these fields are filled up for Invoices and to add this code to appropriate place for Invoice List. How to do this?

I think that needed segments are existing for Invoice List, just not filled up...

By the way, how to find out Idoc number of Invoice List? If I have it, I could compare segments with Idocs of Invoices.

Any ideas?

Will reward,

Mindaugas.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
240

when you create invoice list,it will create idoc number,if you want to see the idoc number use WE02 Transaction or WE05 Transaction

look at Function module and hope function module name is IDOC_OUTPUT_INVOIC

7 REPLIES 7

Former Member
0 Kudos
241

when you create invoice list,it will create idoc number,if you want to see the idoc number use WE02 Transaction or WE05 Transaction

look at Function module and hope function module name is IDOC_OUTPUT_INVOIC

0 Kudos
240

IDOC_OUTPUT_INVOIC is exsiting but it is probably some standart FM, isn't it?

Now I know the concrete Invoice List number and it's Idoc number.

Probably now I need to find the code wich is fiiling up each segment in Idoc, this way I could add my own code to fill missing segments and to have missing fields in Invoice List...

As I understood structure of my Idoc is INVOIC02 and probably it has all the needed segments, but some segments are not filled up...

Mindaugas

0 Kudos
240

Please see the partner profile - Transaction is We20 - here you can find out the process code ,once you know process code easily we will find out function module ,see the process code transaction we42 ,double click on process code.

0 Kudos
240

Hi Seshu!

here is what I found:

Application V3 : Billing

Message Type: ZLR0 : Invoice list

Process Code SD09 : INVOIC: Invoice

Description INVOIC: Invoice

Function module IDOC_OUTPUT_INVOIC

Hope this helps to find out the code related with Invoice List....

Mindaugas.

0 Kudos
240

I saw the Function module -

Please look at code at :

Include program : LVEDFF0R

FORM REDUCTION_TABLE_CREATE.

PERFORM IDOC_SEGMENTS_READ.

PERFORM IDOC_ACTIVE_SEGMENTS_SET.

ENDFORM. " REDUCTION_TABLE_CREATE

Keep the break point at form routine and debug the the function module

If you do not know how to do debugging then use following way :

keep the break point in form routine above as i said

Create invoice or invoice list

when you maintain output type in invoice or invoice list -

Now click on Further data ->select peridoc scheduling-> back and save it.

Run RSNAST00 Program

Output application : V3

Object key : Invoice or invoice list number

Output type : RD00 or LR00

Medium = 6(EDI) ,A (ALE)

when you execute the program and it will goto debugging.

Thanks

Seshu

Clemenss
Active Contributor
0 Kudos
240

Hi Mindaugas,

The IDoc output function IDOC_OUTPUT_INVOIC provides some user exits.

The form LESEN_FAKTURA calls


  call customer-function '004'
      exporting
           dobject            = object
           dcontrol_record_out = control_record_out
      tables
           dvbdpr             = tvbdpr
           dikomv             = ikomv
      changing
           dvbdkr             = vbdkr
           dknvv              = knvv
       exceptions
              error_message_received        = 1
              data_not_relevant_for_sending = 2.

Here you can check (and add, if necessary) all data passed in the tables tables dvbdpr and dikomv.

You may use customer-function '002' which is called I think for every segment.

Regards,

Clemens

0 Kudos
240

Hi Clemens,

thanks, but if to take a concrete example, let's say need to fill up segment with netto weight... what are the steps?

Mindaugas