Skip to Content
0
Former Member
Apr 14, 2009 at 07:38 PM

DP90 - need to add extra text-items (non-stock) to the Debit Memo

145 Views

Hello gurus.

Resource Related Billing

...I'm trying to create a Debit Memo with non-stock items using transaction DP90.

We need to add extra text items in the Debit Memo as information for the billing doc.

I have succeeded to debug the DP90 and in function SD_SALES_DOCUMENT_FROM_SM there is a loop where Debit Memo items is beeing created:

* Eigentliches Erzeugen der SD-Positionen aus dynamischen Posten
  LOOP AT fsdsm_dli WHERE ref_pos_handle IS INITIAL.

* Füllen der Struktur VBAPKOM
    PERFORM vbapkom_fuellen USING fsdsm_dli
                            CHANGING vbapkom
                                     vbepkom.

* Positionstypenverwendung füllen in Abhängigkeit von der Fakturierform
    PERFORM vwpos_ermitteln USING    space
                                     fsdsm_dli-faktf
                                     i_sdsm_header-agflg
                                     i_sdsm_header-agexi
                            CHANGING vbapkom-vwpos.

* Positionsklassifizierung angeben
    IF i_sdsm_header-agflg IS INITIAL.
      vbapkom-vkgru = vkgru_dyn_posten.
    ELSE.
      vbapkom-vkgru = vkgru_dyn_posten_ag.
    ENDIF.

* Erzeugen einer neuen Position
    PERFORM item_create USING    fsdsm_dli
                        CHANGING vbapkom
                                 da_subrc.

How can I add non-stock items (text items) ?

I guess I need to add value 'TEXT' to vbapkom-vwpos ?

Please advice.