Master data dealetion program

hello friends,
I have to create one program,in which whatever data range will enter by user in selection screen those master data will be delete from the master table.
Can you please tell me the logic behind that....
Thanks in advance

Hello Amar,
You can delete the data from master data.
Before deleting, you need to lock the table and after deleting you need to unlock the table.
Here is one sample code which ii used for deletion of material numbers from master data MARA..
REPORT y16v_update_zvleknvv1.
TABLES: mara.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
START-OF-SELECTION.
Lock the table*
  PERFORM lock.
Deleting the records from the Table*
  DELETE FROM mara WHERE matnr IN s_matnr.
  IF sy-subrc EQ 0.
    WRITE 'Deleted'.
  ENDIF.
Unlock the table*
  PERFORM unlock.
*&      Form  LOCK
      Lock the Database Table*
FORM lock.
  CALL FUNCTION 'ENQUEUE_E_TABLEE'
       EXPORTING
            mode_rstable   = 'E'
            tabname        = 'MARA'
       EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " LOCK
*&      Form  UNLOCK
      Unlock the Database Table*
FORM unlock.
  CALL FUNCTION 'DEQUEUE_E_TABLEE'
       EXPORTING
            mode_rstable = 'E'
            tabname      = 'MARA'.
ENDFORM.                    " UNLOCK
Its working.
Reward If Helpful.
Regards
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Jan 24, 2008 3:33 PM

