BAPIs / Function Modules to access org. structure data?

Hi,
I want to integrate SAP org. structure with external BPM system.
anybody knows how to access org. structure data via RFC or web services?
Thanks in advance.

The purchasing org and purchasing grp can be found in T024E and T024 table.
Regards
Anurag

Similar Messages

  • Bapi/Function Module to update course/training data

    Hi,
    I need a bapi or function module to update the course/training session data in transaction LSO_PSV2, like the course name or course location.
    Any idea?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

    Hi,
    What do you mean by update routing?  Mass update of the routing master data? 
    If update of routing master data only is necessary, you can use LSMW to automate mass change, however, if you also need to update other affected areas such as Production Order, you can also apply LSMW to Read PP Master Data of the affected transactions. 
    Thanks,
    Kumar

  • BAPI/FUNCTION  module for the configure varient data(MRP3 -MM02)

    Hi all,
    I have  a requirenent to send the configure varient data(MRP3 -MM02) to another system.Please guide me how it can be created in receving system.ie please provide a function module or BAPI for the same.
    Thanks.
    Edited by: sanu debu on May 11, 2009 11:01 AM

    I am also looking for the same requirment . could you please let me know if you find any BAPI.

  • BAPI/Function module for production version tab data of  MRP4 view(MM01).

    Hi,
    I have to upload production version tab data of  MRP4 view(MM01).Please suggest a function  moduleor bapi  for the same.
    Thanks.
    Edited by: sanu debu on May 6, 2009 3:24 PM

    >
    sanu debu wrote:
    > Hi,
    > I have to upload production version tab data of  MRP4 view(MM01).Please suggest a function  moduleor bapi  for the same.
    >
    > Thanks.
    >
    > Edited by: sanu debu on May 6, 2009 3:24 PM
    BAPI_MATERIAL_SAVEDATA can be used, populate the respective fields in input parameter PLANTDATA

  • BAPI/Function module for BATCH SPLIT

    Hi,
    is there a BAPI/Function module to enter BATCH SPLIT data in an outbound delivery. I used tcode VL02N to create an Outbound delivery(FOR an STO). I can use 'BAPI_DELIVERYPROCESSING_EXEC' to creat an Outbound delivery, but need to know what to use to add BATCH SPLIT data.
    Thanks
    Raj

    Hi Raj,
    Check this thread..
    Re: Inserting Batch Split Items in Delivery
    Cheers
    VJ

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Function module for access OM Data from infotype 1001

    We had a function module for accessing OM data viz. Infotype 1001. Could you let me know.
    Advanced thanks,
    Dasaradh kosana

    Hi Dasaradh,
          Do you want the fm which fetches the data from HRP1001 , if this is the case you can use this FM RH_READ_INFTY_1001.
    Reward Points if it is helpful
    Regards,
    Kiran I

  • Modify table data and import to same bapi function module

    Hai friends,
    I have a requirement on bapi , such that after executing the bapi function module data comes on tables and again  i need enter  weight in weight column field in the same table data and pass the same table in the same bapi function module .
    plz sujjest.
    with reagards,
    prasad.

    Can  u explain in details,
    means which bapi r u using? where  u will enter weight? etc.

  • BAPI or Function Module to get MSEG table data based on PO Number (EBELN)

    Hi
    1. Is there any BAPI /  Function Module to get PO details based on Plant and PO date?
    2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
    Thanks
    Narendra

    Hi,
    check the Bapis Givem below
    BAPI_PO_GETITEMS
    http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
    you will get the detail.
    Regards

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Bapi function module to update PRPS table

    Hi ,
    Presently i have a requirement which needs to update some data from ZIOS table  into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks,
    Satish Raju
    Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AM

    These ZZ fields are specific to your application, use the EXTENSION parameters.
    Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.
    For the BAPIs used to create and change project definitions, WBS       
    elements, networks, activities, and activity elements, you can         
    automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU 
    that have been defined for customer enhancements in the standard system.
    For this purpose, help structures that contain the respective key      
    fields, as well as the CI include of the table are supplied. The BAPIs 
    contain the parameter ExtensionIN in which the enhancement fields can be
    entered and also provide BAdIs in which the entered values can be      
    checked and, if required, processed further.                           
    CI Include  Help Structure                      Key                  
    CI_PRPS     BAPI_TE_WBS_ELEMENT                 WBS_ELEMENT
    Procedure for Filling Standard Enhancements                                                                               
    Before you call the BAPI for each object that is to be created or     
    changed, for which you want to enter customer-specific table enhancemen
    fields, add a data record to the container ExtensionIn:                                                                               
    o   STRUCTURE:    Name of the corresponding help structure                                                                               
    +o   VALUEPART1:   Key of the object + start of the data part+                                                                               
    o   VALUEPART2-4: If required, the continuation of the data part                                                                               
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with 
    the keys that identify the table rows and then with the values of the 
    customer-specific fields. By structuring the container in this way, it
    is possible to transfer its content with one MOVE command to the      
    structure of the BAPI table extension.                                                                               
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields
    for which the respective update indicator is set are changed).        
    Therefore, even if you only want to change one field, all the fields  
    that you transfer in ExtensionIn must be filled.                      
    You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.
    Regards

  • BAPI Function Modules

    Hi Experts,
               Where can I find the Bapi Function Modules.
    Can u provide me the coding part of how to use BAPI in our program .
    Will be rewarded if helpful.
    Regards.

    Hi Raj,
    Foremost of all before you can search for a BAPI you should know the BAPI you are going to use depending on your need. Generally when you are in a project the Functional Consultant gives you the BAPI which you need to use unless you are developing your own BAPI.
    By going to the Transaction BAPI, you can search for the BAPI you need. This transaction takes you to the BAPI Explorer where all the BAPI’s are listed in two ways,
    •     Alphabetical Order
    •     Hierarchical Order
    When the BAPI you need is found you can get all the details regarding all the parameters that are used in the BAPI and also as to how they are declared. DOCUMENTATION is provided for all the BAPI parameters describing them. In the DOCUMENTATION for the BAPI you fill find how a particular BAPI can be used to perform different operations. For ex: the BAPI called BAPI_PROJECT_MAINTAIN can be used perform UPDATE or RELEASE operations.
    Some useful tips when using a Standard BAPI,
    •     Go through all the data declarations of the BAPI parameters and check if any Conversion Rules are used. This is helpful as you will need to declare variables for every parameter in BAPI that you would be used by you. And all these variables should be declared of the same data type as the BAPI parameters.
    •     Check to see if there any mandatory fields that need to be passed. Look for all the BAPI parameters that you would need and declare variables for them and map them correctly.
    •     Though RETURN (generally a table) is may not be mandatory it’s useful to use it as any messages regarding success or error while processing the BAPI are populated in it. In some cases the RETURN may be a structure and in such a case there would another table where messages are populated. These are useful to be used in the program.
    •     After processing BAPI, if successful then the Function Module BAPI_TRANSACTION_COMMIT is performed to save the changes. But if it’s not successful then the Function Module BAPI_TRANSACTION_ROLLBACK is performed to rollback any changes that would have occurred. 
    Sample Program,
    Note: 1. Here the BAPI called BAPI_PROJECT_MAINTAIN is used. This BAPI is used to
             “Edit project including networks”. It can be used perform operations like UPDATE
               or RELEASE and others. Here it’s used to perform UPDATE operation (Here
               ROFIT_CENTER is updated).
    2. Here a Function Module called “CONVERSION_EXIT_ALPHA_INPUT” is used
               to convert the profit center from the External Format(Format as in the program) to
               Internal Format (Format in the BAPI).
    (You can use this program to check out.)
    DATA: wk_i_project_definition TYPE bapi_project_definition,
          wa_i_method_project     TYPE bapi_method_project,
          wa_i_wbs_element_table  TYPE bapi_wbs_element,
          it_i_method_project     TYPE STANDARD TABLE OF bapi_method_project,
          it_i_wbs_element_table  TYPE STANDARD TABLE OF bapi_wbs_element.
    DATA: wk_i_project_definition_upd   TYPE bapi_project_definition_up,
          wk_return                     TYPE bapireturn1,
          wa_i_wbs_element_table_update TYPE bapi_wbs_element_update,
          wa_e_message_table            TYPE bapi_meth_message,
          it_i_wbs_element_table_update TYPE STANDARD TABLE OF bapi_wbs_element_update,
          it_e_message_table            TYPE STANDARD TABLE OF bapi_meth_message.
    CONSTANTS: _index(6)       TYPE c VALUE '000001',
               _wbselement(11) TYPE c VALUE 'WBS-ELEMENT',
               _update(6)      TYPE c VALUE 'UPDATE',
               _save(4)        TYPE c VALUE 'SAVE'.
    wk_i_project_definition-project_definition = 'M-1000000000'.
    wk_i_project_definition_upd-project_definition = 'X'.
    wa_i_method_project-refnumber  = _index.
    wa_i_method_project-objecttype = _wbselement.
    wa_i_method_project-method     = _update.
    wa_i_method_project-objectkey  = 'M-1000000000:00001-003'.
    APPEND wa_i_method_project TO it_i_method_project.
    CLEAR wa_i_method_project.
    wa_i_method_project-method = _save.
    APPEND wa_i_method_project TO it_i_method_project.
    wa_i_wbs_element_table-wbs_element = 'M-1000000000:00001-003'.
    wa_i_wbs_element_table-profit_ctr  = '65576'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = wa_i_wbs_element_table-profit_ctr
      IMPORTING
        output = wa_i_wbs_element_table-profit_ctr.
    APPEND wa_i_wbs_element_table TO it_i_wbs_element_table.
    wa_i_wbs_element_table_update-profit_ctr = 'X'.
    APPEND wa_i_wbs_element_table_update TO it_i_wbs_element_table_update.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      EXPORTING
        i_project_definition               = wk_i_project_definition
        i_project_definition_upd           = wk_i_project_definition_upd
      IMPORTING
        return                             = wk_return
      TABLES
        i_method_project                   = it_i_method_project
        i_wbs_element_table_update         = it_i_wbs_element_table_update
        i_wbs_element_table                = it_i_wbs_element_table
      I_WBS_MILESTONE_TABLE              =
      I_WBS_MILESTONE_TABLE_UPDATE       =
      I_WBS_HIERARCHIE_TABLE             =
      I_NETWORK                          =
      I_NETWORK_UPDATE                   =
      I_ACTIVITY                         =
      I_ACTIVITY_UPDATE                  =
      I_RELATION                         =
      I_RELATION_UPDATE                  =
        e_message_table                    = it_e_message_table
      I_ACTIVITY_ELEMENT                 =
      I_ACTIVITY_ELEMENT_UPDATE          =
      I_ACTIVITY_MILESTONE               =
      I_ACTIVITY_MILESTONE_UPDATE        =
    IF wk_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
              IMPORTING
                RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ENDIF.
    Regards,
    Raga Suman.

  • How to define null or empty value in BAPI function modules?

    Hi,
    I have problem with BAPI functions, where some parameters are mandatory.
    For example: when I try to use HR BAPI's(BAPI_PERSDATA_CHANGE, etc.) I have to insert parameters like SUBTYPE,OBJECTID,LOCKINDICATOR. The PA0002 table that is used from this BAPI doesn't have SUBTYPE, OBJECTID, LOCKINDICATOR, for any of the records that I would like to select.
    So what I tried, was to put a ' ', to indicate that is empty. It returned an error message saying "Make an entry in all required fields". Next tried to put in some values for these fields -- and it returned an error message saying "No data selected from 0002 for this period".
    I also tried to run BAPI_FAMILY_CHANGE that uses data from table PA0021. Here I found some records with  SUBTYPE, OBJECTID fields that were not empty, but LOCKINDICATOR was still missing. So I tried to put LOCINDICATOR value directly in to database (with MS SQL Enterprise Manager).  After that I was able to use BAPI_FAMILY_CHANGE.
    I think that manually inserting data in database is not normal procedure.
    Is there something that I have missed out?
    I mean -- how can I get this to work without inserting data directly in database?
    How can I define null or empty value in BAPI function modules?
    Thank you in advance.
    Best regards,
    Mihail

    Defining an empty value for a parm in a table is easy.
    First get the function's definition from the SAP system
    Second only populate the fields for which you have a value to set
    Third execute the function.
    The JCO takes care of the rest.
    Enjoy

  • HOw to find the BAPI function module

    Hi all,
    I have a field called IEVER in table EIKP.
    How to find the related BAPI function module and BAPI structure for this filed.
    Thanks in advance
    KP

    Hi KP,
       can you tell us the name of the transaction in which you saw this field?
    If it is in PO Creation or Change you can probably look at the bapis
    BAPI_PO_CREATE or BAPI_PO_CHANGE
    Regards,
    Ravi

  • Is there a BAPI function module which reverses the sign of an integer

    Hi Friends,
                     Could u plz tell me  a BAPI function module which can reverse the
    sign of an integer ?
    For example:       
    if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>. 
    i.e if i get the integer value in work area as    "248-" ("-" indicates minus sign) to " -248 ".
    i.e if i get the sign after the value , my requirement is to get the sign before the value.
    The actual ABAP query is:
    data: QTY_1 TYPE CHAR10,
            QTY_2  TYPE CHAR10,
            WA_DISTK_PORTLET-QUANTITY TYPE INT4.
    QTY_1 = WA_DISTK_PORTLET-QUANTITY.
                    SEARCH QTY_1 FOR '-'.
            IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
              SPLIT  QTY_1 AT '-' INTO  QTY_1 QTY_2.
              CONDENSE  QTY_1.
              CONCATENATE '-'  QTY_1  INTO QTY_1.
              CONDENSE  QTY_1.
            ELSE.
              CONDENSE  QTY_1.
            ENDIF.
            CLEAR: WA_DISTK_PORTLET-QUANTITY.
         MOVE : QTY_1 TO  WA_DISTK_PORTLET-QUANTITY.
    when i move this QTY_1 to work area  quantity field The sign is coming after the numeric value.
    Note: There is no possibility to change the datatype of quantity field.
    I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
    I will assign full points to the correct function module.

    Hi Ram,
    try this ang look into fields.
    data: fields type table of SVAL with header line.
    fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
    fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
    CALL FUNCTION 'POPUP_GET_VALUES'
      EXPORTING
        POPUP_TITLE           = 'Value Insert'
      TABLES
        FIELDS                = fields.
    Regards, Dieter

Maybe you are looking for