Coding in SAP routine for Populating Infostructure

Hi All,
In have  a requirement SIS and Formula SIS defined (888 routine number) for S520 update.
I need to update Actual shipment , Open Order quantity and Incoming Quantity in S520.
I want to know how we are going to write code inside that routine?
Are we only going to populate S520-Open Order Quantity field , S520-Actual Shippment field?
Please help me out with some sample example.
Thanks in advance.
Dipankar.

My opinion is that you should write a report program from scratch and not use ABAP query. ABAP query generates code which is not very efficient if you start to add your own code.

Similar Messages

  • Allocation routine for SAP 2007a and 8.8

    Hi
    The sales team have asked my to quote for an allocation routine to allocate entries on accounts with a zero balance
    I have allocated a payment to an invoice before not all the other transaction type, ie allocating a credit note to an invoice for example
    I just wondered if anyone else had coded anything similar / see any problems with coding this ?
    Thanks for any help
    Regards Andy

    Andy,
    Allocation you mean: reconsiliation of unrefernced amount in of a controll account of Vendor/Customer ?
    If yes, the reconsiliation is not exposed via DI API, so it is cannot be done.
    if not reconsiliation, in this case it is not easy. The problem, that you should condiser each transaction types posting to the Vendor/Customer Controll Account, such as Invoice, Journal Entries, referenced and unreferneced Payment (incoming outgoing), Credit memos etc.
    Also an intresting point, that the topic of Down Payment control account.
    SAP B1 has a feature: auto and semi automatic resonsiliation, which can provide similar functionality that you require,
    Best Regards,
    János

  • Required Routine for 0DEB_CRED

    HI,
    I want to write routine for 0DEB_CRED ,to populate data from 0DOC_CATG.
    I am not good at routine.
    I have gone through http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80cede83-350f-2d10-9e97-be196122ce29?QuickLink=index&overridelayout=true
    this link.
    Still need routine to populate data for 0DEB_CRED , from source feild 0DOC_CATG.
    Can anyone give routine.
    Regards,
    rvc

    Hi RVC,
    0DEB_CRED is get populated based on 0DOC_CATG or VBTYP field of data source .
    you can try field routine for this .
    1. Map 0DOC_CATG from source to 0DEB_CRED of target .
    2.Write this code :
    if source_fields-DOC_CATG  CA 'NO6KHT'.
           result = 'C'.
    else.
            result = 'D'.
    endif.
    If  0DOC_CATG  is any of this N/O/K/H/T/6 then its credit ( target postings) else it is debit (actual postings).
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • End routine for Currency conversion

    Hi,
    I have a requirement in which i have to convert sales and cost into three types of currency as GBP, INR and EUR in cube. i made 3 different fields for sales as well as for cost. But i am unable to write end routine for it.
    Can anyone please help me that how can i solve this problem.
    Roma

    Hi,
    In transformation itself you can do your currency conversion.
    http://help.sap.com/saphelp_nw70/helpdata/en/de/6372426f0f9041e10000000a1550b0/content.htm
    If you want to write a routine in to do conversion, you have to go for start routine instead of end routine.
    Thanks
    BVR

  • How to write a Globla Routine for Transfer Rules

    Hi Experts,
    How to write a Global Routine for Tranfer Rules ? Where all the infoobjects need to be grouped? Effect need to be shown on group of fields that are available in a single structure.
    Thanks in Advance
    Vara

    Hi,
    Are you aware of Start Routine available?.. This helps to write a routine on all the infoObjects available in Transfer Structure
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm
    regards
    Happy Tony

  • Need clarification to write transformation routine for my requirement

    Hi all,
    I have a requirement as mentioned below...
    I have a keyfigure amount which will hold the amount value..now i have been asked to add amount_2000 key figure...it has been done..
    But the real problem is that
    They will give a filter value in DTP selection for the field "area".
    now if they give area as 1000 then the amount field should populat with the respective amount value
    but whereas amount_2000 should populate with only the amount of the area 2000 irrespective of the filter condition given...
    i need to write the routine in the transformation...But the problem is that when we give the filter value in DTP i coudnt get value for amount_2000 as only it gets the value for 1000.
    I hope the requirement is clear...
    can any one help me in this.
    Thanks & Regards,
    Hari.

    Write a routine for the InfoObject amount_2000.
    Use amount and area as source fields.
    Now the coding should look like:
    IF source_fields-area = '2000'.
      RESULT = source_fields-amount.
    ELSE.
      RESULT = 0.
    ENDIF.
    This is independent of the filter values in the DTP.
    Best regards
    Dirk

  • SAP Script for Delivery

    Dear ABAPer's ,
    I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
    For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
    I have modified the routine RVADDN01 according to my requirements.
    How to do this...

    Hi Sapient,
       In order to create a page for each line item what you have to do is in the script part where you have written the values.
    for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
    <b>Script:</b>
    /E DET
    P1 &I_DETAILS-VALUE&
    /: NEW-PAGE
    <b>Driver program:</b>
    Loop at i_details.
    CALL FUNCTION 'WRITE_FORM'
       ELEMENT                        = 'DET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    Endloop.
    Try this it would work.
    Reward if helpful.
    Regards,
    Tushar

  • Identify price [Derive dynamic pricing] related fields within sales quote output form in SAP cloud for customer CRM application

    We have designed a Sales Quote Output Form using ADLC for SAP Cloud for Customer (C4C). We need to print both header and item level price details like Unit Price, Tax%, Tax Amount, Discount %, Discount value on the output form. We are now struggling to find the actual fields which will carry these values in the transaction. We are using multiple pricing procedures which have different condition types. The struggle is to find the actual condition type while generating the output. Can somebody guide which fields could carry these values which condition type. Can this be achieved without coding. Please guide.
    I have added two screen shots for reference.

    I am not sure I understand your question. What I think you are asking is in your data binding where is the data for fields in question. That is something you will need to get from whoever defined the data. The connection simply binds the data to your form but determining which field carries that data is not something this group would be able to help with. I would go back to your DBA and ask for a schema or DB reference to show which bindings will carry that data. Does that help?

  • Sap script for Delivery(item wise)

    Dear ABAPer's ,
        I am working on a SAP Script for Delivery(<b>Item wise</b>).The requirement is I need a print out for each line item in a delivery.I am using tcode VL71 for taking prinout.
    I have modified the routine <b>RVADDN01</b> according to my requirements.But the problem is i am not able to capture
    which line item is selected.Whichever lineitem i select it is giving the details of all the line items.
    Am I using the correct routine or someother routine is available for item wise details.
    Please clarify.

    hi SAP ,
    u have selected right one , Just Debug the script from which text Element u are getting the data into Form, then check ur Logic.
    Regards
    Prabhu

  • Open Hub - Routine for KeyFigures possible?

    I created an OpenHub destination and to export data from a cube. When I now want to modify the exported value for a key figure in a routine for this transformation, I do not see the default template "RESULT = ." and keep getting syntax errors for ABAP code that works fine in other transformation routines of the same cube.
    When using a formula instead, I also get error messages saying "Target parameter is not being used" and "Cannot compile formula" even though the formula is very simple.
    I am now wondering whether I am doing something wrong or whether it is not possible to change values in transformations for OpenHub exports.
    Thanks for clarifying,
    Dennis

    Hi Sasidhar,
    Please find the below links,
    INFOSPOKES:
    http://help.sap.com/saphelp_nw04/helpdata/en/66/76473c3502e640e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/03853c01c89d7ce10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/59/90070982d5524b931ae16d613ac04a/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/c2463c6796e61ce10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/43f92595-0501-0010-5eb5-bb772d41ffa4
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e830a690-0201-0010-ac86-9689620a8bc9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    http://help.sap.com/saphelp_nw04/helpdata/en/66/76473c3502e640e10000000a114084/frameset.htm
    Hope this helps,
    Sai.

  • VOFM output control routine for VT01N

    I need to know what the temporary strucutre or internal table is that SAP uses for deliveries.  The values eventually get stroed in table VTTP.  But when using VT01N they are not there of course until it is actually saved to the DB.  The output control routine that was created gets invoked or called before it is saved so I have to read from the temp or internal table SAP uses to load these values for the deliveries.  Does anyone know what this table might be?  I am allowing or preventing output based on some detail concerning the delieveries but none of it is stored until it is saved so I need this temp table to get to the values.

    Look in INCLUDE VTTPDATA.
    This is where the internal tables are defined for VT01N.
    *   INCLUDE VTTPDATA                                                   *
    TABLES:  VTTP,   *VTTP,
             VTTPD,  *VTTPD,
             VTTPVB, *VTTPVB.
    DATA:    BEGIN OF COMMON PART VTTPCOM.
    *   shipment items
    * Data base contents
    DATA:    BEGIN OF DBVTTP OCCURS 0.
               INCLUDE STRUCTURE VTTP.
    DATA:    END OF DBVTTP.
    * New table contents
    DATA:    BEGIN OF XVTTP OCCURS 0.         "Sortiert nach:
               INCLUDE STRUCTURE VTTPVB.      " MANDT TKNUM TPNUM VBELN
    DATA:    END OF XVTTP.
    * Old table contents
    DATA:    BEGIN OF YVTTP OCCURS 0.         "Sortiert nach:
               INCLUDE STRUCTURE VTTPVB.      " MANDT TKNUM TPNUM
    DATA:    END OF YVTTP.
    * Temporary table contents
    DATA:    BEGIN OF LVTTP OCCURS 0.
               INCLUDE STRUCTURE VTTPVB.
    DATA:    END OF LVTTP.
    * Definition of keys
    DATA:    BEGIN OF VTTP_KEY,
               MANDT LIKE VTTP-MANDT,
               TKNUM LIKE VTTP-TKNUM,
               TPNUM LIKE VTTP-TPNUM,
             END   OF VTTP_KEY.
    * Internal table for screen processing
    DATA:    BEGIN OF IVTTP OCCURS 0,        "Sortierkriterium wechselt !
               TKNUM LIKE VTTP-TKNUM,
               TPRFO LIKE VTTP-TPRFO,
               TPNUM LIKE VTTP-TPNUM,
               VBELN LIKE VTTP-VBELN,
               VSTEL LIKE VTRLK-VSTEL,
               WERKS LIKE VTTPVB-WERKS,
               LAND1 LIKE VTRLK-LAND1,
               PSTLZ LIKE VTRLK-PSTLZ,
               KUNNR LIKE VTRLK-KUNNR,
               LIFNR LIKE VTTPVB-LIFNR,
               CONADDR LIKE V56IDLNT-CONADDR,
               TABIX LIKE SY-TABIX,
               XTRLK LIKE SY-TABIX,
               BTGWC LIKE VTRLK-BTGEW,
               GSGWC LIKE VTRLK-BRGEW,
               VOLMC LIKE VTRLK-VOLUM,
    *        fields below will be updated during tree processing
               BTGWD LIKE V56IQUA-BTGWD,
               GSGWD LIKE V56IQUA-GSGWD,
               VOLMD LIKE V56IQUA-VOLMD,
               DTMEG LIKE TVTK-DTMEG,
               DTMEV LIKE TVTK-DTMEV,
               TKNEW LIKE VTTP-TKNUM,
               SELKZ LIKE RV56A-SELTSTP,
             END   OF IVTTP.
    *   deliveries in process
    DATA: BEGIN OF XTRLK OCCURS 0.         "delivery headers
            INCLUDE STRUCTURE VTRLK.       "Sortiert nach MANDT VBELN
    DATA: END OF XTRLK.
    DATA: BEGIN OF XTRLP OCCURS 0.         "delivery items
            INCLUDE STRUCTURE VTRLP.       "Sortiert nach VBELN POSNR
    DATA: END OF XTRLP.
    DATA:    END OF COMMON PART.
    If you put a breakpoint in you VOFM routine, you should be able to examine which of these has the data that you need.
    If you need more info, such as header data etc
    Look at these others:
    *        Internal tables for shipment data base
    SET EXTENDED CHECK OFF.
    INCLUDE vttkdata.                      "shipment header
    INCLUDE vttpdata.                      "shipment item
    INCLUDE vttsdata.                      "shipment segment
    INCLUDE vbpadata.                      "partner
    INCLUDE vtfadata.                      "flow
    INCLUDE sadrdata.                      "address
    This is from the top include MV56ATOP for the program run by VT01N, SAPMV56A.
    You can access all of this through SE84, Information System.
    Good luck
    Brian

  • SAP note for implementing FM CONVERSION_EXIT_MATN2_OUTPUT

    Hello Experts,
    I need to implement the FM CONVERSION_EXIT_MATN2_OUTPUT ( + Conversion routine MATN2 ) in our SAP system version 4.7.  Can anyone tell me if there are any specific SAP note for implementing it. 
    Note: Our SAP system dont have DI software component.  I want to implement the FM without going for DI.
    Awaiting reply,
    Thanks,
    Balaji
    Edited by: Balaji on Jan 19, 2009 11:59 AM
    Edited by: Balaji on Jan 19, 2009 1:02 PM

    Thanks.

  • Routines for table 56 and D1555

    Dear All,
    We are in implementation of IS-Oil-Downstream.
    Need your help on the follwoing items.
    1.0    There are couple of products whcih are subjected to aromatic conversion. e.g. Benzene. for thsi product we use the Table D1555 for correcting the volume. For thsi table there is not API routines available. We have serached SAP note on this but there is no clarity on this. We would like to know is there any API routines available as distributor for API has said that there is no such routines for D1555.  Does any one has an idea on this ? Can we configure going into node aromatic convserion and amina product, temp and VCF factor ? If yes then which conversion group need to be used ? Can calculation will happen correctly ?
    2.0 We belive that Air boyancy factor in Materials Master can take care of Table 56. Pls. correct wheather understanding is correct.
    Will appreciate your help asap.
    Thanks and Regards,

    Probelm solved

  • Product Bar coding in SAP

    Hi,
    Our client wants to do bar coding in SAP.
    BAR coding is the code which we find in products to
    identify the manufacturing and other details about the products.
    If it is possible in SAP, what are the requirements?
    We use SAP version 4.6B
    Awaiting for your reply
    regards,
    vimal

    Dear Vimal kumar,
               You can get the Bar code in the SAP SD through output determination.
    -->First you do the output determination in the IMG
    -->You discuss with your ABAPer about this and explain him what are the data you want to print in the bar code if possible tell what are the tables.
    -->Based on your requirement your technical guy will develop a bar code outptut programe then you assign that programe to the bar code output type.
    -->Based on the settings you can print the bar code based the output program specifications.
    -->As per SAP recomendation you better to use ZEBRA printer to print the bar code.
    I hope it will help you
    Regards,
    Murali.

  • Any routines for excise conditions?

    Hi,
    Iam using the excise conditions in my pricing procedure TAXINN. shall we use any standard routined for the excise condition types (Alt cal .type)?
    regards,
    jyothi.

    Hi,
    There is a user exit for this.
    J_1I7_USEREXIT_CALC_EXC_BASE.
    Also you can refer to SAP Notes 952289 and 1002634.  This should definitely help.
    Thanks.
    Krishna.

Maybe you are looking for