SHDB recording in PLMD_AUDIT

Hello,
   I am trying to record the Audit corrective actions creation through SHDB and want to
do the same process as batch input .
     The problem is SHDB is not recording the mouse clicks . For example if i want to create a corrective
actions under the Audit  question list it is not able to go till the Audit Question list level and create it . Instead the cursor is always at the Audit plan level .
   Any idea how to capture the mouse clicks through SHDB transaction . Or Is there any key to move the cursor to Audit Question level  in PLMD_AUDIT ? . Or Is there any way to do this corrective actions creation through a program using BAPI's  .
Regards,
Kevin

Hi Kevin,
Try creating CARs with this bapi 'BAPI_BUS20370_CREATE'.
Regards,
Keerthi

Similar Messages

  • SHDB recording to produce PDF

    Hello,
    I had a look through some threads on this subject but I cant find the solution Im looking for.
    I want to create a SHDB recording to produce a number of reports and save them individually as pdfs. As we have version 4.6 (i read a thread that 4.7 has this new feature of pdf device output) of SAP we are using an outside program to create the pdf´s by setting the printer default to pdf.
    The problem is that when i choose print the SHDB does not record the names that I want to call each report in the recording rendering it pretty much useless.
    Does anybody have any suggestions for a solution to this problem?
    I dont have access to sm35 so cant program anything directly in SAP. Is it possible to place code directly into the SHDB steps?
    Cheers,
    Graeme

    The TimeSavers+Form Asst approach to this need is the focus of an upcoming half-hour webinar
    (free; no fluff, no hype, no nonsense)
    Enable and encourage user input in PDFs (viewed with Adobe Reader)  with FrameMaker-to-Acrobat TimeSavers + Form Assistant
    Wednesday, June 5, starting 9am PDT
    Register at: https://www3.gotomeeting.com/register/157658438
    Techniques demonstrated in this webinar include features that are all embedded in PDFs that are viewed with the free Adobe Reader:
    • text fields where users can record data values and options
    • checkboxes to track progress
    • page marks and notes (optionally e-mailed)
    • embedded grading/feedback forms
    • storing useful search queries in the PDF file for future use
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/Acrobat/Captivate training & consulting * FM-to-Acrobat TimeSavers/Assistants

  • How to Capture warning message in SHDB recording

    Hi SDN,
    I am getting problem in Recording FB03 through SHDB.
    when i am clicking on save as complete button i am getting a warning message as duplicate entry.
    when click on enter button the actuval object got saved bu from recording it is not captured.
    how we can continue with this

    Hi
    Sorry
    i know that
    i don't want to display messages.
    when i am recording a Transaction code.
    i am getting a warning message as check for duplicates.
    when click on enter button that warning message is got disappiared but that enter click is not recorded in FB03 recording.
    when i process that recording it is stopping that transaction code at that warning message in BDC.
    please suggest

  • Handling Scroll bar in SHDB recording

    hi,
      can any one help me in handling scroll bar events while recording a transaction which is further used in BDC.
    thanks in advance,
    Swamy mantha.

    Hi swamy,
    in transaction VB01 (in the second screen) at the bottom of the tablecontrol there´s a buttom allowing to create a "
    New Entry". This button has the create icon.
    I think you should proceed in this way when recording in shdb.
    1.- introduce in the first line the corresponding material
    2.- do intro (that is okcode = /00)
    3.- click on the "New Entry button"
    4.- do intro
    the important part in the recording is:
    SAPMV13G 1001 X
    BDC_CURSOR KOMGG-MATNR(02)
    BDC_OKCODE =NEWP
    so you can see here that using the "New Entry button"
    will mean KOMGG-MATNR(02). (02) won´t change.
    Hoping to have helped
    Best regards

  • SHDB recording in /SAPAPO/SCC_TQ1

    In recording SAP APO transaction /SAPAPO/SCC_TQ1 in SHDB, the method of deletion of all quota arrangement for MODEL-LOCATION combination would be to press the select all button in the alv report then press the delete button.
    However, the actual pressing of the select all button is not being recorded. Is there a way around this so as to imitate the process of deleting all header/line items in a particular MODEL-LOCATION using SHDB?

    Hi,
    Even i faced a similar issue when i was working on a recording.
    in the recording when we use the select all button and then click on delete, this would not get recorded at all.
    Later found the solution:
    Switch on the debug in the standard Tcode for which we are doing the recording.
    Look for the part of the code that is hit when you do select all and then for the delete Function code.
    In all standard tcodes you will see that for deleting there will a function module that will be called .
    Find the specific Funtion module in your case and pass the values to the FM for the line items selected.
    P.S: If any one has come across a similar situation,please post yout solution here..
    Regards,
    SuryaD.
    Edited by: SuryaD on Nov 8, 2009 3:02 PM

  • Query on SHDB recording

    Hi
    In recording (tcode- SHDB), what is the use & functionality of  “ NOT A BATCH INPUT “ option. This option appears when we create new recording.

    Hi
    SY-BINPT=SPACE for CALL TRANSACTION USING
    before recording if you want to use that recording for only call transaction then select this otion
    normally after recording a transaction you copy that recording into a report program there you  won't select this check box then in the output format it will show 2 options batch input or call transaction
    if you select this button then in that program there won't be any option like above just it will execute that in call transaction
    <b>reward if usefull</b>

  • Shdb recording

    hi when i am trying to run the code for the recording dat i did using shdb removing the hard coding and trying to update its saying "not able to interpret data in file"
    or "file not available"
    can u guys pls help me??

    Sushant - When recording in SHDB - You converted to program - did you mean to select to use values from a file rather then use the values from the recording? If so you need to regenerate the program and this time select the correct option.
    If you did mean to use file upload, I suggest you give us more details of what you are trying to do so that we can try help...

  • SHDB vs LSMW recording

    Hi, can anybody please tell the difference between SHDB recording vs LSMW recording?
    Thank you

    This is because of the change in screen.
    When you are doing recording for BDC only minimum necessary fields appear on the screen or you can say a different screen appears from the transaction screen.
    This also helps in avoiding complexities in BDC during background mode.
    Regards,
    Amit
    Reward all helpful replies.

  • How to come out of loop at last record?

    As I told in my previous posts,Iam transferring data from excel to zgkmaster tabel
    table structure:
    eid
    ename
    First I did SHDB(recording) and then made my BDC program.There are 10 records in table with names gopi,hari,rajesh.... with eid 1 to 10.My task is to updated all these names to 'XXX' for all 10 records (just for simple purpose).In my program I called 'Call transaction 'se11' using ptable mode 'A'.I moved from first screen to last screen (where you will update XXX and save for each record').Here:
    Loop at ptable into otable
    perform screens using <program name> <number> 'X'
    perform fields using zgkmaster-ename , otable-ename
    perform fields using 'BDC_OKCODE' , 'SAVE'
    perform screens using <program name> <number> 'X'
    perform fields using 'BDC_OKCODE' , 'NEXT'
    endloop.
    This code works fine in 'A' mode,but at last record a message comes 'Function code cannot be selected' (i think 'next' cannot be executed as it is last record) but all records are updated.
    When the mode is changed to 'N' and 'E',nothing is saved and the same error 'Function code cannot be selected'.Due the this error whatever data we give before that is not saving into table,may be due to this error.
    Now how shoud i make the loop exit when it reaches last record,i tried even with hardcording
    if sy-index = 10.
    leave prograam'
    endif.
    perform.....'NEXT' statement
    But the program is not exiting,I dont know why?Can anyone help me,I think if i made the loop to exit before next statement for last record that error will not occur.advise me if anything wrong.
    Thanks in advance
    The problem is that
    endloop

    Hi..
    1. To Terminate the LOOP in Last record.
        LOOP AT ITAB.
            << PROCESSING LOGIC>>
             AT LAST.
               EXIT.
             ENDAT.
        ENDLOOP.
    2. It is necessary to Declare the Internal table with same structure as the Excel file
    3. It is not necessary to call the Screen Explicitly before filling the BDCDATA record.
        If you want to process the Screen Twice the Fill the SAME SCREEN twice in BDCDATA Table and set the DYNBEGIN = 'X' in both the cases.
    REWARD IF HELPFUL.

  • LSMW Recording method is not working for transaction code FBL5N

    Hi Experts,
    I am trying to prepare LSMW to create dispute cases for customer line items through LSMW Recording method. When i was trying to do through SHDB Recording its working properly through Program. But its not working through LSMW Recording method means its not executing to next screen, immediately its displaying session completed screen.
    Please do let me know any soution for this.
    thanks,
    Sriram.

    Hi Sriram,
    If my memory serves me correctly, a BDC will not work correctly with a list. This is mentioned somewhere in the SAP help pages.
    Now I am not familiar on how to create dispute cases but using FBL5N does not sound to me the way to go.  I assume that you use FBL5N in order to determine to which documents to link the dispute to, however you should be able to get the requested info from the BSID/BSAD tables.
    Also in case you want to change the customer line item in the accounting document, check the data transfer workbench (SXDA) as SAP delivers a standard program for this.
    Kind regards,
    Robert
    Edited by: RJ. Schamhart on Jan 14, 2011 12:35 AM
    Edited by: RJ. Schamhart on Jan 14, 2011 12:43 AM

  • Issue Related to BDC Program against Recording

    Hi,
    I have a issue related to <b>BDC Programming</b>.
    Here My Transaction is related to <b>VX22</b>.
    First I did <b>Recording[SHDB]</b> for This Transaction<b>[VX22].</b>
    Then I had added same code from <b>Recording[SHDB]</b> in my Program.
    The Transaction which was going through <b>SHDB</b> Correctly, Not Working from My Program.
    Can any body tell me the Reason for this.
    I am adding <b>SHDB[Recording]</b> as well as Programming Code out here for checking.
    If anybody knows the diffrence please reply me.
    <b>SHDB - RECORDING</b>
    <b>    PERFORM bdc_dynpro      USING 'SAPMV52G' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'VBAK-VBELN'
                                      record-vbeln_001.
        PERFORM bdc_field       USING 'RV52G-SELKZ'
                                      record-selkz_002. " space
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0500'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DETA'.
        PERFORM bdc_field       USING 'RV52G-SELKZ(02)'
                                      record-selkz_02_003.
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0520'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'VBEX-ALNUM'
                                      record-alnum_004. "Space
        PERFORM bdc_field       USING 'VBEX-EMBGR'
                                      record-embgr_005. "Space
        PERFORM bdc_field       USING 'VBEX-GENNR'
                                      record-gennr_006. "Space
        PERFORM bdc_field       USING 'VBEX-MODCO'
                                      record-modco_007. "Space
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0520'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BACK'.
        PERFORM bdc_field       USING 'VBEX-GENNR'
                                      record-gennr_008. "Value passed
        PERFORM bdc_field       USING 'VBEX-MODCO'
                                      record-modco_009. "Value Passed
        PERFORM bdc_dynpro      USING 'SAPLV52E' '0500'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      '*VBEX-VBELN'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
        PERFORM bdc_transaction USING 'VX22'.</b>
    <b>In Program Code Added:</b>
    <b>  CLEAR v_line_item.
      PERFORM f_bdc_dynpro      USING 'SAPMV52G' '0100'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'RV52G-SELKZ'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
      PERFORM f_bdc_field       USING 'VBAK-VBELN'
                                      i_data-vbeln.
      PERFORM f_bdc_field       USING 'RV52G-SELKZ'
                                      v_space.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = i_data-sno
        IMPORTING
          output = i_data-sno.
      SHIFT i_data-sno LEFT DELETING LEADING space.
      CONCATENATE c_line i_data-sno c_cl_b INTO v_line_item.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      v_line_item.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=DETA'.
      PERFORM f_bdc_field       USING v_line_item
                                      c_x.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
      PERFORM f_bdc_field       USING 'VBEX-ALNUM'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-EMBGR'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                      v_space.
      PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                      v_space.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0520'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      'VBEX-MODCO'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=BACK'.
      PERFORM f_bdc_field       USING 'VBEX-GENNR'
                                      i_data-gennr.
      PERFORM f_bdc_field       USING 'VBEX-MODCO'
                                      'A'.
      PERFORM f_bdc_dynpro      USING 'SAPLV52E' '0500'.
      PERFORM f_bdc_field       USING 'BDC_CURSOR'
                                      '*VBEX-VBELN'.
      PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
      PERFORM f_bdc_call_transaction USING 'VX22'.</b>
    Can Anybody tell me the Diffrence B/N Recording and Program.
    only <b>v_line_item</b> is added extra in program to find out specific line item and select that line item that is working Correctly.
    <b>Issue#1</b>
    The issues in above come in first Initial Screen[100] Where i need to Remove Check for <b>'RV52G-SELKZ'</b> that is first thing that is not happening.
    Next it woking correctly for <b> 500</b> Screen [By Selecting Correct line item and then Details for it].
    <b>Issue#2</b>
    Then it is going to Screen <b>502</b> where first it need to clear all the enabled field i passed <b>space</b> to them. but still it is showing values in all fields. After Clearing i should Re-Add 2 fields among Those fields.
    Then other things will happen.
    Can anybody tell me what is reason in program code is not working - I had tried in all <b>'A/E/N'</b> Modes but it's not working!
    If anybody knows reason please help me out.
    One More thing i had tried by making <b>PARAMETER ID'S</b> of few fields BLANK. But by this way also it is not working.
    <b>  SET PARAMETER ID 'ALN' FIELD v_space.
      SET PARAMETER ID 'EMB' FIELD v_space.
      SET PARAMETER ID 'GNR' FIELD v_space.</b>
    Can anybody give me the solution.
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    I had tried in Ravi's way also.
    I will explain the process once more.
    It's a DE-Assign Process - Main purpose is to make the External Licence number blank.
    For that process is as follows:
    First user will Trigger <b>VX22</b> transaction,
    In the initial screen <b>100</b> he will give <b>Sales Order Number[VBELN]</b> then remove Check Box against <b>Blocked Items(Legal Control)</b> Then Press Enter.
    It will take user to <b>Change Licen Data [500]</b> Screen.
    There from the line items he will select specific line item which is already filled in with <b>ASSIGN</b> process.
    He will select check box against that Line item then will hit on <b>Details[F2]</b> from the Tool Bar.
    It will take user to <b>502 screen</b> There he will be deleting all the data in change mode one by one in order of <b>Exp.Ctrl.Class</b>, <b>Grouping</b>, <b>License Number</b>, <b>Change ID</b> Then he will hit on enter then by that <b>Ext.License No</b> which is in display mode - value against that field will get deleted.
    Then he will again provide <b>License Number, Change ID</b> and then <b>hit Enter, Enter, Then Back Button</b> then it will take us back to previous screen <b>[500]</b> there he will hit on <b>SAVE</b> button. Then Order will be saved.
    ABove is the actual process.
    Anybody having the solution for above as BDC is initially not making screen fields blank initially.
    how we can do this by SET PARAMETER ID's.
    Thanks & Regards,
    Prasad.

  • CATT Mode in BDC Recording

    Hi Friends
    What is the Use of CATT MODE in recording parameters of  SHDB Recording .
    Can u pls give some valuable information
    Regards
    Krishnan R.

    Hi Krishnan,
    CATT stands for "Computer Aided Test Tool". When the transaction contains more number of sub-screens or if the transaction is more complex to handle (for example, user defined z-transactions), then we use CATT option as they are reusable tests.

  • BDC Program with recording

    Hi All,
    I have a requirement to create a bdc program for asset creation with recording. Any have this, please send the step-by-step procedure.
    I am very thankful to you in advance.
    Thanks,
    Nagarjuna.

    HI Nagarjuna,
    Step by Step approach to ceate simple BDC session program using reusable template.
    Batch Data Communication is one of the vital data upload / transaction automation option in many SAP components . I am suggesting here a way out to simplify the programming for a BDC application . It utilizes a template program and gives steps to use it to create your own BDC program on the fly.
    This step by step approach can be used to create a Simple BDC program i.e for a transaction which does not have any table control / looping at screen table. The same can also be enhanced to develop a program for transactions involving table controls .
    1. Create a new program as executable program using SE38 transaction code.
    2. Copy the following template code into your program .
    ---- Start of Template -
    REPORT
    NO STANDARD PAGE HEADING
    LINE-SIZE 200
    LINE-COUNT 300.
    *-- DATA DECLARATION--
    *---Types
    DATA : BEGIN OF t_upload,
    FIELD1(10),
    FIELD2(2),
    FIELD3(18),
    FIELD4(35),
    END OF t_upload.
    *--- Tables
    DATA : BEGIN OF i_bdcdata OCCURS 0."to hold the transaction record
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF i_bdcdata.
    DATA: i_upload LIKE STANDARD TABLE OF t_upload," to hold file data.
    i_upload1 LIKE STANDARD TABLE OF t_upload." to hold file data.
    *--- Work Areas
    DATA: wa_upload2 LIKE t_upload,
    wa_upload LIKE t_upload,
    wa_upload1 LIKE t_upload.
    *--- Variables
    DATA: v_count1(4) TYPE n,
    v_error TYPE c,
    v_session(12),
    v_field(21) TYPE c,
    v_message(60) type 'C'.
    *--Constants
    DATA: c_open TYPE c VALUE '(',
    c_close TYPE c VALUE ')',
    c_x TYPE c VALUE 'X'.
    *---Initialisation
    initialization.
    refresh : i_upload , i_upload1 ,i_bdcdata.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk1.
    ---AT SELECTION SCREEN -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *--For popup to select file.
    PERFORM give_help.
    -----START OF SELECTION -
    START-OF-SELECTION.
    *--Data upload using WS_Upload.
    PERFORM get_data.
    *-- OPEN SESSION
    PERFORM open_group.
    *--Insert transactions using BDCDATA table in the session.
    PERFORM do_transaction .
    *-- Close the session.
    PERFORM close_group.
    END-OF-SELECTION.
    *& Form f_get_data
    For data upload from external file.
    FORM get_data.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'DAT'
    TABLES
    data_tab = i_upload
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    DELETE I_UPLOAD INDEX 1.
    ENDIF.
    ENDFORM. " f_get_data
    *& Form F_open_group
    To open session in session management.
    FORM open_group.
    v_session = 'TCODE'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = v_session
    user = sy-uname
    keep = 'X'.
    ENDFORM. " F_open_group
    *& Form f_do_transaction
    Insert transactions in session after passing values to BDCDATA
    FORM do_transaction.
    LOOP AT i_upload INTO wa_upload .
    *---- insert your generated codes from recording at SHDB here
    *----- insertion ends
    perform bdc_transaction using 'TCODE'.
    REFRESH : I_BDCDATA.
    CLEAR : WA_UPLOAD.
    ENDIF.
    ENDLOOP.
    ENDFORM. " f_do_transaction
    *& Form bdc_dynpro
    For appending screen details to BDCDATA
    FORM bdc_dynpro USING program dynpro.
    CLEAR i_bdcdata.
    i_bdcdata-program = program.
    i_bdcdata-dynpro = dynpro.
    i_bdcdata-dynbegin = 'X'.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. "bdc_dynpro
    *& Form bdc_field
    For appending field details to bdcdata table
    FORM bdc_field USING fnam fval.
    CLEAR i_bdcdata.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. " bdc_field
    *& Form bdc_transaction
    For inserting Transaction in the session
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = tcode
    TABLES
    dynprotab = i_bdcdata.
    ENDFORM. " bdc_transaction
    *& Form F_close_group
    For closing the session created in Session manager SM35
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    concatenate 'Session ' v_session 'successfully created' into v_field.
    MESSAGE v_field type 'I'..
    CALL TRANSACTION 'SM35'.
    ENDFORM. "f_close_group
    *& Form f_give_help
    For user help to select file
    FORM give_help.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    mask = ',.,..'
    mode = 'O'
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0 AND NOT sy-msgty IS INITIAL.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f_give_help
    ---- End of Template -
    3.Go to the transaction SHDB in another session ( you can also give TCODE - OSHDB in transaction code window and hit enter ).
    4.Create you transaction recording in SHDB . Ensure your transaction recording takes care of input values to all the
    fields to which you intend to pass values in the BDC.
    5.Once your recording is done correctly create the program from recording in the SHDB transction . You will find the button to create program in SHDB . Choose the option of creating from file when you proceed through the subsequent steps.
    6. Define data type t_upload and structure wa_upload in the template program with fields of structure 'RECORD' from the program generated using SHDB recording ( replace the field1, field2 and so on as per your requirement). For your understanding you can remove the suffixes to the
    field name but keep the field size unchanged.
    7.Copy the coding existing between 'do' and 'enddo' statement from the generated program . Insert the copied code between the loop and endloop code of form 'Do_transaction '. Replace fields of structure 'RECORD' with respective fields of structure wa_upload.Insert constant values wherever possible in transaction recording.You can also handle customised data conversions here.
    8.Replace 'TCODE' in the template program with the transaction code you intend to process in this BDC.
    9.Please carry out further syntax check and resolve the related issues.
    This program will provide for input help to select upload file from local machine. The file needs to be in Tab delimited format and is assumed to have first row as column headers .
    On successful creation of session you will be prompted with a Information popup giving the name of session ,and will take you to the SM35 transaction to process your session.
    thanks
    karthik

  • Handling popups in bdc recording

    Hi,
    I am doing bdc recording for a transaction, and there is a popup screen to be handled by the user, but when i am doing recording it is not recording the popup menus. can you please tel me how i can handle popups in BDC recording.
    It is very urgent.
    Thank you.

    Hi Ameen,
    Award points if useful...
    Step by Step approach to ceate simple BDC session program using reusable template.
    This step by step approach can be used to create a Simple BDC program i.e for a transaction which does not have any table control / looping at screen table. The same can also be enhanced to develop a program for transactions involving table controls .
    1. Create a new program as executable program using SE38 transaction code.
    2. Copy the following template code into your program .
    ---- Start of Template -
    REPORT  NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 300.
    *-- DATA DECLARATION--
    *---Types
    DATA : BEGIN OF t_upload,
    FIELD1(10),
    FIELD2(2),
    FIELD3(18),
    FIELD4(35),
    END OF t_upload.
    *--- Tables
    DATA : BEGIN OF i_bdcdata OCCURS 0."to hold the transaction record
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF i_bdcdata.
    DATA: i_upload LIKE STANDARD TABLE OF t_upload," to hold file data.
    i_upload1 LIKE STANDARD TABLE OF t_upload." to hold file data.
    *--- Work Areas
    DATA: wa_upload2 LIKE t_upload,
    wa_upload LIKE t_upload,
    wa_upload1 LIKE t_upload.
    *--- Variables
    DATA: v_count1(4) TYPE n,
    v_error TYPE c,
    v_session(12),
    v_field(21) TYPE c,
    v_message(60) type 'C'.
    *--Constants
    DATA: c_open TYPE c VALUE '(',
    c_close TYPE c VALUE ')',
    c_x TYPE c VALUE 'X'.
    *---Initialisation
    initialization.
    refresh : i_upload , i_upload1 ,i_bdcdata.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk1.
    ---AT SELECTION SCREEN -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *--For popup to select file.
    PERFORM give_help.
    -----START OF SELECTION -
    START-OF-SELECTION.
    *--Data upload using WS_Upload.
    PERFORM get_data.
    *-- OPEN SESSION
    PERFORM open_group.
    *--Insert transactions using BDCDATA table in the session.
    PERFORM do_transaction .
    *-- Close the session.
    PERFORM close_group.
    END-OF-SELECTION.
    *& Form f_get_data
    For data upload from external file.
    FORM get_data.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'DAT'
    TABLES
    data_tab = i_upload
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    DELETE I_UPLOAD INDEX 1.
    ENDIF.
    ENDFORM. " f_get_data
    *& Form F_open_group
    To open session in session management.
    FORM open_group.
    v_session = 'TCODE'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = v_session
    user = sy-uname
    keep = 'X'.
    ENDFORM. " F_open_group
    *& Form f_do_transaction
    Insert transactions in session after passing values to BDCDATA
    FORM do_transaction.
    LOOP AT i_upload INTO wa_upload .
    *---- insert your generated codes from recording at SHDB here
    *----- insertion ends
    perform bdc_transaction using 'TCODE'.
    REFRESH : I_BDCDATA.
    CLEAR : WA_UPLOAD.
    ENDIF.
    ENDLOOP.
    ENDFORM. " f_do_transaction
    *& Form bdc_dynpro
    For appending screen details to BDCDATA
    FORM bdc_dynpro USING program dynpro.
    CLEAR i_bdcdata.
    i_bdcdata-program = program.
    i_bdcdata-dynpro = dynpro.
    i_bdcdata-dynbegin = 'X'.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. "bdc_dynpro
    *& Form bdc_field
    For appending field details to bdcdata table
    FORM bdc_field USING fnam fval.
    CLEAR i_bdcdata.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. " bdc_field
    *& Form bdc_transaction
    For inserting Transaction in the session
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = tcode
    TABLES
    dynprotab = i_bdcdata.
    ENDFORM. " bdc_transaction
    *& Form F_close_group
    For closing the session created in Session manager SM35
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    concatenate 'Session ' v_session 'successfully created' into v_field.
    MESSAGE v_field type 'I'..
    CALL TRANSACTION 'SM35'.
    ENDFORM. "f_close_group
    *& Form f_give_help
    For user help to select file
    FORM give_help.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    mask = ',.,..'
    mode = 'O'
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0 AND NOT sy-msgty IS INITIAL.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f_give_help
    ---- End of Template -
    3.Go to the transaction SHDB in another session ( you can also give TCODE - OSHDB in transaction code window and hit enter ).
    4.Create you transaction recording in SHDB . Ensure your transaction recording takes care of input values to all the
    fields to which you intend to pass values in the BDC.
    5.Once your recording is done correctly create the program from recording in the SHDB transction . You will find the button to create program in SHDB . Choose the option of creating from file when you proceed through the subsequent steps.
    6. Define data type t_upload and structure wa_upload in the template program with fields of structure 'RECORD' from the program generated using SHDB recording ( replace the field1, field2 and so on as per your requirement). For your understanding you can remove the suffixes to the
    field name but keep the field size unchanged.
    7.Copy the coding existing between 'do' and 'enddo' statement from the generated program . Insert the copied code between the loop and endloop code of form 'Do_transaction '. Replace fields of structure 'RECORD' with respective fields of structure wa_upload.Insert constant values wherever possible in transaction recording.You can also handle customised data conversions here.
    8.Replace 'TCODE' in the template program with the transaction code you intend to process in this BDC.
    9.Please carry out further syntax check and resolve the related issues.
    This program will provide for input help to select upload file from local machine. The file needs to be in Tab delimited format and is assumed to have first row as column headers .
    On successful creation of session you will be prompted with a Information popup giving the name of session ,and will take you to the SM35 transaction to process your session.

  • MB1B - 309 Movement - BDC Recording   Error

    HI Everyone,
    Basically I need to create a 309 Movement in transaction MB1B to do a batch to batch transfer. Unfortunately I cannot use a BAPI for this because there is configuration in the system that will create the destination batch so I need to use BDC.
    I can record the transaction without problems, but I cannot get the recording to work in my program. For some reason it doesnot seem to be able to overwrite the defaulted batch no that comes in when specifying the batch to transfer into. If I run the program in mode 'E' the MB1B screen pops up and does nothing. If I click on warning message and close window  it then prompts me to Post. I cannot see why it wont post using my BDC Logic (see below).
    I have tried recording this transaction many many times but it wont work - Maybe i am missing something.
    Please find the code below that i have recorded.....
    Your help is greatly appreciated.
    PERFORM BDC_DYNPRO USING 'SAPMM07M' '0400'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'RM07M-LGORT'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '/00'.
    PERFORM BDC_FIELD USING 'MKPF-BLDAT'
    '01.03.2012'.
    PERFORM BDC_FIELD USING 'MKPF-BUDAT'
    '01.03.2012'.
    PERFORM BDC_FIELD USING 'RM07M-BWARTWA'
    '309'.
    PERFORM BDC_FIELD USING 'RM07M-WERKS'
    FS_DATATAB-WERKS.
    PERFORM BDC_FIELD USING 'RM07M-LGORT'
    FS_DATATAB-LGORT.
    PERFORM BDC_FIELD USING 'XFULL'
    'X'.
    PERFORM BDC_FIELD USING 'RM07M-WVERS2'
    'X'.
    PERFORM BDC_DYNPRO USING 'SAPMM07M' '0421'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'MSEG-CHARG(01)'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '/00'.
    PERFORM BDC_FIELD USING 'MSEGK-UMWRK'
    FS_DATATAB-WERKS.
    PERFORM BDC_FIELD USING 'MSEGK-UMLGO'
    FS_DATATAB-LGORT.
    PERFORM BDC_FIELD USING 'MSEGK-UMMAT'
    FS_DATATAB-MATNR.
    PERFORM BDC_FIELD USING 'MSEG-MATNR(01)'
    FS_DATATAB-MATNR.
    PERFORM BDC_FIELD USING 'MSEG-ERFMG(01)'
    FS_DATATAB-ERFMG.
    PERFORM BDC_FIELD USING 'MSEG-CHARG(01)'
    FS_DATATAB-CHARG.
    PERFORM BDC_FIELD USING 'DKACB-FMORE'
    'X'.
    PERFORM BDC_DYNPRO USING 'SAPLKACB' '0002'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'COBL-KOSTL'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM BDC_FIELD USING 'COBL-KOSTL'
    FS_DATATAB-KOSTL.
    PERFORM BDC_DYNPRO USING 'SAPMM07M' '0410'.
    PERFORM BDC_FIELD USING 'MSEG-UMCHA'
    FS_DATATAB-CHARG1.
    PERFORM BDC_FIELD USING 'DKACB-FMORE'
    'X'.
    PERFORM BDC_DYNPRO USING 'SAPLKACB' '0002'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'COBL-KOSTL'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM BDC_FIELD USING 'COBL-KOSTL'
    FS_DATATAB-KOSTL.
    PERFORM BDC_DYNPRO USING 'SAPMM07M' '0421'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '/EBCK'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'MSEG-ERFMG(01)'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '/00'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '=BU'.
    PERFORM BDC_FIELD USING 'DKACB-FMORE'
    'X'.
    PERFORM BDC_DYNPRO USING 'SAPLKACB' '0002'.
    PERFORM BDC_FIELD USING 'BDC_CURSOR'
    'COBL-KOSTL'.
    PERFORM BDC_FIELD USING 'BDC_OKCODE'
    '=ENTE'.
    CALL TRANSACTION 'MB1B' USING BDCDATA[] MODE 'A'
    MESSAGES INTO IT_BDC_MSGS.

    Hi,
    I could not give the exact solution as i dont have access to my SAP system temporarily. According to your inputs i can guess that the issue happened because of pop-up or message prompt will be coming for MB1B movement.
    Generally we could not capture the pop-up kind of things using SHDB recording. You must include one BDC_OKCODE logic in the place where POP-UP is coming inside your BDC Coding part.
    I hope this will give you some idea.
    Thanks:)

Maybe you are looking for

  • Can't boot windows. Stuck at Welcome/login

    Hello! I recently purchased a macbook pro retina, mainly for music production but also for some other stuff. Now the thing is that the music production software that i'm using, does only work with pc. So i decided to bootcamp my mac so that i can use

  • I have Creative Suite Design and web premium 6 -with a serial number. I have reinstalled my computer

    I have Creative Suite Design and web premium 6 - with a serial number. I have reinstalled my computer, AFter installing the CS6, from direct download from my Adobe, again it will not accept my serial code, and the information is: " the serial you pro

  • Error while deploying SAR files through SDM

    HI, When i am trying to apply patchesthrough SDM i am getting the following error: System: ECC 6.0 ERROR: Starting Deployment of tc/bizc/ws/ear Aborted: development component 'tc/bizc/ws/ear'/'sap.com'/'MAIN_APL70VAL_C'/'963770': Error: Caught the fo

  • Phone numbers in PDF files

    Is there a way to make phone numbers live in a pdf file that is viewed on the iphone or other smart phones so that if the user clicks on them they dial that phone number.? Chris

  • The correct sequesnce

    What is the correct sequence for the install of discoverer that is bundled with 10gias. do i have to install the database first ect database10g appserver10g discoverer10g