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

PO Quantity in SAP BODS

Hi All,

Am new to SAP BODS,can you please any one help me please.

I got a task to create in PO Quantity in SAP BODS.

i need to join two tables i.e EKPO and EKBE,so i need to calculate po quantity in EKBE fields are (EBELN,EBELP,BEWTP,BWART,).

they providing logic like this,

If the item category is service (EKPO-PSTYP=9) and material (EKPO-MATNR) is blank , po quantity (EKPO-MENGE) in MSAP = PO quantity (EKPO-MENGE) in GSAP If the item category is standard (EKPO-PSYTP=0) and material (EKPO-MATNR) is NOT blank, po quantity(EKPO-MENGE) is calculated as below: PO quantity (EKPO-MENGE) in MSAP = PO quantity (EKPO-MENGE) in GSAP - ( SUM of RECEIVED QTY - SUM of RETURNED qty)

Can you please suggest me,how to create and where i should map this logic.

Thanks you in advance

regards,

mahesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 19, 2016 at 09:29 AM

    Hi Mahesh

    First you need to get the data of EKKO, EKPO, EKBE in your template table. Then it will be easy in my understanding you want to calculate the open quantity.

    Please follow the above way.

    Thanks and Regards

    Vijay Mukunthan


    pastedImage_0.png (14.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vijay,

      Thank you so much for replying.

      Am already join in EKKO and EKPO after i need to join EKBE table,

      So in EKBE table fields i need to calculate PO Quantity after output i need to join in some other table.i want final report in one table.

      for there fields i wan to calculate the PO Quantity (EKBE-EBELN,EKBE-EBELP,EKBE-BEWTP) for this condition.

      Query 1:

      Query=>Where clause

      ifthenelse(EKPO.PSTYP =0,ifthenelse( EKPO.MATNR = '',EKPO.MENGE))

      Quary 2:

      Query=>Where clause

      ifthenelse(EKPO.PSTYP =9,ifthenelse( EKPO.MATNR IS NOT '',EKPO.MENGE))

      is it correct or not,please suggest me.

      What about 3rd condition i.e

      PO quantity (EKPO-MENGE) in MSAP = PO quantity (EKPO-MENGE) in GSAP - ( SUM of RECEIVED QTY - SUM of RETURNED qty).

      Thanks in advance vijay.

      Regards,

      mahesh

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.