Similar Messages

  • Master data Synchronizing program in BCS

    Hi,
    When i executing Master data Synchronizing program:UGMD_BATCH_SYNC .Where i got the selections
    and i have given below selection conditions to run the program.
    application = 10
    application area = FL
    Field Name = /1FB/COMPANY
    Synchronization Mode:You can use either  supplementary synchronizing or Full synchronizing.
    Which synchronizing mod need to use to synchronize the masterdata.
    Is it fine if select Field Name = /1FB/COMPANY ? in the selections.
    I have added new cost centers in cost center hierarchy i am executing the program to synchronize the mastered between BW and BCS.
    Please some one advise me in this scenario

    Dan,
    Replicate in BW  where all the fields are not replicate mode except item.
    When i was try to load the data where i am not able to load data for new company 100 and warning is saying these records are ignored.
    The error message
    5 of 5 data rows were ignored
    Message no. UCF7017
    Diagnosis
    A total of 5 data records were read from file C:\Documents and Settings\Laxmikant.dube\My Docume. Of those, 5 records contain parameter settings that exceed the user limitations for executing the data collection task.
    System response
    The ignored records were not checked any further and will not be written.
    Procedure
    Make sure that the ignored records are irrelevant for the current task. If some of the ignored records were supposed to be written, then the file probably contains an error.
    In this case, closely examine the settings for the fields Version, Fiscal Year, Period, Group Currency, and Consolidation Units in the file.
    If you have more than one characteristic with the role consolidation unit (a socalled "matrix organization"), also check whether the settings in the ignored records refer to valid combinations of consolidation units.
    What would be the issue?
    Edited by: Prasad B on Oct 7, 2008 7:16 PM

  • Creation of Location Master Data

    What's the transaction code for creating Location master data or program SAPL0A02? Has anyone tried to do LSMW or SCAT for uploading hundreds of items?

    Hi,
    If I am correct we can create locations through SPRO transcation.
    Enterprise Structure>Definition->Logistics General--> Define location.
    Here we can create number of locations on plant wise.
    The key in this field indicates a location within a plant.
    You can use the location to set up a plant according to space and local area. You can assign an address to a location.
    The following master data objects can be referenced to a location:
    Asset master records of asset management
    Equipment
    Functional location
    Work center
    Production resource/tool
    Regards
    Srinivas

  • HR Master Data Export error

    Hi all,
    I'm working at a client where we upgraded from 4.6 to 6.0. This client has never used the master data export program.
    I'm trying to configure the master data IDOCs, but I'm having an error when running the program RPCEMDU0_CALL. It refers  to an OSS note back in 2001, so that really does not apply to this installation. The problem seems to be with function module HR_PU12_UPDATE_T532K_T532L on IT0106. Some sort of data dictionary discrepancies. I haven't been successful in finding any newer notes related to this.
    Has anyone experienced this problem before?
    Thanks in advance for your response.
    Cesar

    Hi Bernd,
    Thanks for your response. I looked at that OSS note but it doesn't seem to be realted to the problem I'm having.
    The error reads:
    "Export program terminated   A009
    Export program obsolete, regeneration required
    Do not regenerate immediately: First make a  $STRUC_P0106 back up of the include
    PERNR N 000008 000000
    (See note 375108) This include is very important if old cluster IF records"
    I've re-activated the program and interface formats, but still getting the same error.
    Thanks again,
    Cesar

  • Master Data Export - PC00_M10_OTEM - Information

    Does anyone know where or if there is any detailed documentation on using the standard delivered Master Data Export program?  We are currently using it in production but have questions as to what/when/why certain information is picked up passed to ADP.

    Thanks for the information!  But I'm looking for more details such as:
    What triggers an IDoc to be created for an individual?
    How does the program pick which items get included in the IDoc?
    How do I trouble shoot why information came over, why some information keeps coming over or why some information isn't coming over?
    We keep seeing unexpected things coming over in our IDocs even though nothing was changed.

  • Loading Master Data - Help

    Hello Friends,
    I have a current program loading Master Data through program.... basically it loads data reading from multiple ODSs and master data tables into another ODS through ABAP program ... during this process it also loads the Masterdata (i have the sample Master data load part below...).
    Now my question is, instead of loading like this, can i just bring the BC object 0MATERIAL and assign the other related objects (please check the sample code below..) as the attributes and load data to this 0MATERIAL...
    Can i do this ?
    also which one is better on performance aspect ?
    All useful answers would be awarded points ...
    *Material Related Information (ITAB6).
    SORT ITAB BY MATERIAL.
    SORT ITAB6 BY MATERIAL.
      LOOP at ITAB.
        Read Table ITAB6 with Key MATERIAL = ITAB-MATERIAL Binary Search.
            IF ITAB-MATERIAL IS INITIAL.
                ITAB-/BIC/GPRODCTGY = ''.
                ITAB-/BIC/GPRODCD = ''.
                ITAB-/BIC/GPRODFAM = ''.
                ITAB-/BIC/GPRODGRP = ''.
                ITAB-/BIC/GPRODPLFM = ''.
            ELSE.
                ITAB-/BIC/GPRODCTGY     =     ITAB6-GPRODCTGY.
                ITAB-/BIC/GPRODCD     =     ITAB6-GPRODCD.
                ITAB-/BIC/GPRODFAM     =     ITAB6-GPRODFAM.
                ITAB-/BIC/GPRODGRP     =     ITAB6-GPRODGRP.
                ITAB-/BIC/GPRODPLFM     =     ITAB6-GPRODPLFM.
            ENDIF.
         COLLECT ITAB.
          MODIFY ITAB TRANSPORTING  /BIC/GPRODCTGY
                                    /BIC/GPRODCD
                                    /BIC/GPRODFAM
                                    /BIC/GPRODGRP
                                    /BIC/GPRODPLFM.
          CLEAR: ITAB, ITAB6.
       ENDLOOP.
    Cheers,
    Happy One ..
    Message was edited by: HAPPY ONE

    Thank you Mate ...
    Will do that and will come back if i have more trouble
    Thanks for your assertion.
    Cheers,
    Happy One.

  • Activating Master data time out problem

    Dear all,
    when i try to activate master data, it gives error message "time out" . in which tcode i can increase tha time out duration?
    Thanks

    Hi John,
    Please check the thread below:
    Activate time-dep. master data (0EMPLOYEE)
    This also  suggests to run the master data activation program in background, This will solve your issue,
    -Vikram

  • Automatic Payment Program Master Data Validations

    Hi,
    We´re configuring a new payment method for our company code (payment method T - bank transfer). We are using program RFFOM100 to generate the file that has to be sent to the bank. We had to enhance this program because the format of the file that our bank uses differs from MT100.
    Now, the automatic payment program validates certain data before it allows an automatic payment to be posted, in particular it checks vendor master records to see if it has the necessary information to fill the MT100 format. Our bank's format doesn't require the same information that the MT100 format requires.
    ¿How can I stop the automatic payment program from checking for certain information in the vendor master data?
    Hope you can help
    - Julio

    Hi Rudra,
    your Question:-
    in Vendor Master we have bank details section.for the vendor to be picked in APP, There the bank should be maintained, which is maintained in FBZP. Please correct me if I am wrong.
    In FBZP, we maintain the Bank Accounts which we own and in vendor master we enter the Bank Account No.'s held by the vendors with their banks and this has got nothing to do with House banks that we maintain in FBZP. In some of the cases, the bank key may play a common role.. but this also depends upon bank key, its usage, design etc..
    Does the Payment Method have any role to play here?I mean if the payment method is Q(cheques) , is it not needed to maintain the bank details in Vendor Master?
    In FBZP, go to Pmt methods in a country.. There you will find a section which says, "Required Master Record Specifications". In configuration, you define for a Payment method, what the system should check, so if you have specified against a Pmt Method, that Bank Details>Account Number Required is a mandatory field, then system will check otherwise not. Usually, in case of Checks, we do not tick this as Vendor Bank Account No. has no relevance in case of check payment.
    Regards,
    SAPFICO

  • Updating Q and P table of master data using ABAP program

    Hi All
    I have a requirement to update Q and P table(non key and non date fields) of master data using an ABAP program.
    Is this something recommended?
    Will there be any issues if I do that?
    Thanks
    Deepak

    Thanks Vikram. Ok. My look up is on some other master data Q table and that is the reason why I asked about ABAP custom program.
    Look like I will have to do the following approach.
    Load the required supporting master data to BW.
    Execute Attribute change run process for those master data objects.
    Load the actual master data and look up on supporting master data.
    Execute attribute change run process.
    This process takes me long time and I am trying to reduce the overall execution time. let me know if you have some good suggestions.
    Thanks
    Deepak

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Why we will prefer our own programs to load master data .

    Hi gurus ,
    What are the techniques involved in using SAP supplied programs
    why we will  prefer to write our own programs to load master data.
    Thanks and Regards :
    B.Madhu sudhan reddy
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Dec 2, 2009 9:20 AM

    Hi Madhu,
        Sap has already have their own predefined upload programs in LSMW for Master Data .
    Techniques To Load Master Data in SAP :
    1) BAPI
    2) LSMW
    3) BDC (Call Transaction & Session Method)
    Regards,
    Sudhakar Reddy.A

  • Upload HR master data Parmanent Address & home address  by a BDC Program.

    Hi exparts,
    I writte a BDC program to upload HR master data for tcode PA30.
    But I can upload parmanet address with this program.
    I want to upload parmanent address then home address .
    Can anybody help , how can I upload  Parmanent Address & home address   by a single BDC program.
    Thanks
    Edited by: Abu Rayhan on Jun 2, 2011 1:01 PM

    report ZHR_SMP
           no standard page heading line-size 255.
    Internal Table TYPE Declaration for keeping Legacy Data
    TYPES: BEGIN OF TW_MAIN,
            PERNR LIKE RP50G-PERNR,
            BEGDA LIKE P0006-BEGDA,
            ANSSA LIKE P0006-ANSSA,
            STRAS LIKE P0006-STRAS,
            ORT01 LIKE P0006-ORT01,
            STATE LIKE P0006-STATE,
            PSTLZ LIKE P0006-PSTLZ,
            LAND1 LIKE P0006-LAND1,
            END OF TW_MAIN,
           TT_MAIN TYPE STANDARD TABLE OF TW_MAIN.
    DATA : WA_MAIN TYPE TW_MAIN,
           IT_MAIN TYPE TT_MAIN,
           WA_ITEM TYPE TW_MAIN,
           IT_ITEM TYPE TT_MAIN,
           WA_BDCDATA TYPE BDCDATA,
           IT_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
           WA_BDCMSGCOLL TYPE BDCMSGCOLL,
           IT_BDCMSGCOLL TYPE STANDARD TABLE OF BDCMSGCOLL.
    Internal table for enable Required options using Call transaction & Session Method.
    DATA: it_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA ls_ctu_params TYPE ctu_params.
    DATA : U_MODE(1),
           U_UPDT(1),
           FNAM(30),
           STR TYPE STRING.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    PARAMETERS p_fname TYPE localfile OBLIGATORY.
    PARAMETERS: p_begcol TYPE i DEFAULT 1,
                p_begrow TYPE i DEFAULT 2,
                p_endcol TYPE i DEFAULT 20,
                p_endrow TYPE i DEFAULT 1600.
    SELECTION-SCREEN END OF BLOCK bk1.
    SELECTION-SCREEN : BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : P_FIRST RADIOBUTTON GROUP RB  DEFAULT 'X',
                 P_SECOND RADIOBUTTON GROUP RB,
                 P_THIRD RADIOBUTTON GROUP RB.
    SELECTION-SCREEN : END OF BLOCK B2.
    SELECTION-SCREEN : BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-003.
    PARAMETERS : P_SYN RADIOBUTTON GROUP RB1,
                 P_ASYN RADIOBUTTON GROUP RB1   DEFAULT 'X'.
    SELECTION-SCREEN : END OF BLOCK B3.
    SELECTION-SCREEN : END OF BLOCK B4.
    Initialize the work are and internal table body
    INITIALIZATION.
      PERFORM INTIALIZE_ITAB.
    *Get F4 help based on which file need to selected
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      PERFORM GETFILENAME.
    START-OF-SELECTION.
    Upload the file from Excel to Internal Table
      PERFORM FILE_UPLOAD.
    Selection Method for Foreground or background or call transactio or session method.
      PERFORM SCREEN_FLAG.
    Uploading the data from Legacy Sytem to SAP.
      PERFORM BDC_TRANSACTION.
    END-OF-SELECTION.
    *&      Form  BDC_TRANSACTION
          text
    -->  p1        text
    <--  p2        text
    FORM BDC_TRANSACTION.
      IT_ITEM = IT_MAIN.
      PERFORM CALL_TRANSACTION.
    ENDFORM.                    " BDC_TRANSACTION
    *&      Form  CALL_TRANSACTION
          text
    -->  p1        text
    <--  p2        text
    FORM CALL_TRANSACTION .
      LOOP AT IT_MAIN INTO WA_MAIN.
        CLEAR WA_BDCDATA.
        REFRESH IT_BDCDATA.
        perform bdc_dynpro      using 'SAPMP50A' '1300'.
        perform bdc_field       using 'BDC_OKCODE' '/00'.
        perform bdc_field       using 'RP50G-PERNR' WA_MAIN-PERNR.
        perform bdc_field       using 'RP50G-TIMR6' 'X'.
        perform bdc_field       using 'BDC_CURSOR' 'RP50G-CHOIC'.
        perform bdc_field       using 'RP50G-CHOIC' '0006'.
        perform bdc_dynpro      using 'SAPMP50A' '1300'.
        perform bdc_field       using 'BDC_OKCODE' '=INS'.
        perform bdc_field       using 'BDC_CURSOR' 'RP50G-PERNR'.
        perform bdc_field       using 'RP50G-PERNR' WA_MAIN-PERNR.
        perform bdc_field       using 'RP50G-TIMR6' 'X'.
        perform bdc_field       using 'RP50G-CHOIC' 'Addresses'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_CURSOR' '04/03'.
        perform bdc_field       using 'BDC_OKCODE' '=ENTR'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE' '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'SAPLSBAL_DISPLAY' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=&ONT'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-STATE'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_OKCODE' '/EBCK'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-BEGDA'.
        perform bdc_dynpro      using 'SAPLSPO1' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=YES'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'SAPLSBAL_DISPLAY' '0200'.
        perform bdc_field       using 'BDC_OKCODE' '=&ONT'.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-PSTLZ'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        perform bdc_dynpro      using 'MP000600_CE' '2010'.
        perform bdc_field       using 'BDC_CURSOR' 'P0006-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE' '=UPD'.
        perform bdc_field       using 'P0006-BEGDA' WA_MAIN-BEGDA.
        perform bdc_field       using 'P0006-ENDDA' '12-31-9999'.
        perform bdc_field       using 'P0006-ANSSA' WA_MAIN-ANSSA.
        perform bdc_field       using 'P0006-STRAS' WA_MAIN-STRAS.
        perform bdc_field       using 'P0006-ORT01' WA_MAIN-ORT01.
        perform bdc_field       using 'P0006-STATE' WA_MAIN-STATE.
        perform bdc_field       using 'P0006-PSTLZ' WA_MAIN-PSTLZ.
        perform bdc_field       using 'P0006-LAND1' WA_MAIN-LAND1.
        ls_ctu_params-dismode = U_MODE.
        ls_ctu_params-updmode = U_UPDT.
        ls_ctu_params-NOBINPT = 'X'.
        CALL TRANSACTION 'PA30' USING it_bdcdata
               OPTIONS FROM ls_ctu_params MESSAGES INTO IT_BDCMSGCOLL.
        PERFORM message.
        CLEAR: WA_MAIN, WA_ITEM.
      ENDLOOP.
    ENDFORM.                    " CALL_TRANSACTION
    *&      Form  INTIALIZE_ITAB
          text
    -->  p1        text
    <--  p2        text
    FORM INTIALIZE_ITAB .
      CLEAR: WA_MAIN,
             WA_ITEM,
             WA_BDCDATA,
             WA_BDCMSGCOLL,
             LS_CTU_PARAMS.
      REFRESH: IT_MAIN,
               IT_ITEM,
               IT_INTERN,
               IT_BDCDATA,
               IT_BDCMSGCOLL.
    ENDFORM.                    " INTIALIZE_ITAB
    *&      Form  GETFILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM GETFILENAME .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = ' '
        IMPORTING
          FILE_NAME     = p_fname.
    ENDFORM.                    " GETFILENAME
    *&      Form  FILE_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM FILE_UPLOAD .
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = p_fname
          i_begin_col = p_begcol
          i_begin_row = p_begrow
          i_end_col   = p_endcol
          i_end_row   = p_endrow
        TABLES
          intern      = it_intern.
    Moving the data to internal table.
      PERFORM MOVE_DATA.
    ENDFORM.                    " FILE_UPLOAD
    *&      Form  MOVE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM MOVE_DATA .
      DATA : lv_index TYPE i.
      FIELD-SYMBOLS <fs>.
    *--- Sorting the internal table
      SORT it_intern BY row col.
      CLEAR it_intern.
      LOOP AT it_intern.
        MOVE it_intern-col TO lv_index.
    *--- Assigning the each WA_DATA to an internal table row
        ASSIGN COMPONENT lv_index OF STRUCTURE wa_main TO <fs>.
    *--- Asigning the field value to a field symbol
        MOVE it_intern-value TO <fs>.
        AT END OF row.
          APPEND wa_main to it_main.
          CLEAR wa_main.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " MOVE_DATA
    *&      Form  SCREEN_FLAG
          text
    -->  p1        text
    <--  p2        text
    FORM SCREEN_FLAG .
      IF P_FIRST = 'X'.
        U_MODE = 'A'.
      ENDIF.
      IF P_SECOND = 'X'.
        U_MODE = 'N'.
      ENDIF.
      IF P_THIRD = 'X'.
        U_MODE = 'E'.
      ENDIF.
      IF P_SYN = 'X'.
        U_UPDT = 'S'.
      ENDIF.
      IF P_ASYN = 'X'.
        U_UPDT = 'A'.
      ENDIF.
    ENDFORM.                    " SCREEN_FLAG
    *&      Form  BDC_DYNPRO
          text
         -->P_0161   text
         -->P_0162   text
    FORM BDC_DYNPRO  USING   program dynpro.
      CLEAR WA_BDCDATA.
      wa_bdcdata-program = program.
      wa_bdcdata-dynpro = dynpro.
      wa_bdcdata-dynbegin = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
          text
         -->P_0211   text
         -->P_LW_MAIN_TEXT1  text
    FORM BDC_FIELD  USING   FNAM FVAL.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    ENDFORM.                    " BDC_FIELD
    *&      Form  MESSAGE
          text
    -->  p1        text
    <--  p2        text
    FORM MESSAGE .
      DATA: MSG TYPE STRING.
      LOOP AT IT_BDCMSGCOLL INTO WA_BDCMSGCOLL.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID   = SY-MSGID
            LANG = SY-LANGU
          IMPORTING
            MSG  = MSG.
        IF WA_BDCMSGCOLL-MSGTYP = 'S'.
          WRITE:/ MSG,'For',WA_MAIN-PERNR.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " MESSAGE
    FILE FORMAT:
    PERNR     BEGDA     ANSSA     STRAS     ORT01     STATE     PSTLZ     LAND1
    10270     8/2/2011     1(Permanent)     SSS     ban     01     578987     IN
    10270     8/2/2011     3(Home)     SSS     ban     01     578987     IN

  • Program to activate update rule for master data (info objects)..very urgent

    Hi all,
    I have an info provider(A0CUSTOMN). For this the update rules are not active.In production system i am not able activate.Please let me know if there is any program to activate the update rule for masterdata(info object).
    Thanks=points
    Manjula

    Hi Manjula,
    Leave the id and infocube field blank.  Just provide the infosource name.
    BTW is this a direct update master data object?  In that case all this is not relevant.
    Check if it appears as an Infoprovider. 
    I did not ask enough questions to start with.
    BR/
    Mathew.

  • Master Data Creation - Generic Program

    Hi Gurus,
    I'm trying to find a way to avoid the usage of LSMW for customer and vendor master data creation; according with the specified account group, I  read the table T007D (for the Customers) fields for Generic, Company and Sales Area Data, and then I made my own BDC_DATA code structure.
    The problem is that I don't exactly know which position of the colums FAUSA, FAUSF and FAUSV corresponds to which Master Data Fields. Where do I find this Mapping? Is the mapping defined in the SAP ABAP code or there is an internal mapping table?
    Thanks in advance for your answers.
    Cheers,
    Nuno A.

    The problem, indeed, is not the LSMW. I was wondering if it would be easy to develop that kind of tool using ABAP.
    However, if it is possible to do that using the LSMW, I would try it. One question about the LSMW, how can I obtain the information of the tables T077D and TMOD*? Do I have to put ABAP code in the 5th LSMW step "Maintain Field Mapping and Conversion Rules"?
    Thanks,
    Nuno A.

  • Can not activate master data

    Hey,
    on the employee characteristic i have activated the master data, but when i check the "Q-" table there are still record whith "M" ??
    The activate tell me that there are nothing to activate.
    Is there anyone who can tell me, how i active the data.
    Per

    Hi,
    Use program 'RSDMD_CHECKPRG_ALL' to repair all the incosistencies.
    Thx,
    Soumya

Maybe you are looking for

  • Download link for report in OBIEE 10g

    Hi All, On dashboard page, we have link for the report. Our requirement is, beside the report link, Can we put a link to download the same report. Business wants users should have quicker access to download the report. So, they want a link to downloa

  • I have the new update but in my notifications I accidentally deleted the weather notification. How do I get it back?

    I accidentally deleted the weather in the new notification area. Help how do I get it back?

  • Listing Procedure

    Dear All, in my currenr scenerio we are using B1 Listing Procedure which is not checking the out-put tax code. , My client requirement is when all the data for the article master is maintained e.g sales price, output tax Etc which flow to POS  then i

  • Calling 3rd party softwar from ABAP

    hi all, I would like to know is it possible, if yes, how to perform a call to launch external 3rd party software from ABAP (example, half way in process of a BDC session) and pass back the information from 3rd party software back to ABAP. Thanks in a

  • Cannot install itunes.   Keeps telling me to insert CD

    I'm having the exact same issue as in this discussion thread (but it never had an answer). : https://discussions.apple.com/thread/4348080?tstart=0 I try to install I tunes and it keeps telling me to insert CD-ROM or other removeable disk... what do I