Skip to Content

Fetching data from vbak, vbap, vbrp giving error

Hi All,

I am new to ABAP and geeting error for the following code.....please guide....

<Removed code>

Moderator Message: Post the relevant portions of the code only & give more specific details of the error.

Edited by: Suhas Saha on Feb 8, 2012 3:42 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 10:36 AM

    this is not the way to code yar , Try to learn Basic thing in browsing the way you code itself wrong

    <Removed irrelevant coding>

    Edited by: Suhas Saha on Feb 8, 2012 4:15 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 10:12 AM

    Hi,

    Can you provide detail description of error in which piece of code the error is getting populated.

    Regards,

    Goutam Kolluru.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 08, 2012 at 10:27 AM
    SELECT  vbap~vbeln vbap~POSNR vbap~MATNR vbap~MATWA vbap~PMATN
      FROM VBAP INNER JOIN VBAK
      ON VBAK~VBELN = VBAP~VBELN
      INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
    FOR ALL ENTRIES IN IT_VBAK
    WHERE VBAP~vbeln = IT_VBAK-vbeln.
    
    SELECT    VBELN ERDAT ERZET
       FROM  VBAK  INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
       WHERE      ERDAT        IN  s_ERDAT.
    
    DATA : BEGIN OF IT_FINAL OCCURS 0,
    
                  MANDT TYPE MANDT,
                  VBELN TYPE VBELN_VA,
                  ERDAT TYPE ERDAT,
                  ERZET TYPE ERZET,
                  TMSTMP TYPE TSTAMP,
                  POSNR TYPE POSNR_VA,
                  MATNR TYPE MATNR,
                  MATWA TYPE MATWA,
                  PMATN TYPE PMATN,
                  STDAT TYPE STDAT,
                  GSBER TYPE GSBER,
                  VBELV TYPE VBELV,
                  AUREF TYPE AUREF,
                  PRSDT TYPE PRSDT,
    
           END OF IT_FINAL.
    
           data: wa_final like line of it_final.
    loop at it_vbak.
    
    
    it_final-MANDT = IT_VBAK-MANDT.
    it_final-VBELN = IT_VBAK-VBELN.
    it_final-ERDAT = IT_VBAK-ERDAT.
    it_final-ERZET = IT_VBAK-ERZET.
    it_final-TMSTMP = TIMESTAMP.
    
     loop at it_vbap.
    
     it_final-POSNR = IT_VBAP-POSNR.
    it_final-MATNR = IT_VBAP-MATNR.
    it_final-MATWA = IT_VBAP-MATWA.
    it_final-PMATN = IT_VBAP-PMATN.
    it_final-STDAT = IT_VBAP-STDAT.
    append it_final.
    
    endloop.
    endloop.
    
    MODIFY ZTABLE_16 FROM TABLE IT_VBAK.
    MODIFY ZTABLE_16 FROM TABLE IT_VBAP.

    <Modified the code format>

    Error Message :The work area "IT_VBAK" is not long enough ...

    Edited by: Suhas Saha on Feb 8, 2012 3:58 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.