cancel
Showing results for 
Search instead for 
Did you mean: 

tax line item long text copy from 1st line item text automatically

satendra_sapco
Explorer
0 Kudos

Hi experts i need help my client requirement is if i do vendor invoice through Tcode FB60 with tax code. Tax line item long text must copy from 1st line item of vendor,

Please check screenshot

Mention red mark long text is blank it must be copy from 1st line item and from line item 3 to 5 same long text should be reflect. In other words every line item must be same long text

Please suggest me configuration or setting

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

MarekTurczynski
Contributor
0 Kudos

Hi,

as these line items are generated automatically based on a tax code then the only way to automate it is to create a substitution at callup point 3, where all line items are available.

Please note that there you need to create an exit which checks which line is the vendor line and transfers it to tax lines.
Additionally please pay attention to transaction MIRO / any interface. If you are using any BAPI for posting or using MIRO then substitution at callup point 3 is not triggered. Please use BTE Process: 00001120 DOCUMENT POSTING: Field substitution header/items (see note 386896).


Sample code which you can use in substitution at callup point 3 (different code is required if you are going go use BTE 1120) - is such case the text of first found Vendor line would be copied to tax lines:

  LOOP AT bool_data-bseg INTO @DATA(ls_bseg)
       WHERE koart = 'K' AND sgtxt NE space.
    EXIT.
  ENDLOOP.
  IF sy-subrc = 0.
    LOOP AT bool_data-bseg ASSIGNING FIELD-SYMBOL(<fs_bseg>)WHERE buzid = 'T' .

        <fs_bseg>-sgtxt = ls_bseg-sgtxt.


    ENDLOOP.
  ENDIF.
satendra_sapco
Explorer
0 Kudos

Hi Marek,

I had tried to do what you suggest above. Kindly provide me steps by steps solution of this issue so that i can get results

Thanks