TCODE  KPO6 Recording

Dear Guys
I have developed a upload program for Transaction KP06 using SHDB Transaction Recorder. Its working fine till the records fit into table control with out scrolling the scroll bar down. But when there is a need to scroll down the scroll bar   to insert more records its get failed.
How can I scroll the scroll bar of table control while uploading the records using SHDB when there is a need to insert more records in Table Control.
Message was edited by:
        Adnan Maqbool

Hi Adnan,
Check this example to know how to code for handling table control in BDC.
http://sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
You can use the bapi: BAPI_COSTACTPLN_POSTACTINPUT instead of BDCs to avoid the confusing aspects of BDC programming.
Regards,
Ravi
Message was edited by:
        Ravi Kanth Talagana

Similar Messages

  • Infotype Master Data - TCODE for recording

    Hi HCM Experts,
    I am just new to HCM and engaged in data conversion template preparation. I will be executing BDC for below info types. I explore few Tcode in HCM and found that infotypes are repeating on other HCM Tcode also.
    Would seek advise on best fit Tcode to perform BDC on below each info types. (i.e which is Tcode to be used for recording of master data of below Into types)
    IT1000     Object Name
    IT1001     Relationships
    IT1005     Planned Compensation
    IT1008     Acct. Assignment Features
    IT1010     Authorities/Resources
    IT1013     Employee Group/Subgroup
    IT1050     Job Evaluation Results
    IT1051     Survey Results
    IT1011     Working Time
    IT1028     Address
    Please note that i am aware about LSMW and data load conversion activities, need inputs on respective Tcode against each infotypes.
    Thks in advance for helping.

    Hi ,
      Use the SHDB transaction for BDC Recording.
      Give the transaction to record as  PA30.
      Then PA30 screen will come.
       Fill the Infotype based on your requirement.
      Then continue with recording by filling the details of corresponding infotype.

  • Tcodes for recording

    Required a Tcode in BDC to do Recording like mm01,fb01,va02 etc.
    how many r there n what
    mm01----material master

    hi,
    you can upload data for any transaction.... you can use SHDB to record. Check the table TSTC for all the tcodes.
    Thanks,
    Mahesh

  • LSMW -BDc recording problem

    Hi all,
    Is there any way by which we can delete the BDC_CURSOR field from the recording of LSMW 's BDC recording method.
    thanks
    Sonal

    hi
    I think, Simply edit the recorded structure and delete that recorded code, but I am not sure v can delete that....
    I donno how come it is going to work because it is in the sequential order of the screens and the operation u did in that tcode while recording
    ~~Guduri

  • TCode used in the program generated by LSMW

    Hi Friends,
    I have to insert a field in the source structure of the LSMW....I think I can do it through SM35 but, in the Maintain Object Attributes, I have a list of recordings..Iam not sure  in which of the recordings I have to add these fields..Can any one tell me how to see for which Tcode the recording has been done in the standard program generated by LSMW..
    Please help!!
    Thanks in advance..
    GC..

    hi,  for add field in source structure, why not use LSMW tcode, and enter the project and do the change on source structure?
    I don't know why you want to use SM35 way.
    By the way, it's also can be achieved in SM35 way, you can find the source structre DDIC name in mapping program LSMW generated.
    By choose the 'Display conversion program' step,  and navigate in the convert program for a search.
    thanks

  • How to know whether a TCode is called directly or not

    Hi all,
    I have a requirement to create a popup in a standard TCode. This TCode is recorded to BDC and used in another report.
    I would like to know how we can check (in code) whether the standard Tcode is being called directly or it is being called by a different program, function module or bdc ...
    Thanks,
    Khanh
    Edited by: Khanh Nguyen on Apr 1, 2010 4:37 PM

    Hi,
    It can be checked in the following way:
    IF sy-calld IS INITIAL.     
    ENDIF.
    " sy-called is initial if the program is run stand alone. If it called from another program, it is not initial.
    Thanks & Regards
    Rocky Agarwal

  • Gl a/c uploading

    Hi,
    What are tables related to Gl a\c uploading?
    What is the tcode for recording ?
    pls, suggesssst the best way for uploading !
    Thanks in advance.
    regards
    umakanth

    problem in bdc session method for tcode FS00
    which method to upload G/L master???
    BDc recording
    Reward points if it is useful...

  • Reset Sample Calculation option greyed out in ECC6 but ok in 4.6c for QAC3

    HI.
    We are upgrading our 4.6C system to SAP ECC 6.0.
    We have activated the EA-PLM enhancement package for QM.
    When we go to QAC3 transaction code the option of Reset sample calculation is greyed out in ECC 6.0 system but in 4.6C system the option of Reset sample calculation can be used.
    Please let me know if there is any configuration for activating the option : Reset Sample Calculation in QAC3.

    You can use Transaction VL71.
    Because check the following
    Goto TCODE SHDB record the TCODE VL02N, Give the any one of the delivery no and select Output from Deliveries and SAVE.
    Now process the the recorded Transaction you will get the message -"LEAVE TO TRANSACTION" is not allowed in batch input.-
    Kanagaraja L

  • Function Module to Insert Agent assignment upon creation of Responsibility

    Hi Friends,
    Using BDC I am able to create Resposibilities in Responsibilities tab of PFAC tcode.
    I need to insert Agent assignment under created Responsibility.
    Actually In Tcode PFAC I enter Rule then select change button this will lead us to next screen there i select Responsibilities tab
    there I select create button then it will give a pop-up in that i will enter Object abbr. and Name then i will select continue.
    then next i will enter category then select save.
    Up to this using recording I am able to create Responsibilities but here i need to come back and i need to select just now created
    Responsibility and i need to select insert agent assignment icon then it will give popup there i need to select Orgnizational unit then continue then it will give small popup ther i need to give search term (what ever we entered in Object abbr.) then continue again one popup will come ther we need to select that Org.unit check box then continue then it will one more popup there i need to select create then it will be inserted under Responsibilitty.
    In the above entire explanation I am able do upto  create Responsibilities but to insert agent assignment we need to come back after save but it is not possible through Recording because after save Recording will be ended.
    So could you please guid me how to insert agent assignment under just created Responsibility.
    If there is any function module to do that please suggest me .
    Thanks
    Chandu

    Hi,
    I tried like that also.
    Whenever we need to insert agent assignment under just created Responsibility we need to select just created responsibility
    created by first BDC . But in seccond BDC WITH TCODE OOCU_RESP Recording is not capturing that action (selecting just created Responsibility).
    It is giving the message 'You did not select a valid object' in the status bar.
    So It is unable to insert agent assignment under responsibility.
    I think there would a function module which insert agent assignment under selected responsibility.
    If anybody knows please suggest me or am I making any mistake ?
    If you would like to see my code pls find below.
    *& Report  YCRM_CREATE_REPBLT_AGENT
    REPORT  ycrm_create_repblt_agent.
    *Selection Screen
    PARAMETERS : p_rule TYPE pdtask-seark OBLIGATORY,
                 p_file TYPE rlgrap-filename OBLIGATORY.
    *Data Declarations
    TYPES : BEGIN OF ty_resp,
            short    TYPE p1000-short,
            stext    TYPE p1000-stext,
            category TYPE ro_expr, "EDIT_BIND_DEF-EXPR_LOW(02),
            END OF ty_resp.
    DATA : it_resp TYPE TABLE OF ty_resp,
           wa_resp TYPE ty_resp,
           p_file1 TYPE string.
    DATA : it_bdcdata    TYPE TABLE OF bdcdata,
           wa_bdcdata    TYPE bdcdata,
           it_bdcmsgcoll TYPE TABLE OF bdcmsgcoll,
           wa_bdcmsgcoll TYPE bdcmsgcoll.
    *Constants Declarations
    CONSTANTS : c_x        TYPE c VALUE 'X',
                c_tcode(4) TYPE c VALUE 'PFAC',
                c_mode     TYPE c VALUE 'A'.
    *AT SELECTION-SCREEN event for providing f4 help for input file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM file_on_f4.
    *Start of selectin event.
    START-OF-SELECTION.
    File Upload
      PERFORM upload_file.
    *BDC Logic
      PERFORM bdc_to_create_rep.
    *&      Form  BDC_DYNPRO
          text
         -->P_0061   text
         -->P_0062   text
    FORM bdc_dynpro  USING    fp_program "value(p_0061)
                              fp_dynpro. "value(p_0062).
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = fp_program.
      wa_bdcdata-dynpro   = fp_dynpro.
      wa_bdcdata-dynbegin = c_x.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
          text
         -->P_0066   text
         -->P_0067   text
    FORM bdc_field  USING    fp_fnam "value(p_0066)
                             fp_fval. "value(p_0067).
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam  = fp_fnam.
      wa_bdcdata-fval  = fp_fval.
    *WA_BDCDATA-DYNBEGIN = C_X.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    " BDC_FIELD
    *&      Form  FILE_ON_F4
          text
    -->  p1        text
    <--  p2        text
    FORM file_on_f4 .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          field_name    = 'P_FILE'
        CHANGING
          file_name     = p_file
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
      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.                    " FILE_ON_F4
    *&      Form  UPLOAD_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM upload_file .
      p_file1 = p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = p_file1
          has_field_separator     = 'X'
        CHANGING
          data_tab                = it_resp
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      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.                    " UPLOAD_FILE
    *&      Form  BDC_TO_CREATE_REP
          text
    -->  p1        text
    <--  p2        text
    FORM bdc_to_create_rep .
      LOOP AT it_resp INTO wa_resp.
        REFRESH : it_bdcdata,
                  it_bdcmsgcoll.
    *Screen 0600
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0600'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PDTASK-SEARK'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=AEND'.
        PERFORM bdc_field       USING 'PDTASK-SEARK'
                                       p_rule. "'90000159'.
    *Screen 0040
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=RESP'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'HRS1000-SHORT'.
        PERFORM bdc_field       USING 'HRS1000-SHORT'
                                      'Z99999999972'.
        PERFORM bdc_field       USING 'HRS1000-STEXT'
                                      'Category (RUN -SUPPORT) + C&PS Web'.
        PERFORM bdc_field       USING 'HRS1203-ACTOR_FLAG'
                                      'R'.
    *Screen 0040
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=INSE'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'DATESET'.
        PERFORM bdc_field       USING 'DATESET'
                                      'O'.
    *Screen 0300
        PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'SVALD-VALUE(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=FURT'.
        PERFORM bdc_field       USING 'SVALD-VALUE(01)'
                                       wa_resp-short. "'PL-BK'.
        PERFORM bdc_field       USING 'SVALD-VALUE(02)'
                                       wa_resp-stext. "'Plan - BendixKing Team'.
    *Screen 0200
        PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0200'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'EDIT_BIND_DEF-EXPR_LOW(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SAVE'.
       PERFORM bdc_field       USING 'P1000-BEGDA'
                                 '23.03.2011'.
       perform bdc_field       using 'P1000-ENDDA'
                                 '31.12.9999'.
        PERFORM bdc_field       USING 'P1000-SHORT'
                                       wa_resp-short. "'PL-BK'.
        PERFORM bdc_field       USING 'P1000-STEXT'
                                       wa_resp-stext. "'Plan - BendixKing Team'.
        PERFORM bdc_field       USING 'EDIT_BIND_DEF-EXPR_LOW(02)'
                                       wa_resp-category.        "'z11'.
        CALL TRANSACTION c_tcode USING it_bdcdata
                                 MODE c_mode
                                 MESSAGES INTO it_bdcmsgcoll.
        IF sy-subrc <> 0.
          MESSAGE i001(ymsg)."Error Message
         ROLLBACK WORK.
        ELSE.
          REFRESH : it_bdcdata,
                    it_bdcmsgcoll.
    **screen 0410
          PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0410'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'P1000-OBJID'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CHG'.
          PERFORM bdc_field       USING 'P1000-OBJID'
                                         p_rule. "'90000162'.
    **screen 0420
          PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0420'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=RELI'.
          PERFORM bdc_field       USING 'DATESET'
                                        'O'.
    **screen 0110
          PERFORM bdc_dynpro      USING 'SAPLRHW0' '0110'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CONT'.
    **screen 0100
          PERFORM bdc_dynpro      USING 'SAPLRHWL' '0100'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'PCHDY-SEARK'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CONT'.
          PERFORM bdc_field       USING 'PCHDY-SEARK'
                                         wa_resp-short. "'PL-BK'.
    **screen 0120
          PERFORM bdc_dynpro      USING 'SAPMSSY0' '0120'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 '04/03'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
    **screen 0400
          PERFORM bdc_dynpro      USING 'SAPLRHUA' '0400'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=INSE'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'PERIOD-BEGDA'.
          PERFORM bdc_field       USING 'PERIOD-BEGDA'
                                        '29.03.2011'.
          PERFORM bdc_field       USING 'PERIOD-ENDDA'
                                        '31.12.9999'.
          CALL TRANSACTION 'OOCU_RESP' USING it_bdcdata
                                       MODE c_mode
                                       MESSAGES INTO it_bdcmsgcoll.
          IF sy-subrc <> 0.
            MESSAGE i001(ymsg)."Error Message
            ROLLBACK WORK.
          ELSE.
            MESSAGE i000(ymsg)."Success Message
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " BDC_TO_CREATE_REP
    Guide me on this.
    Thanks

  • Hr...bdc for pa40-salary increment

    HI FRIENDS..
    M NOT ABLE TO FETCH VALUES FOR TABLE CONTORL IN PA40 T.CODE FOR SALARY INCREMENT..
    ACT D PROBLEM IS..
    THE OLD SALARY SRTUCTURE IS DIFFERENG FROM CURRENT SALARY STRUCTURE IN EXCEL SHEET..
    DOES ANY1 HAVE THE BDC FOR SALARY INCREMENT ..?
    PLS HELP..
    PTS REWRDED FOR SURE..

    Hi,
      We never write BDC for PA40.
    Write it for PA30.
    Goto SHDB tcode and record for the required infotype.
    Or you can also use any of the following FM instead of BDc.
    HR_INFOTYPE_OPERATION
    HR_MAINTAIN_MASTERDATA.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4208189&messageID=3188548
    https://forums.sdn.sap.com/click.jspa?searchID=4208189&messageID=1552901
    Regards

  • ECC 6.0 with PU01 (Delete Current payroll result)

    Hi,
    We are going to SAP 4.7 to ECC 6.0. We are facing in problem PU01 (delete current payroll result).
    we have made a BDC for deleting payroll in mass. In ECC 6.0 output screen is changed, so my BDC is not
    working. In ECC 6.0,  PU01 when I directly run, it is correct. But I am going with SHDB TCode (for recording) Delete button
    is not working (Give SAP 4.7 version screen with SHDB). I can't delete payroll result. how can I record it?
    Plese help.
    Thanks & Regards
    Neelesh Sonkar

    HI
    While searching the forum I cam accross the following thead.
    Re: Unable to record transaction PU01 in ECC6 HR
    Hope this helps
    Param

  • ALE BAPI  and more

    1> what are BAPI   PARAMETERS?
    2> SHDB full form
    3> What exactly FORMAT_MESSAGE Function Module does?
    4> Mandatory fields for xd01, me21, material master , (regarding Recording)
    5>what type of errors will BAPI throws.

    hi,
    1.what are BAPI PARAMETERS?
    like othe rfM'S EXPOTING ,IMPORTING,TABLES ,exceptionsETC
    2. SHDB full form
    It is a tcode for recording it doesn't have any full form.
    3 What exactly FORMAT_MESSAGE Function Module does?
    generally for error handlling in call transaction we use structure BDCMSGCOll and Format_message. used to display error messages.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    ID = SY-MSGID
    LANG = SY-LANGU
    NO = SY-MSGNO
    V1 = SY-MSGV1
    V2 = SY-MSGV2
    V3 = SY-MSGV3
    V4 = SY-MSGV4
    IMPORTING
    MSG = LV_MSG
    EXCEPTIONS
    NOT_FOUND = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE :/ LV_MSG.
    ENDIF.
    4Mandatory fields for xd01, me21, material master , (regarding Recording)
    to find the manditory fieldds got to paticular transaction and give values,if the system doesn't allow u to move to next screen for some fields consider those are manditory .
    5.what type of errors will BAPI throws.
    http://sapbrain.com/TUTORIALS/TECHNICAL/BAPI_tutorial.html

  • BDC With screen  variants

    hai
    how to record or write a bdc along with screen variant for a tcode.
    anand kumar
    Edited by: Rob Burbank on Jun 22, 2009 10:34 AM

    Hi,
    it is exactally same as normal recording. Instead of using the actual tcode while recording from SHDB use the transaction varaint for recording.
    Cheers
    VJ

  • Massive data input for employees Transaction

    Hi experts!
    I need to perform a massive data input for employees. Iu2018ve tried with de Tx PA71 u2013 Fast entry of Time Data - but It needs a document or a manual preselecting.
    Its necessary selecting ranges of personnel number in order to perform a massive data input for employees as a salary benefit or bonus for a group of employees.
    Do you know that kind of transaction?
    Thanks in advanced!

    Hi ,
    You could also use T Code : SCAT/SCEM  for mass upload or deload.
    You may use below method to create SCAT in ECC (This is not a Direct method)
    1) Run transaction SCEM
    2) Enter a CATT name
    3) Click on change, prompt appears saying it doesn't exist, do you want to
    create. Click yes.
    4) Enter the TCODE to record.
    5) Execute the TCODE and save data.
    6) Back out. Click End and copy button.
    7) Double-click the TCD on the left side of screen
    8) Click F5 or Field Inputs Variants
    9) Use black down-arrow to step through screens.
    10) Double click on fields to set variables. (SAP adds leading & to each
    variable name).
    11) Save and back out.
    12) Go to menu path Environment --> Extended CATT.
    13) Click change and change type from (M) Manual Test Case to (C) CATT.
    14) Assign component.
    15) Click save. Back out.
    16) Execute SCAT and Go to --> Variants --> Export Default and save as text
    file.
    17) Edit file with new test data.
    18) Execute CATT.
    After step 6 you can also leave SCEM and run SCAT and perform the
    parameterization there as usual.
    Hope this helps.
    Inputs for Neeraj.

  • Plan data missing in KE30

    Dear all,
    I have problem.
    I complete planning the copa planning via tcode KEPM, record type B. Posting has number document and exist as table CE2XXXX.
    I continues creating COPA report make comparison between actual and plan. I create starting with form and assigned to report. However, report contained no data for plan column. I can identified the problem because version can not work in form. If i generate the report without form (basic type), plan report could be generated.
    Please any advice, why plan data with form could be missing in report KE30.
    Thanks in advance,
    DEwi

    Hi,
    if the same plan data can be seen in "basic report" but not in a report based on a form, its definitely the form that causes the problem. Check the form, or ask somebody who is able to do so, maybe there is a mistake in the definition that you are not able to view...
    Best regards, Christian

Maybe you are looking for