cancel
Showing results for 
Search instead for 
Did you mean: 

2LIS_13_VDKON and agreements (datasource field KNUMA_BO)

Former Member
0 Kudos

Hallo BW-Gurus!

We are using datasource <b>2LIS_13_VDKON</b> to extract SD Billing document conditions into BW. In addition we need to get the <b>agreement no.</b> of a condition if there are any rebate agreements to any conditions.

Therefore we wanted to use the field <b>KNUMA_BO</b>, which is available in the standard extractor, to extract agreement-no.s of billing conditions.

Unfortunately when extracting condition records the field agreement-no. (KNUMA_BO) of the datasource 2LIS_13_VDKON is still empty although the according billing condition of a certain billing document contains agreement information.

Does anybody of you faced the same problem?

If so, how did you solve this issue? Filling KNUMA_BO via user-exit?

Kind regards,

Richard

View Entire Topic
Colin4
Employee
Employee
0 Kudos

The solution to this issue is in the below note:

1077169 - 2LIS_13_VDKON: Field KNUMA_BO is not filled

  • Add the following source code lines to EXIT_SAPLRSAP_001:

           *-------------------------------------------------------*
*
INCLUDE ZXRSAU01
*
*-------------------------------------------------------*

CASE
i_datasource.
WHEN '2LIS_13_VDKON'.
TABLES: konp.
DATA: wa_mc13vd0kon
TYPE mc13vd0kon.

    LOOP AT c_t_data INTO wa_mc13vd0kon.
      IF
wa_mc13vd0kon-koaid = 'C'.
        l_tabix = sy-tabix.

        SELECT
SINGLE knuma_bo INTO wa_mc13vd0kon-knuma_bo
                FROM konp WHERE
knumh = wa_mc13vd0kon-knumh
                          AND   kopos =
'01'
                          AND   kschl =
wa_mc13vd0kon-kschl.
        IF sy-subrc = 0.
          MODIFY c_t_data
FROM wa_mc13vd0kon INDEX
l_tabix..
        ENDIF.
      ENDIF.

    ENDLOOP.
WHEN
OTHERS.
    EXIT.
ENDCASE.