Skip to Content
avatar image
Former Member

Enhance generic datasource

I developed a generic datasource and need some enhancements to custom fields. I got the following error in my ABAP code.

Field "ZOXDV10019-ZZENDUSER" is unknown.

Here is my code,

&----


*& Include ZXRSAU01

&----


TABLES: VBPA.

DATA: l_s_zsales LIKE ZOXDV10019,

l_counter,

l_tabix LIKE SY-TABIX.

CASE i_datasource.

WHEN 'ZSALES'.

  • Endless loop for debugging *

  • l_counter = 7.

  • while l_counter = 7.

  • endwhile.

  • Find end-user in the VBPA transaction data table

LOOP AT c_t_data INTO l_s_zsales.

l_tabix = SY-TABIX.

SELECT SINGLE * FROM VBPA WHERE VBELN = l_s_zsales-VBELN AND POSNR = '000000' AND PARVW = 'Z1'.

  • Fill fields with data from the VBPA transaction data table

IF SY-SUBRC = 0.

ZOXDV10019-ZZENDUSER = VBPA-KUNNR.

MODIFY c_t_data FROM ZAZOXDV10019 INDEX l_tabix.

ENDIF.

ENDLOOP.

Why SAP couldn't recognize the field of my appended structure?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 21, 2006 at 03:00 PM

    hi Du,

    you should use l_s_zsales instead of ZOXDV10019.

    l_s_zsales-ZZENDUSER = VBPA-KUNNR.

    MODIFY c_t_data FROM l_s_zsales INDEX l_tabix.

    hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 05, 2006 at 06:49 AM

    Hi Du,

    I went through your post. Can you provide some light on

    how to extract data from VBPA. But we dont use any z* fields!!

    Thanks in advance.

    Regards,

    BW IGA.

    Add comment
    10|10000 characters needed characters exceeded