SAP WBS settlement table

Hi
We are settling WBS to AUC .
I can see this in CN41 t code but i am not able to find which table it is.
Any help appreciated.
Thanks,
Reddy

Paul,
In our system unfortunately in table ANLA - POSNR is blank.
The way i found it in table level is through
ANEK- ANLN1 Asset
ANEK - ZOUNR WBS
ANEK had both the asset and WBS element no.
Thanks for all your replys again.
Regards,
Reddy

Similar Messages

  • Rejection of WBS settlement step in SAP PS

    Dear Experts,
    I have on e new requirement to ignore WBS settlement step from SAP PS flow.
    Current scenarion ;-
    WBS --> Network --> Activity --> Material Po -->Budgeting --> Release budget -->PO creation --> GRN --> GI --> MIRO -->AS01   --> CJIC --> Settlement CJ88 --> Activity Confirm --> WBS Techo --> WBS Closed.
    Require Scenarion :-
    WBS --> Network --> Activity --> Material Po -->Budgeting --> Release budget -->PO creation --> AS01 --> GRN --> GI --> MIRO ->Activity Confirm --> WBS Techo --> WBS Closed.
    At the time of GRN only item should be cpitalised.
    can anybody explain is it possible? if not then why?
    Please explain impact on PS module.
    Please do needful.
    Thanks & Regars,
    Arvind Tirlotkar.

    Hi,
    I think you are talking about direct capital item procurement.
    you can make statistical project for that; then the wbs will only be used for budget check and you don't have to settle also.
    at the time of pr/po creation you can have wbs element field and asset field in account assignment tab (get with the help of MM consultant); all cost will got o asset and budget will be checked against wbse.
    Regards,
    Harsh.

  • Any standard report to show WBS,settlement, asset no and asset cost/value

    Hi All,
    Please advice . Is there any standard report to show WBS,settlement, asset no and asset cost/value ? I tried tcode kosrlist_pr but it does not show asset cost/value.. it shows only WBS,settlement and asset no.
    Thank you.
    Best Regards,
    Nies

    Dear,
    der is no such standard report to show WBS,settlement, asset no and asset cost/value as perv my knowlwdge. so do one thing select one standard report which is more similar to standard report to show WBS,settlement, asset no and asset cost/value but some of like asset no or asset cost or some other values not reflecting in that std report. den u take the Table name and field name of that particular fields which u wann reflect in the report. use the logic of STD TC of SAp which more similar to which u wanna preapre the New TC. tae help of Abaper. tell ur querry and content of ur report . he will definately do it
    if ur get my ans reward with points
    Regards
    Rakesh

  • Quantity in Account Based COPA upon WBS Settlement

    Hi All
    I am facing an issue with the quantity flow into Account Based COPA.
    We have activated account based COPA and we use sales orders/billing and also Projects.
    When I am creating sales order (no reference to WBS), delivery against sales order and billing from delivery, I see that
    quantity posted in Delivery document and quantity from billing document are transferred to account based COPA along with GL postings.
    But when I am creating sales orders with account assignment of WBS, then all the delivered quantity and billed quantity
    are posted to WBS elements along with the FI postings. Receiver on my WBS is COPA segment.
    When I settle the WBS that carry both revenues and costs (COGS to be sepcific), I see that amounts are settled correctly with
    right GL accounts into account based COPA, but I do not see that quantities getting transferred.
    I know how we can transfer quantities using costing based COPA during settlement (using PA Transfer structure with Qty setting), but
    not sure how it works in account based COPA for settlements.
    Any thoughts on how to transfer quantities from WBS settlement to account based COPA.
    Your help is much appreciated
    Thanks
    Rama

    Hello Rama,
    First of all, I want to give you with note 352610 some general
    information about the update of quantities in CO. For further
    analyses I would recommand you report RKACSHOW where you can
    find the relevant tables you can take a look, f.e. table COKA,
    COSS(A) and COSS(A). Probabely in table COKA the field 'MEINH'
    is not filled.
    Furthermore I want to provide you note 27922 which explains in detail
    the system behaviour for settlements in this case.
    https://service.sap.com/sap/support/notes/352610
    https://service.sap.com/sap/support/notes/27922
    Thanks and best regards,
    Ronghua Fan

  • Settlement table

    Dear all
           process order settlement tables or process order analysis cost stored tables in sap.

    Hi,
    Please check the following tables.
    AUAA Settlement Document: Receiver Seg
    AUAI Settlement Rules per Depreciation
    AUAK Document Header for Settlement
    AUAV Document Segment: Transactions
    COBRA Settlement Rule for Order Settlem
    COEP for cost analysis.
    You can check the report in KKBC_HOE.
    Regards,
    R.Brahmankar

  • Error when reversing WBS settlement

    Hi guys,
    When i am reversing the WBS settlement i am getting dump with this program error
    BALANCE_CALC_LOGVO_2.
    I searched some SAP notes and it is saying about document splitting. Did anyone see this before? I couldn't understand a bit. I will appreciate any sort of help.
    thanks, Satya

    Hi
    Check out this note for correction
    [1046656|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1046656]
    - Pithan

  • BAPI/FM to create WBS settlement rules.

    Hi,
    I would like to know if there is a FM or BAPI to create WBS settlement rules. I use CJ20N transaction to create manually. Any qucik response will be much appreciated and Obviously rewarded
    Thanks,
    Vivek.T

    U can use the user exit
    COPCP005 and its function exit EXIT_SAPLCKAZ_001. Try this out....
    Or choose any one options from the below list which suits ur requirement:
    Develop Enhancements for Material Costing
    The following SAP enhancements are available for the area Cost Estimate with Quantity Structure:
    o Costing Reports (SAPLXCKA)
    o Costing Production Resources and Tools (COPCP003)
    o Material Valuation with Cross-Company Costing (COPCP001)
    o Costing Bulk Materials (COPCP004)
    o Valuation Price for Materials from User Exit (COPCP005)
    1. Costing Reports: SAPLXCKA
    Here you can create your own reports for displaying cost estimates with quantity structure or activate the example reports in the standard system.
    This enhancement contains the following components:
    · EXIT_SAPLCKAZ_001 Display/print itemization
    This enhancement contains example program code from SAP that you can modify and use for your own enhancement, or activate directly as a report for the itemization.
    · EXIT_SAPLCKAZ_002 Display/print cost components
    This enhancement contains example program code from SAP that you can either modify and use for your own enhancement, or activate as a report for the cost components.
    · EXIT_SAPLCKAZ_003 Display/print cost components and itemization
    This enhancement does not contain example program code.
    In the cost estimate with quantity structure you access the reports with Costs -> Display user exit. The report refers to the first cost component view listed. If you want to see the costs with reference to another cost component view, choose Settings -> Cost display and choose the desired report under Select view.
    You can display your own reports in the information system by adding them to the report list for product costing.
    See also:
    Check report list for material cost estimate
    2. Costing production resources/tools: COPCP003
    This enhancement contains the component EXIT_SAPLCK01_001.
    The costs for production resources and tools are calculated as a flat rate within production overhead.
    This enhancement enables you to plan the costs for production resources in costing with quantity structure in different ways. Here you can specify how the production resources are to be costed.
    In the cost component structure, the production resources can be shown in separate cost components.
    This enhancement contains example program code from SAP that you can modify or use as is.
    3. Material valuation with cross-company costing: COPCP001
    This enhancement contains the component EXIT_SAPLCK21_001.
    Here you can enter the prices for valuation of a material that is transferred between company codes.
    You have the following options for the valuation of materials that are transferred between company codes:
    o You are using the standard system without cross-company costing. In this case the system uses a price in the material master record in accordance with the valuation strategy. The material is treated as if it were externally procured.
    o You activate cross-company costing. In this case the material is recosted in the other company code or transferred according to the transfer control ID.
    If you have not activated cross-company costing, you can use this enhancement to define alternative prices for valuation of a material that is transferred between company codes. That is, this enhancement allows you to specify which price should be used instead of the price from the material master record.
    In include LXCKAF)) you can find an example program code. However, this code example can not be directly copied and used
    4. Costing Bulk Materials: COPCP004
    This enhancement contains the component EXIT_SAPLKKEX_001.
    You can use this enhancement to plan the costs for bulk materials and show in the cost element itemization.
    If the indicator Bulk material is set in the material master, the indicator Relevant to costing in in the BOM does not accept input for the item. The enhancement allows you to determine the costing relevancy. The items with the bulk materials indicator at item level of BOM are also included as relevant to costing.
    This enhancement contains example program code from SAP that you can modify or use as is.
    5. Valuation Price with Valuation Strategy U: COPCP005
    This enhancement contains the component EXIT_SAPLCK21_002.
    You can use this enhancement to specify prices for valuation of materials if you want to use valuation strategy U (valuation with USER EXIT) for material valuation to find a price for the materials.
    This enhancement does not contain any example program code from SAP.
    Activities
    To activate the SAP example reports (the procedure is similar forthe other enhancements):
    1. Create a new project or use an existing one.
    2. Set the indicator SAP enhancements and choose Change.
    3. Enter SAPLXCKA as the SAP enhancement and choose Save.
    4. Set the indicator Enhancement components and choose Change.
    5. Position the cursor on the enhancement component EXIT_SAPLCKAZ_001 and choose Edit -> Use SAP source code.
    6. The system asks whether you want to create ZXCKAU01. Answer Yes.
    7. Maintain the attributes.
    8. Save the program and choose Back.
    9. Position the cursor on the enhancement component EXIT_SAPLCKAZ_002 and choose Edit -> Use SAP source code.
    10. The system asks whether you want to create ZXCKAU02. Answer Yes.
    11. Maintain the attributes.
    12. Save the program and choose Back.
    13. Activate the project.
    14. To display the reports, you must perform costing again.
    Further notes
    Unlike modifications, enhancements are always upgrade-compatible because they are implemented in a name range reserved for the customer rather than in the SAP original.
    The general procedures for creating enhancements can be found in the enhancement transaction CMOD under Goto -> Online Manual. This takes you to the SAP library where you can find detailed information on customer exits.For more information on the above enhancements, see the associated function module documentation.
    Reward if useful...
    Regards
    Karthik D

  • Insert into sap r/3 table

    hi,guruvulu
    this is the program...............to insert the data into sap r/3 table
    but record is not inserting....any commit i have to write in my program?
    Created on Feb 20, 2007
    TODO To change the template for this generated file go to
    Window - Preferences - Java - Code Style - Code Templates
    package comm;
    @author sapusr006
    TODO To change the template for this generated type comment go to
    Window - Preferences - Java - Code Style - Code Templates
    Example2.java
    Property of SAP AG, Walldorf
    (c) Copyright SAP AG, Walldorf, 2000-2005.
    All rights reserved.
    //import java.sql.Connection;
    //import java.sql.PreparedStatement;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IRepository;
    import com.sap.mw.jco.JCO;
    @version 1.0
    @author  SAP AG, Walldorf
    public class Fm {
      // The MySAP.com system we gonna be using
         static final String SID = "R3";
    // static String query="insert into BAPI_COMPANYCODE_GETLIST values(?,?)";
      // The repository we will be using
      IRepository repository;
                                 //ESTABLISHING A CONNECTION TO SAP
      public Fm()
        try {
          JCO.addClientPool( SID,            // Alias for this pool
                             10,             // Max. number of connections
                             "800",          // SAP client
                             "RFCTEST",      // userid
                             "welcome",      // password
                             "EN",           // language
                             "10.10.88.170", // host name
                             "01" );
           //   Create a new repository
          //    The repository caches the function and structure definitions
          //    to be used for all calls to the system SID. The creation of
          //    redundant instances cause performance and memory waste.
            repository = JCO.createRepository("MYRepository", SID);
        catch (JCO.Exception ex) {
          System.out.println("Caught an exception: \n" + ex);
                               // RETRIEVES AND DISPLAY A  ZHR INFOTYPE OPERATION
      public void salesOrders()
        JCO.Client client = null;
        try {
          // Get a function template from the repository
             //System.out.println("goes to sales order");
          IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZHR_INFOTYPE_OPERATION");
          System.out.println("hai");
               if(ftemplate != null) {
            // Create a function from the template
           JCO.Function function = ftemplate.getFunction();
           JCO.ParameterList paralist=function.getImportParameterList();
                             paralist.setValue("0000000011","PERNR");
                             paralist.setValue("UPD","ACTIO");
                             paralist.setValue("A","TCLAS");
                             System.out.println("hello");
                             paralist.setValue("20061215","BEGDA");
                             System.out.println("hello");
                             paralist.setValue("20061215","ENDDA");
                             paralist.setValue("1","OBJPS");
                             paralist.setValue("LTA","SUBTY");
              System.out.println("SETTING VALUES");
            // Get a client from the pool
              client = JCO.getClient(SID);
              System.out.println("goes to sales order");
              //function.getImportParameterList().setValue("QUERY_TABLE","ZHRJ2EETEST");
                //EXECUTING THE FUNCTION
               client.execute(function);
              System.out.println("after exeucting the function");
                 // NO OF IMPORT PARAMS IT DISPLAY
                             //STRUCTURE
                              JCO.Structure returnStructure =
                                                                              function.getExportParameterList().getStructure("RETURN");
                              String structure=returnStructure.toString();
                              System.out.println(structure);
                                                                                    JCO.Table sales_orders = function.getTableParameterList().getTable("PROPOSED_VALUES");
                             System.out.println("after function");
                               System.out.println("proposed111"+sales_orders.getNumRows());
                                                                                    sales_orders.firstRow();
                                    sales_orders.appendRows(3);
                                 sales_orders.setValue("0582","INFTY");
                                 sales_orders.setValue("P0582-AMTEX","FNAME");
                                  sales_orders.setValue("200.00","FVAL");
                                  sales_orders.nextRow();
                                  sales_orders.setValue("0582","INFTY");
                                  sales_orders.setValue("P0582-JBGDT","FNAME");
                                  sales_orders.setValue("20061215","FVAL");
                                  sales_orders.nextRow();
                                  sales_orders.setValue("0582","INFTY");
                                  sales_orders.setValue("P0582-JENDT","FNAME");
                                  sales_orders.setValue("20061215","FVAL");
                                  System.out.println("proposed222"+sales_orders.getNumRows());
                                                                                    /*for (int i = 0; i <sales_orders.getNumRows(); i++) {
                                  sales_orders.setRow(i);
                                  System.out.println(sales_orders.getString("INFTY"));
                     JCO.Table sales_orders1 = function.getTableParameterList().getTable("MODIFIED_KEYS");
                             System.out.println("modified"+sales_orders1.getNumRows());
                                                                                    sales_orders1.setRow(1);
                               sales_orders1.appendRows(1);
                               sales_orders1.setValue("0000000011","PERNR");
                               sales_orders1.setValue("0582","INFTY");
                               sales_orders1.setValue("LTA","SUBTY");
                               sales_orders1.setValue("1","OBJPS");
                               sales_orders1.setValue("20061215","BEGDA");
                               sales_orders1.setValue("20061215","ENDDA");
                             System.out.println("modified222"+sales_orders1.getNumRows());
                                                                                    System.out.println("execute222"+sales_orders1.getNumRows());
                                                                                    for (int i = 0; i <sales_orders1.getNumRows(); i++) {
                                  sales_orders.setRow(i);
                                  System.out.println("hia"+sales_orders1.getString("SUBTY"));
                                                                                    System.out.println("NO OF ROWS ARE:---"+ sales_orders.getNumRows());
               String fieldName[]=new String[sales_orders.getFieldCount()];
               System.out.println("THE COLUMNS IN THE TABLE ARE:--"+sales_orders.getFieldCount());
               // sales_orders.firstRow();
               //COLUMNS NAMES
               System.out.println(fieldName.length);
               for (int iCtrst = 0;iCtrst < sales_orders1.getFieldCount();iCtrst++) {
                        fieldName[iCtrst] = sales_orders1.getName(iCtrst);
                        System.out.println(fieldName[iCtrst]);
            if (sales_orders.getNumRows() > 0) {
              // Loop over all rows
               do {
                     System.out.println("----
                     //int r=1;
                // Loop over all columns in the current row
                for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements();)
                       JCO.Field field = e.nextField();
                       String compcode=field.getString();
                       //pst.setString(r,compcode);
                       System.out.println(field.getName() + ":\t" + field.getString());
                      // r++;
                   }//for
                    // i=pst.executeUpdate();
                } while(sales_orders.nextRow());
            else {
              System.out.println("No results found");
            if (sales_orders1.getNumRows() > 0) {
                // Loop over all rows
                 do {
                       System.out.println("----
                       //int r=1;
                  // Loop over all columns in the current row
                  for (JCO.FieldIterator e = sales_orders1.fields(); e.hasMoreElements();)
                             JCO.Field field1 = e.nextField();
                         //String compcode=field1.getString();
                         //pst.setString(r,compcode);
                         System.out.println(field1.getName() + ":\t" + field1.getString());
                        // r++;
                                                                                    }//for
                      // i=pst.executeUpdate();
                  } while(sales_orders1.nextRow());
              else {
                System.out.println("No results found");
               System.out.println("modified"+sales_orders1.getNumRows());
               System.out.println("modified"+sales_orders.getNumRows());
            //if
           /* if(i>=1)
                 System.out.println("\t\t\tUpdated ORACLE successfully");
          else {
            System.out.println("FUNCTION MODULE not found in backend system.");
          }//if
        catch (JCO.AbapException ex) {
          System.out.println("Caught an exception: \n" + ex);
        }catch(Exception en){en.printStackTrace();}
        finally {
                   JCO.releaseClient(client);
      protected void cleanUp() {
          JCO.removeClientPool(SID);
      public static void main(String[] argv)
        Fm e=new Fm();
       // e.systemInfo();
        e.salesOrders();
        e.cleanUp();
    output:
    TABLE: MODIFIED_KEYS
    TABLE: PROPOSED_VALUES
    IMPORT         ACTIO
    IMPORT         BEGDA
    IMPORT         DIALOG_MODE
    IMPORT         ENDDA
    IMPORT         LUW_MODE
    IMPORT         MASSN
    IMPORT         NO_ENQUEUE
    IMPORT         NO_EXISTENCE_CHECK
    IMPORT         OBJPS
    IMPORT         PERNR
    IMPORT         PERSG
    IMPORT         PERSK
    IMPORT         PLANS
    IMPORT         SEQNR
    IMPORT         SPRPS
    IMPORT         SUBTY
    IMPORT         TCLAS
    IMPORT         WERKS
    EXPORT          HR_RETURN
    EXPORT          RETURN
    EXPORT          RETURN1
    appending
    NO OF ROWS ARE:---3
    THE COLUMNS IN THE TABLE ARE:--4
    INFTY:     0582
    FNAME:     P0582-AMTEX
    FVAL:     200.00
    SEQNR:     00
    INFTY:     0582
    FNAME:     P0582-JBGDT
    FVAL:     20061215
    SEQNR:     00
    INFTY:     0582
    FNAME:     P0582-JENDT
    FVAL:     20061215
    SEQNR:     00
    PERNR:     00000011
    INFTY:     0582
    SUBTY:     LTA
    OBJPS:     1
    SPRPS:     
    ENDDA:     2006-12-15
    BEGDA:     2006-12-15
    SEQNR:     000

    hi jagadesh,
    ur code is very length to see.
    see the following code ,
    JCO.Function objFunction =
                   this
                        .objIRepository
                        .getFunctionTemplate("BAPI_MATERIAL_AVAILABILITY")
                        .getFunction();
              objFunction.getImportParameterList().setValue(strPlant, "PLANT");
              objFunction.getImportParameterList().setValue(strMaterial, "MATERIAL");
              objFunction.getImportParameterList().setValue(strQuantity, "UNIT");
              this.objClient.execute(objFunction);
              JCO.Structure ret =
                   objFunction.getExportParameterList().getStructure("RETURN");
              String strRetMsg = ret.getString("MESSAGE");
    System.out.println(strRetMsg);  // it will tell whether record is inserted or not
    /*JCO.Function objFunction1 =
                   this
                        .objIRepository
                        .getFunctionTemplate("BAPI_TRANSACTION_COMMIT")
                        .getFunction();
    objFunction1.setValue("",WAIT);
    objClient.execute(objFunction1);*/
    CHECK THE RETURN MSG .IT WILL TELL THE PROBLEM
    give me points if it is useful
    regards
    Guru
    Message was edited by:
            Guruvulu Bojja
    Message was edited by:
            Guruvulu Bojja
    Message was edited by:
            Guruvulu Bojja

  • Cost Object in FI document with WBS Settlement

    Hi,
    I'm testing WBS settlement to G/L account which is cost element. I made some substitution rules because I met an error message saying that "Cost Object is needed"
    As a result I can settle WBS to cost elements such as COGS etc. I got a FI document, CO document and PCA document. Everything looked so nice.
    Suddenly I noticed, however, that there is no such a thing like cost object on FI document. When I look up the FI document using FB03, I found that the PS-POSID was empty. Of course, CO documents have Cost Object.
    What I wonder is as follows
    1. Is this standard? Is it natural that FI document with CO doc has no cost object on it?
    2. If I need to use FI document to determine WBS element, what is the best to way? Is it possible to enter Cost Object such as wbs element in FI document during settlement?
    Thank you for your kind advice in advance.
    Message was edited by:
            Namseok Kang

    Kang,
    In the message which you got, the word 'Cost Object' refered to a cost center, or order, or any other cost object.
    However, there is another account assignment object with the name 'Cost Object', which was not filled in the FI document. That is normal.
    Right now I don't have much information in the a/c assignment object 'Cost Object'.
    Regards,
    Vishal.

  • Need help in transferring data from flatfiles to SAP R/3 tables

    Hi,
    I need to *transfer data in the flatfiles (NON SAP SYSTEM) to SAP R/3 tables*. Can we do it with a help of program ?
    Please help me out
    Thanks and regards,
    Shiva shekar k

    Hi Shiva,
        This code will be helpful to you.
    *Code used to create BDC
    *& Report  ZBDC                                               *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS

  • Extracting data FROM SAP BW/BI TO SAP R/3 Tables

    Dear Experts,
            I would like to know How to get the data from SAP BI/BW which we extracted earlier to SAP R/3 Tables.
    in specific I want to get the data from BW/BI to R/3 Tables again.
    for Ex: I have loaded data to ZFC_C25 Cube from SAP R/3 System. But now I want to load the data from ZFC_C25 Cube to my selected R/3 Tables.
    Please give a clue if it is possible or not if YES How.
    Thanks & Regards,
    Sai.

    Hi
    Check this Retraction document
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806
    You can find more details regarding R/3 retractors :
    https://websmp101.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003587872003E
    regards
    Chandra SekharT

  • How to Pull data from sap r/3 tables to oracle tables

    how to fetch data from sap r/3 tables & data pulled to oracle table .
    GIVE THE APPROPRITE ANSWER FOR THIS.
    THANKS IN ADVANCE.
    If it is useful for me , i am giving point.
    regards ,
    Navita
    Edited by: NAVITA YADAV on Mar 7, 2008 2:07 PM
    Edited by: NAVITA YADAV on Mar 7, 2008 2:08 PM

    You need to perform some native SQL to fetch data. Before doing this connection must be exists b/w your R/3 and Oracle server.
    Basis team will help you to have connection.
    Check the connection name in the table DBCON.
    Check the below code to handle native SQL.
      SELECT SINGLE  DBMS
               FROM  DBCON
               INTO  DBTYPE
               WHERE CON_NAME = DBS.
      IF DBTYPE = 'ORA'.
        TRY.
          EXEC SQL.
            CONNECT TO :dbs
          ENDEXEC.
    ERROR Handling for Native SQL *************
          IF SY-SUBRC <> 0.
            MESSAGE `Docusphere connection failed.` TYPE 'I'.
            EXIT.
          ENDIF.
      EXEC SQL PERFORMING loop_output.
        OPEN C1 FOR
        SELECT  UK1, UK7, uk6, uk9, uk22, uk23, uk25    "field names of Oracle table
        FROM IIS_DOCS_AP10D
        WHERE ( UK2 = 'ZFIINVOICE' OR UK2 = 'ZFIPAYREQ' )    AND
        UK19 = 'E'                                           AND
        UK20 IS NULL
      ENDEXEC.
          DO.
            CLEAR W_OUTPUT.
            EXEC SQL.
              FETCH NEXT C1 into :wa1-arc_doc_id, :wa1-bukrs, :wa1-belnr, :wa1-gjahr, :wa1-wi_id, :wa1-ARCH_METHOD, :wa1-barcd.
            ENDEXEC.
    enddo.
    Reward points if helpful.................

  • Crystal reports over SAP r/3 tables

    I am trying to write a Crystal report over SAP r/3 tables (BSIK and LFA1) with no success.
    I have CRpts installed along with the "client side" SAP integration kit.  When i try to create a new connection to my development ERP system i am asked to select an available system, but the dialogue box is empty.   I can however connect to a SAP BW query successfully using the SAP toolbar that has been added when installing the integration kit.
    Is there anywhere a set if instructions to successfully install and configure CRpts to report over SAP r/3 tables ?
    Andrew Fox

    Make sure to define an environment variable called SAPLOGON_INI_FILE in the system your CR designer is installed on. The variable should contain the path to your SAPlogon.ini file including the file name. eg if saplogon.ini is found under c:\Windows then the variable shoud be set to c:\Windows\saplogon.ini . Restart the CR designer and try again.
    If the system list remains empty then locate to saplogon.ini file, open it using Notepad and choose the Save as option. All you have to do is to overwrite the existing file (ie. do not change the name) after changing the encoding to UTF-8 (drop-down list at the bottom of the Save as window)
    Regards,
    Stratos

  • Some SAP R/3 Tables are Missing

    Hi Friends,
    I made a connection between SAP R/3 and Crystal Reports.  When I am trying to see the tables of SAP R/3 I am not able to see all the tables only few tables are visible.  For example in Standard table I am able to see only LIKP table, but VBAK, VBAP etc ... tables are missing in the list.
    Can any one guide me to get the total list of SAP R/3 tables.
    Regards
    Sankar

    See this posting for how to: Crystal Reports 10
    You'll have to change the registry key to match your version but should work for you.
    Thank you
    Don

  • Acess the sap r/3 table

    hi everyone,
        can i access the sap r/3 tables directly without rfc .....
       any possibility is there means plz send me reply........
       present i am doing bapi via jco using RFMs.........
      with regards,'
      satish

    Hi,
    This question has already been asked (and answered) here - without FM can i acess sap table via jco? and here - bapi problem via jco and here - through jdbc driver connect to sap  Not sure if points are getting awarded or not...
    Anil, you are posting very confusing answers that don't help people who don't know about SAP and RFC technology.  A BAPI is a type of function module.  An RFC is a type of function module.  A function module is a function module.  To clarify, there is only one object called remotely, that is a function module.  For this to happen it HAS to be RFC enabled (Remote Function Call.)  A BAPI is a function module that completes a certain piece of business logic in entirety, such as creating a document or changing a document - typically methods of business objects as you suggest.  There should be no distinction between RFC and BAPI.  Typically, all BAPI function modules are RFC-enabled so they can be accessed from remote systems/applications.  Any function module that is RFC enabled can be accessed from a remote system.  To access SAP data from external systems/applications via JCo you need a function module that is RFC enabled.  There are a lot of RFC enabled function modules supplied by SAP - if you are developing custom logic or working with custom tables on the SAP system then you will need to develop a custom RFC enabled function module (call it a BAPI if you want!) that you can then call via JCo.
    I'd also say that connecting directly to a SAP database is very bad practice and shouldn't be suggested to resolve issues - data integrity can suffer and cause serious problems for the SAP system.  This method should be used with custom database instances (say created via the dictionary builder in NDS.)
    Gareth.

Maybe you are looking for

  • Problem with Wacom Tablet and Brush Tool

    When using the brush tool with an Intuos 5 tablet (mostly to edit layer masks), PS will become unresponsive to pen input - that is, I can't draw. The cursor moves, and I can switch tools with the keyboard, but pressing with the pen to tablet does not

  • SAXParseException from parser.parse()

    Hi, I am using xml on http sample code with xerces-123 and I get I get "SAXParseException: The root element is required in a well-formed document." on the parser.parse(...) line. Yes, the XML is well-formed. I also try to use a well-formated xml file

  • Is it possible to have a Mac bind to a second directory?

    My 10.6 server has just gone down and it is going to take a while to be replaced. It was acting as a PDC for a bunch of XP clients so I need it back. It was also providing DCHP, DNS, open directory AFP and a bunch of other services to a few iMacs. I

  • Can I link My contacts in 2 different Apple id's ?

    I Have my personal Apple id in my iphone 6 but now I have a working Apple id in my iPhone 4s and I want to have only one contacts list but keep my iMessage and everything apart

  • Emailing Purchase order

    Hi ! Experts, we are going to implement Emailing of purchase orders. The settings/ customizations in the sand box system is done and working fine. But, there is a problem. The standard print program SAPFM06P uses the Email field as maintained in the