Skip to Content

0FI_AR_4 Enhancement

Hi ,

I am new to ABAP.

I want to enhance the data source 0FI_AR_4,We dont have the field KUNAG(Sold to Party) which is available in ( 2LIS_13_VDKON) VBRK Table

Hence i have lookup the field with ZUONR(Assignment) from BSID Table, I want write a logic like this SELECT KUNAG From VBRK where VBRK-ZUONR=BSID-ZUONR.

Can you please provide same logic for this enhance

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jan 08, 2014 at 01:44 PM

    can you search form Google. Data source enhancement.

    you may get useful docs. from them you may get basic idea how to write logic.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 05:47 AM

    Dear Mohan

    For AR enhancement you need not link BSID Zounr, ZOUNR will be a part of the data range from the souce itself, you cal look up ZOUNR into VBRK VBELN to get the customer. Ask the users to maintain sales document in ZOUNR so that the look up to VBRK becomes easier.

    Regards

    Gajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 09:45 AM

    Hi Reddy,

    You can compare BELNR of VBRk with your extract structure and get the sold-to-party.

    If you are novice in ABAP take help of ABAP persons help...

    Please refer to the below code,

    DATA: l_t_fiar TYPE TABLE OF DTFIAR_3 WITH HEADER LINE,
    l_t_fiar_idx TYPE sy-tabix.

    WHEN '0FI_AP_4'.
    LOOP AT c_t_data INTO l_t_fiar.
    l_t_fiar_idx = sy-tabix.

    SELECT SINGLE KUNAG
    FROM VBRK
    INTO (l_t_fiar-zzkunag)

    WHERE belnr = l_t_fiar-belnr.

    MODIFY c_t_data FROM l_t_fiar INDEX l_t_fiar_idx.
    ENDLOOP.

    Give a try with the above code in your sandbox or development system and reconcile the data.

    Regards

    KP

    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.