Skip to Content
author's profile photo Former Member
Former Member

ABAP Code for generic datasource zVBSEGK in transformation

Hi everybody,

i have load generic datasource zVBSEGK on BW. the datasource is based on table VBSEGK on R3

i have created a generic cube ZC_VBSEGK, this cube ZC_VBSEGK has field "net due date". Now i create a transformation between datasource

zVBSEGK and cube ZC_VBSEGK.

On the transformation i need to create a routine to calculate "net due date" based on the field: ZTERM (term of payment) and ZFBDT (Baseline Date for Due Date Calculation)

Could you please help me how to write the ABAP to calculate net due date?

i am new to ABAP, i have tried some code found in SCN but it doesn't work for me till now.

Thankyou very much!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 28, 2016 at 09:24 AM

    Hi you can Call FM "DETERMINE_DUE_DATE" to get net due date.

    Data : lwa_faede type faede.

    lwa_faede-koart = 'K' or 'D'. "Acct type

    lwa_faede-ZFBDT = Base line data

    lwa_faede-SHKZG = 'H' or 'S' ."Credit or Debit

    lwa_faede-ZBD3T = payment term


    CALL FUNCTION 'DETERMINE_DUE_DATE'

    EXPORTING

    i_faede = lwa_faede

    IMPORTING

    e_faede = lwa_faede

    EXCEPTIONS

    OTHERS = 1.

    Net Due date = lwa_faede-netdt.

    Regards

    Sachin

    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.