BPC Master Data Deletion through ABAP code

Hi All,
I have a requirement of deleting the orphan nodes for one of the dimension in BPC using ABAP code.
Please let me know any standard program or classes for deleting the master data from dimension.
Regards
Pratibha Biradar

Hi Pratibha,
Here is the code to add master data, you can change the flag to 'D' to delete, i have not checked it for delete, it is working for adding.
DATA: ls_message TYPE uj0_s_message,
lt_messages TYPE uj0_t_message,
l_success TYPE uj_flg,
l_appset_id TYPE uj_appset_id,
l_dimension_id TYPE uj_dim_name,
lo_member_mgr TYPE REF TO if_uja_member_manager,
lo_dimension TYPE REF TO if_uja_dimension_manager,
lo_master_data_store TYPE REF TO if_ujam_master_data_store,
lo_context TYPE REF TO if_uj_context,
ls_dimension TYPE uja_s_dimension,
lt_errors TYPE uja_t_members_error,
lr_members TYPE REF TO data,
lr_data TYPE REF TO data.
FIELD-SYMBOLS:
<lt_member_data> TYPE STANDARD TABLE,
<ls_member_data> TYPE any,
<lv_field> TYPE any.
TRY.
    lo_context = cl_uj_context=>get_cur_context( ).
    cl_uj_context=>set_cur_context(
    i_appset_id = l_appset_id
    i_module_name = lo_context->d_calling_module
    is_user = lo_context->ds_user
    lo_dimension = cl_uja_bpc_admin_factory=>get_dimension_manager(
    i_appset_id = l_appset_id
    i_dimension_id = l_dimension_id
    lo_dimension->get(
    EXPORTING
    if_with_hier_maxlevel = abap_false
    IMPORTING
    es_dimension = ls_dimension
    CREATE OBJECT lo_master_data_store TYPE cl_ujam_master_data_store.
* creating masterdata table
    lr_members = lo_master_data_store->get_table_buffer( ls_dimension ).
    ASSIGN lr_members->* TO <lt_member_data>.
* Add members to <LT_MEMBER_DATA>, these are the member that will be saved.
    CREATE DATA lr_data LIKE LINE OF <lt_member_data>.
    ASSIGN lr_data->* TO <ls_member_data>.
* Fill each field, such as ID, and EVDESCRIPTION, update other fields here as well as
* any properties that need to be updated.
    ASSIGN COMPONENT 'ID' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
      <lv_field> = 'ProductD'.
    ENDIF.
    ASSIGN COMPONENT 'MBR_NAME' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
      <lv_field> = 'ProductD'.
    ENDIF.
    ASSIGN COMPONENT 'EVDESCRIPTION' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
      <lv_field> = 'Product D Update'.
    ENDIF.
    ASSIGN COMPONENT 'PARENTH1' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
      <lv_field> = 'TotalProduct'.
    ENDIF.
    ASSIGN COMPONENT 'OBJVERS' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
      <lv_field> = 'A'. "Version flag, should be "A" for Active
    ENDIF.
    ASSIGN COMPONENT 'ROWFLAG' OF STRUCTURE <ls_member_data> TO <lv_field>.
    IF sy-subrc = 0.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""Here you can change it to 'D' for Deleting """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
      <lv_field> = 'I'. " This is an action flag, I=Insert, M=Modify """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    ENDIF.
    APPEND <ls_member_data> TO <lt_member_data>. " Add to the table.
* Create member manager
    lo_member_mgr = cl_uja_bpc_admin_factory=>get_member_manager(
    i_appset_id = l_appset_id
    i_dimension_id = l_dimension_id ).
* Save the members UNCOMMENT ONLY when you want to write the data!!!!!
* lo_member_mgr->save(
* EXPORTING
* ir_members = lr_members " List of members to save
* IMPORTING
* et_errors = lt_errors
* NOW PROCESS THE DIMENSION
    DATA: ls_dimensions TYPE uja_s_dim_name,
    lt_dimensions TYPE uja_t_dim_name.
    CLEAR ls_dimensions. REFRESH lt_dimensions.
    ls_dimensions-dimension = l_dimension_id. " Add dimensions to the list
    APPEND ls_dimensions TO lt_dimensions.
    lo_member_mgr->process(
    EXPORTING
    it_dim_list = lt_dimensions
    if_set_offline = abap_false
    if_validate = abap_true
    IMPORTING
    ef_success = l_success
    et_message_lines = lt_messages ).
  CATCH cx_uj_no_auth .
ENDTRY.
hope this will help,
thanks,
Rishi

Similar Messages

  • Master Data Deletion using ABAP

    Does anybody have an idea of which function is called when master data is deleted?
    I would like to automate master data deletion
    Any suggestion is welcome!
    Thanks
    Ioan

    Hi Ioan !
    Try to look at the FM 'RSDMD_DEL_MASTER_DATA'(in the pgm LRSDMDU12)...but pay attention to the other elements that the system certainly checks in order to complete this type of process !
    Bye,
    Roberto

  • IDOC - Master data changes( through MM41 & MM42) to XI

    Hi Experts,
    My requirement is:
    Any updates/ changes to the article master through SAP transaction MM42 or any article creation through SAP transaction MM41 will trigger an update for the interface which will be picked up during the nightly batch job. For all updates/changes made throughout the day only the latest change will be interfaced to other non-sap system during the nightly batch.
    An IDOC will be generated for the changes made throughout the day by picking the latest one. IDOC name is WBBDLD03.
    Actually i am working on IDOC first time. I think i need to track changes in master data table through ABAP statements only and then a internal table ( with required data) need to be sent through IDOC. Please suggest if my approach is correct?
    Also, tell me the method to be followed for sending IDOC?
    Some examples implementing the similar scenario would be highly appreciated.
    Hoping for a useful response:-)
    Regards
    Gaurav K

    Hi,
    This is a change pointer scenario.
    IDOC:WBBDLD03
    Messge type:WBBDLD
    You need to write any code. You have to just make some ALE settings, this itself will meet ur requirement.
    First activate change pointer through BD61.
    Also activate change pointers for ur message type using txn BD50.
    Create LS for both sender and receiver (Use txn SALE)
    Assign the LS created to the respective clients .
    Create a rfc dest for ur receiving system using SM59.
    Later create a distribution model using txn BD64 (Here u mention ur receiver sender and message type )
    Create partner profile for ur logical system with this message type using txn WE20.
    Now you can trigger sending of the idocs through job schedule prg.
    But i dont know what is the prg name for ur scenario.
    I hope it helps you.
    Reward points.
    Thanks,
    Prasanna

  • Help regarding calling BRFPLUS function through ABAP code

    Hi,
          I have  a situation where I have to input  data into a BRFPLUS function  as a table (i.e the data is input as select options where list or range of data can be provided).The corresponding output is also in the form a table .I've created this function in BRFPLUS and is working fine .Now I have to call it through ABAP code.Can someone kindly  provide me with the probable code for this scenario.
    E.g:
            ZT_MATNR  is the table in brfplus representing the list of MATNR values input along with other such inputs to function module Z_FM
            ZT_ATM   is the  resultant output table  of the function  which contains several fields.
    Now I have to call this BRFPLUS function with help of ABAP code.Could someone kindly help.

    Hello ,
    There should be a number of BRF+ tutorials available in SCN which discuss the FDT APIs. You can have a look at them to get an idea of the various APIs available and their uses.
    For your usecase, you should do the following.
            lo_fdt_function         TYPE REF TO if_fdt_function,
            lo_fdt_result           TYPE REF TO if_fdt_result,
    * Get function handle
          CALL METHOD lo_fdt_factory->get_function
            EXPORTING
              iv_id       = lv_function_id
            RECEIVING
              ro_function = lo_fdt_function.
    where lv_function_id is the GUID of the BRF+ function . You can either make it a constant , or you can use a FDT API to get the function GUID from the BRF+ application name and function name.
    *   Set function context
        TRY.
            CALL METHOD lo_fdt_context->set_value
              EXPORTING
                iv_id    =
                ia_value =
    This is one way to set the input context ( pass the input to the BRF+ function to process ). There are other ways to do this as well. Which one you use would depend on the kind of input you want to pass.
    * Execute BRFPLUS function
      TRY.
          CALL METHOD lo_fdt_function->process
            EXPORTING
              io_context = lo_fdt_context
            IMPORTING
              eo_result  = lo_fdt_result.
    * Get result output
      TRY.
          CALL METHOD lo_fdt_result->get_value
            IMPORTING
              ea_value =
    Another direct way of doing it would be to use the method PROCESS of the class CL_FDT_FUNCTION_PROCESS.
    I have not gone into much explaination here , but it should provide you an idea of how you can go about it.Read the SCN docs on the APIs to get a better idea , or better still if you can get hold of a copy of the BRF+ book by Carsten Ziegler , you will get an end to end explaination of all BRF+ APIs in it.
    Regards,
    Indranil.

  • Issue with master data deletion

    Hi,
    In one of our report, there is a filter option on country.The help values on this filters shows some country codes along with country Text values.These codes were once used before the codes with text were maintained.We dont want these codes to appear in the selection options.
    Filter looks like this :
    AE
    AZ
    Austria
    Australia
    B
    Belgium
    Now, once the texts were maintained, we deleted the data from cube and reloaded it however, the filter option still shows those codes.
    I checked in the cube entries and these codes are no where used.
    These codes are however, still lying in the dimension table.
    how can we get rid of these country codes in the selection option.
    Query already have option of having only posted values in Infoprovider as selection input.
    I hav tried RSRV elementary test "Entries not used in dimension table" n this didnt work.
    Any clue ?
    Regards,
    Tapish

    Dbl click 0COUNTRY infoobject, under 'Business Explorer' tab, select Only Values in InfoProvider' for 'Query Def Filter Value selection' & 'Query Execution Filter Value selection'. See whether this works.
    ELSE
    Delecion of the master data
    Deleting Master data

  • How to Maintain the MM Master Data from one company code to other co code

    Hi Experts,
    Can any one pls tell me how to Maintain the MM Master Data from one company code to other co code.
    Presently we created New plants,New Purchase Orgs under different company code.
    1) Material Master data
    2) Vendor MAster data
    3) PIR
    4) Source List
    Is there any standard Transactions...??
    Please reply.
    Brgds,
    KK

    Hi
    Check out the link -
    http://wiki.sdn.sap.com/wiki/display/ABAP/StepstocreateasimpleLSMWusingbatchinput+recording
    lsmw for data migration for  xk01 transaction
    http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm
    Regards
    Anand

  • "master data deletion for requisition" before master data loading

    Hello Gurus,
             in our bw syetem , for   process chains for loading  master infoobjects, all include "u201C master data deletion for requisition" ABAP
    process  except for one process chain. my question is:
           why that process chain for master data loading is different from others as for lacking "master data deletion for requisition" in it?
    so it does not matter if you include " master data deletion for requisition" ABAP  process in process chain for master data loading ?
    Many thank.

    Hi,
    ABAP Process means some ABAP program is being executed in this particular step.
    It's possible that for all of your process chains except for that one requirement was to do some ABAP program processing.
    You can check which program is executed by following below process:
    Open your process chain in planning view -> Double click on that particular ABAP process -> Here you can see program name as well as program variant.
    Hope this helps!
    Regards,
    Nilima

  • Uncaught Exception occured while sending mail through abap code.

    Hi,
    Uncaught Exception occured while sending mail through abap code.Run time Errors "UNCAUGHT_EXCEPTION" occured after excuting the call method  CALL METHOD SEND_REQUEST->SEND( ).kindly help in resolving the issue.

    HI,
    Runtime Error:  UNCAUGHT_EXCEPTION details.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_ADDRESS_BCS
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_ADDRESS_BCS' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program 'SAPLZSEND_MAIL' has to be
         terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ADDRESS_BCS', was not caught in
        procedure "SEND_MAIL" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An exception occurred
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_ADDRESS_BCS"
        "SAPLZSEND_MAIL" or "LZSEND_MAILU01"
        "ZSEND_EMAIL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SEND_MAIL" "(FORM)", or its possible occurrence must be declared in the
    RAISING clause of the procedure.
    Please help me to resolve this issue.

  • Changing Field Label length for Data Element using ABAP code.

    Hi Experts,
    We have a scenario where we have to update the maximum length of the various Field Labels (Short, Medium, Long..) for a Data Element using ABAP code.
    Does anyone know how to do this ? Is there a Function Module available for this purpose ?
    Appreciate your valuable inputs.

    Hi ,
    Use the view
    DD03M
    Give
    TABNAME as table name,
    DDLANGUAGE = EN / sy-langu
    and order by position. (for correct sequencing)
    You will get description of the fields (short,medium, long etc). You will also get the length and other details.

  • Master Data Deletion

    Hello Experts,
    I know this is not a new topic to be posted in forum as we can find lots of threads on the same. But i tried different ways and could not succeed and so there is no other way except to post what i did and get suggestions from you all. Any help will be greatly appreciated and rewarded.
    Now coming to the scenario where i am in: There are two invalid master data values in SID table (no attributes for this, => SID and value). I tried deleting the two values
    1. using functional module RSDDCVER_USAGE_MDATA_BY_SID. But this resulted in short dumps with messsage INVALID TAB NAME
    2. using program RSDMD_DEL_MASTER_DATA: Though i could delete values in development in few seconds, this program took more than 3hrs and did not complete. When i checked the process in SM66, it was deleting unused dimension Ids in other dimension of infocube in which this object is being used.
    3. i could not try "maintain master data" of infoobject from RSA1 since i dont have authorization to do it.
    i think the only way is to delete using a custom program. Any thoughts, any experiences please share and do let me know in case of any details.
    thanks,
    Madhav

    Hi Madhav,
    I don't have a specific answer for you, but I had a similar problem with master data deletion.  It was with 0Vendor and I just wanted to delete all the unused entries, but running the RSDMD_DEL_MASTER_DATA program would always give a short dump.  Same think if I tried to delete using the Delete Master Data button on InfoObject.
    Applying the latest SPs worked for me.  We are on BW 3.5 (NW2004), SP 18.
    Good Luck.
    Dave

  • MATERIAL MASTER DATA UPLOADING THROUGH  LSMW

    Hi.
    I am new to lsmw.
    we have a requirement to upload the material master data through LSMW,.
    the data is on Excel sheet on the Desktop of the system.
    Can any body help me to upload the Material Master data, procedure in step wise.
    Thanks in advance,
    regards,
    Eswar.M

    Hi Venkat,
    Go through the following Steps
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr  char(18)
    2) mara-mbrsh  char(1)
    3) mara-mtart  char(4)
    4) makt-maktx  char(40)
    5) mara-meins  char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
         Subproject Name
         object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
       Maintain Object Attributes
    select Standard Batch/Direct Input
       give Object -- 0020
           Method -- 0000
       save & Come Back
    2) select radio-Button 2 and execute
       Maintain Source Structures
       select the source structure and got to click on create button
       give source structure name & Description
       save & Come Back
    3) select radio-Button 3 and execute
       Maintain Source Fields
       select the source structure and click on create button
       give
       first field
            field name    matnr
            Field Label   material Number
            Field Length  18
            Field Type    C
       Second field
            field name    mbrsh
            Field Label   Industrial Sector
            Field Length  1
            Field Type    C
       Third field
            field name    mtart
            Field Label   material type
            Field Length  4
            Field Type    C
       fourth field
            field name    maktx
            Field Label   material description
            Field Length  40
            Field Type    C
       fifth field
            field name    meins
            Field Label   base unit of measurement
            Field Length  3
            Field Type    C
      save & come back
    4) select radio-Button 4 and execute
       Maintain Structure Relations
       go to blue lines 
          select first blue line and click on create relationship button
          select Second blue line and click on create relationship button
          select Third blue line and click on create relationship button
      save & come back
    5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you will select constant
       and press continue button
       give Transaction Code : MM01 and press Enter
       after that
       1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
       2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
       3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
       4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
       5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
      finally     
      save & come back
    6) select radio-Button 6 and execute
       Maintain Fixed Values, Translations, User-Defined Routines
       Create FIXED VALUE Name & Description as MM01
       Create Translations Name & Description as MM01
       Create User-Defined Routines Name & Description as MM01
       after that delete  all the above three just created in the 6th step
       FIXED VALUE --MM01
       Translations --MM01
       User-Defined Routines --MM01
       come back
    7) select radio-Button 7 and execute
       Specify Files
       select On the PC (Frontend) -- and click on Create button(f5)
                                      give the path of the file like "c:\material_data.xls"
                                      description : -
                                      separators as select tab radiao- button
       and press enter   save & come back
    8) select radio-Button 8 and execute
       Assign Files
       Save & come back
    9) select radio-Button 9 and execute
       Read Files
       Execute
       come back
       come back
    10) select radio-Button 10 and execute
        Display Imported Data
        Execute and press enter
        come back
        Come back
    11) select radio-Button 11 and execute
        Convert Data
        Execute
        come back
        Come back
    12) select radio-Button 12 and execute
        Display Converted Data
        Execute & come back
    13) select radio-Button 13 and execute
        Start Direct Input Program
       select the Program
       select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    Regards
    Sreeni

  • Delta enabled master data - Deletion of data sets

    Hello,
    is it possible to automatically delete a certain data set of a master data bearing InfoObject which is delta enabled ? Does a delta load for master data InfoObjects  allow to fully delete a certain data set?
    Example:
    Delta Master InfoObject: Z_Test
    Attributes: Z_Name, Z_Region, ....
    Data sets:
    (1) 12345, Name1, Region1, ....
    (2) 23456, Name2, Region2, ....   (this data set should be completely deleted)
    (3) 34567, Name3, Region3, ...
    Expected result:
    (1) 12345
    (2) 34567
    I just want to know whether the deletion can be performed through a delta data load or not?
    Thanks in Advance.
    Marco

    Hi Marco,
    Welcome to SDN!!
    You can goto RSA1 -> Info-object -> maintain master data and delete the unwanted records and loads the ones you need. If the no. of records are more then you may need to write an ABAP program. But before all this deletion make sure the master data is not used in any other Data target.
    Bye
    Dinesh

  • Master Data Deletion / Function Module RSDMD_DEL_MASTER_DATA

    I need to develop an automated way of deleting some data from 0employee master data InfoObject. The data we need to delete from the InfoObject is held in a separate ODS.
    I believe the only automated way is to create an ABAP program which uses the function module RSDMD_DEL_MASTER_DATA.
    Can anyone please advise what FM RSDMD_DEL_MASTER_DATA is designed to do.
    I'm also not an ABAP'er so I'm unsure how to code what I need. Can anyone help me with this?
    Many thanks,
    Mark.

    Hi,
    if you need to delete master data selectively, then use the mentionned function module: RSDMD_DEL_MASTER_DATA
    check this thread:
    Re: delete master data
    from which you'll get the code:
    TYPES: ly_CHAVL         type RSCHAVL.
    DATA:  gt_CHAVL_DEL    type table of ly_CHAVL.
    DATA: lv_chavl LIKE RSGENERAL-CHAVL.
    SELECT DISTINCT <IOBJ_ID>
    INTO TABLE gt_chavl_del
    FROM /BIC/Z<ODSNAME>
    WHERE .....
    "the above will fill your inttable.
        CALL FUNCTION 'RSDMD_DEL_MASTER_DATA'
          EXPORTING
            I_IOBJNM                    = 'IOBJ'
    *       I_FLG_DELETE_ALL            = ' '
            I_FLG_DELETE_SIDS           = 'X'
    *       I_FLG_DELETE_SIDS_ASK       = ' '
            I_FLG_DELETE_TEXTS          = 'X'
            I_T_CHAVL                   = gt_CHAVL_DEL
            I_FLG_DIALOG                = ' '.
    *       I_FLG_FORCE_DELETE          = ' '
    *       I_FLG_SIMULATION            = ' '
    *       I_WITHOUT_PROTOCOL          = ' '
    *     IMPORTING
    *       E_RESULT                    =
    *       E_T_SIDVAL_USED             =
    *       E_T_PROTOCOL                =
    *       E_T_ULIST_DIM               =
    *       E_T_ULIST_ATR_NAV           =
    *       E_T_ULIST_HIE               =
    *       E_T_ULIST_HIE_NODE          =
    *       E_T_ULIST_QUERY             =
    *       E_PROT_OBJECT               =
    *       E_PROT_SUBOBJECT            =
    *       E_PROT_EXTNUM               =
    *     EXCEPTIONS
    *       ILLEGAL_INPUT               = 1
    *       IOBJ_ERROR                  = 2
    *       SID_ERROR                   = 3
    *       PROGRAM_ERROR               = 4
    *       ENQUEUED                    = 5
    *       QUEUE_ERROR                 = 6
    *       NO_CHKTAB                   = 7
    *       CHKTAB_NOT_GENERATED        = 8
    *       NO_AUTHORITY                = 9
    *       RSDPW_ERROR                 = 10
    *       OTHERS                      = 11
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    let me know should you need further assistance...
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Triggering Process chains through abap code

    Hi Experts,
    Can you please let me know if it is possible to trigger a BW Process chain using an abap code.
    If yes , kindly let me know the sample code.
    Help done would be appreciated.
    Regards,
    Uday

    Hi Thanks for your reply.
    When I am trying to execute process chain with variant as a APD ( In this APD data is getting loaded form one Query to Transactional ODS.) This process chain being executing through one ABAP program using the following code
    CALL FUNCTION 'RSPC_API_CHAIN_SCHEDULE'
    EXPORTING
    I_CHAIN = 'XYZ'. ( Dummy Process chain name)
    While executing this program I am getting following message :
    You can specify the name of the application server here
    on which all jobs in the chain are scheduled
    If you do not specify a name, the jobs from batch
    management are divided between the available servers
    How to avoid this message.
    Can we write any code in the above program to assign any fixed server name so that it will not ask for any server name.
    Your help is much appreciated.

  • Updating HRP table through abap codes - is it correct

    Hi all,
    In my hrp1001 table,I want that All Qualifications (Q) and Tasks (T) assigned to all the functional roles (ZF) existing in the system should be transferred to the positions(S) tagged to those respective functional roles.
    For that I am supposed to write a code which copies the entries from Qualifications (Q) and Tasks (T) and tag the same to the positions (S).
    Below is the sample code which is adding just one record to HRP1001 through abap statment. What I am curious to know is wheather it is logically correct to update HRP  table through abap statments or no. If not, Please let me know what should we do as a solution - should we update all records through LSMW of PP01 or any thing else we can do???
    REPORT  ZHRPAR0005 .
    TABLES: HRP1000, HRP1001.
    DATA IT_1001 LIKE HRP1001 OCCURS 5 WITH HEADER LINE..
    SELECT SINGLE * FROM HRP1001 INTO IT_1001 WHERE OTYPE = 'CP' AND PLVAR = '01' AND SCLAS NE 'S'.
    IT_1001-OTYPE = 'S'.
    APPEND IT_1001.
    INSERT INTO HRP1001 VALUES IT_1001.
    Thanks
    Ribhu

    Hi Ribhu..
    there are various FMs available for this purpose..
    use those... becasue if u directly insert, update or modify record in HRP1000 or HRP1001...
    then some related table might not be updated..
    So use FMs..
    RH_COPY_INFTY
    RH_CUT_INFTY
    RH_DELETE_INFTY
    RH_INSERT_INFTY
    RH_INVERT_RELA_INFTY
    RH_UPDATE_INFTY
    <b>For IT 1001 </b>
    RH_CUT_INFTY_1001_EXT
    RH_CUT_INFTY_1001_EXT_GENERIC
    RH_DELETE_INFTY_1001_EXT
    RH_DEL_INFTY_1001_EXT_GENERIC
    RH_INSERT_INFTY_1001_EXT
    RH_UPDATE_INFTY_1001_EXT
    RH_BASE_READ_INFTY_1001
    RH_READ_INFTY_1001
    RH_READ_INFTY_1001_EXT
    RH_READ_INFTY_1001_EXT_ONLY
    Reward if useful
    Regards
    Prax

Maybe you are looking for

  • How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g

    Hi Every One, Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ? Thanks

  • Database tables for Special GL - down payment

    As per my knowledge      All vendor open items or with BSAK database table      All vendor cleared items or with BSIK database table      All customer open items or with BSAD database table      All customer cleared items or with BSID database table

  • MX Record Lookup Function in Powershell

    Hey Guys, I am looking to get a script running on a weekly basis that takes the information provided by the get-accepteddomain cmdlet and performs an MX lookup for each DomainName.  After the Script has performed the lookups I would like to have it e

  • A DLL error message

    I'm rying to update itunes. After downloading I get an error message that says "There is a problem with the windows installer package. A DLL req'd for this install to complete could not be run. Contact your support personnel or package vendor." Any i

  • Setting for 'status of AuC' in the definition of the asset class

    where should i check the setting for 'status of AuC' in the definition of the asset class