BDC TO UPDATE J1ID

GURU'S,
I WISH TO UPDATE SOME RECORDS FOR J1ID.COULD U SUGESET WHICH steps to follow.
Thanx in advance
Regards,
Vibhuti

resolved

Similar Messages

  • How we can upload the data through BDC for transaction J1ID

    Hi guru
    How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
    Fields. 11 Fields.plz provide some code logic.
    KUNNR     J_1IEXCD     J_1IEXRN     J_1IEXRG     J_1IEXDI     J_1IEXCO     J_1ICSTNO     J_1ILSTNO     J_1IPANNO     J_1IEXCICU     J_1ISERN

    Hi,
    I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
    SEARCH SCN for Table Control in BDC
    Regards
    Karthik D

  • HR ACTION- BDC should update both 0000 and 0001 or should not commit at al

    Hi,
    I have a requirement in which a action is to be performed. Action could be terminate, hire, or anything.
    Consider HIRE action, in hire action info type 0000 and 0001 should be updated.
    I have recorded to save info type 0000 first and then 0001 as the pe the standard action simply using SHDB. Now the problem is when running the program for few employees it save infotype 0000 and then errors out in 0001. But in this case data is already created in 0000 and 0001 is not created.
    Is there any option that will make the BDC to update both the info types 0000 and 0001 or none at all in case of error in any one?
    Thanks in advance,
    Akash

    You can commit at last , i have an idea say for example you hve to do bdc for two transactions
    pa20 , pa30(I am just using HR terms i am not quite familiar with it )
    If i use call transaction method then i will code like as below
    if flag = x
    call t-code pa20.
    call t-code pa30.
    then
    if flag = x (ie no error in bdcmsgcoll)
    commit work (at last )
    Regards
    Bhanu

  • BDC for updating table like zstudent

    Hi Every One ,
                 How i write the BDC for updating table.
      I'm explaining my scenario , there is a table zstudent - it contains few fields like sno , sname , address. Previously student no.(sno's) like 1,2,3,4,5,6,7,8.... now i'want 1hyd,2hyd,3hyd,4hyd,5hyd,6hyd,.......... like this , and sno is not a primary key remaining all fields are same .
    let me inform me , which transaction i use in call transaction.
    Please revert me.
    Regards,
    Krishna

    Hello,
    Since you have a custom table, you can use all the Open SQL statements available in ABAP
    [Open SQL |http://help.sap.com/saphelp_470/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm]
    BDC's are generally used when you wanna update SAP Tables, as we do not know, which all tables will be updated in SAP.
    You may use the SHDB tcode, to record a BDC for an tcode: standard or custom
    Regards,
    Abhishek

  • BDC - table updation

    Hi all,
    I want to insert data in Zdatabase table so i want to write BDC for it. I have done recording for SM30 from where i want to insert values in table. I have done recording properly but the problem is when the movement it the ok_code = save the values are intitilizing and no values are inserting. I want to know  using SM30 is the proper way for datainserting using BDC or not? if not is there any other method to that? and why my values are intializing when it ok_code come to save.
    <b>useful answers rewarded</b>.
    Regards,
    sunil kumar.

    hi,
    first upload data from excel into internal table. and use modify command to update datbase table
    check this code
    REPORT zmat_no message-id zebg.
    TYPE-POOLS truxs.
    TABLES:zmatnr.
    DATA : itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA row LIKE alsmex_tabline-row.
    data : g_matnr like mara-matnr.
    data : count type i.
    data : itab_count type i.
    data : gi_final like zmatnr occurs 0 with header line.
    *data : begin of gi_final occurs 0,
    mat_old like mara-matnr,
    mat_new like mara-matnr,
    end of gi_final.
    ***********************Selection Screen*************************
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETER : pfname LIKE rlgrap-filename OBLIGATORY.
    select-options : records for count.
    SELECTION-SCREEN END OF BLOCK b1.
    *********************At Selection Screen*************************
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfname.
    PERFORM search.
    START-OF-SELECTION.
    perform process.
    form process.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = pfname
    i_begin_col = 1
    i_begin_row = 2
    i_end_col = 12
    i_end_row = 65000
    TABLES
    intern = itab
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 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.
    describe table itab lines itab_count.
    row = 1.
    loop at itab.
    if itab-row <> row.
    append gi_final.
    clear gi_final.
    endif.
    case itab-col.
    when '1'.
    CLEAR G_MATNR.
    gi_final-OLD_MATNR = itab-value.
    CONCATENATE 'NEW' gi_final-old_matnr INTO itab-value.
    gi_final-new_MATNR = itab-value.
    endcase.
    row = itab-row.
    append gi_final.
    clear gi_final.
    endloop.
    CALL FUNCTION 'PROGRESS_INDICATOR'
    EXPORTING
    I_TEXT = 'File Has Been Successfully Uploaded from Workstation ' .
    if not gi_final[] is initial.
    if not records-low is initial .
    if not records-high is initial.
    records-high = records-high + 1.
    DESCRIBE TABLE gi_final LINES count.
    IF records-high < count.
    DELETE gi_final FROM records-high TO count.
    ENDIF.
    IF records-low <> 1.
    IF records-low <> 0.
    DELETE gi_final FROM 1 TO records-low.
    ENDIF.
    ENDIF.
    endif.
    endif.
    endif.
    IF NOT GI_FINAL[] IS INITIAL.
    CALL FUNCTION 'PROGRESS_INDICATOR'
    EXPORTING
    I_TEXT = 'Processing zmatnr table'
    I_OUTPUT_IMMEDIATELY = 'X'.
    if itab_count <> count.
    message i000 with 'records are not matching'.
    exit.
    else.
    modify zmatnr from table gi_final.
    message i000 with 'data base table modified successfully'.
    endif.
    endif.
    endform.
    *& Form search
    text
    --> p1 text
    <-- p2 text
    FORM search .
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
    static = 'X'
    CHANGING
    file_name = pfname.
    ENDFORM. " search

  • FSCM TCode: UKM_BP, create  BDC to Update Credit Profile

    We get the following error trying to update risk class, etc. in background BDC created with the recorder, "Control Framework: Fatal error - GUI cannot be reached". Any suggestions? Thanx.

    You are likely using an EnjoySAP transaction. These don't run well in the background because they heve to interface with the GUI. If there's an older version of the transaction or a BAPI, you should try that.
    What is the transaction?
    Sorry - I see it's UKM_BP. Is this CRM or SRM?
    Rob
    Message was edited by: Rob Burbank

  • BDC Records updation??

    Hi Experts,
        After running a BDC program in background, next day morning when i saw the results, few records are not updated (error records). What should i do? Please let me know.
    Regards,
    Aditya.

    Hi,
    Is it a Call Txn or Batch Input BDC?
    IN case of a Call Txn BDC ..you need to create a Error Session for Error Records and they needs to be executed in ALL SCREEN mode ....in Next Morning..
    In case of a Batch Input BDC....Error session will be automatically created and you need to execute it in ALL SCREEN mode ....in Next Morning..

  • BDC to update CAT2 transaction.one issue while updating CAT2 transaction

    Good Day Friends,
    i have one issue while updating CAT2 transaction,
    i have enhnced 3 custom fields in CAT2 tx-code. while updating through manually the data is getting stored in CATSDB tx-code for this i have done validation in enhamcement spots ECC 6.0.
    but when i am running bdc this custom field data is not updating in CATSDB table.
    my dout is will  BDC work for enhancement spots or not , also please suggest if you have any idea ?

    Hi,
    Usually I am trying to avoid BDC. So I would try to use BAPIs BAPI_CATIMESHEETMGR_INSERT and BAPI_CATIMESHEETMGR_CHANGE. Similar to other BAPIs, you can pass values for your extended fields using table EXTENSIONIN. It's described in BAPI's documentation or look for EXTENSIONIN on SDN. The principle is same for all BAPIs.
    Regards

  • BDC recording(updating two line items in a single call)

    Hi,
    I have a problem with the transaction PK31,while recording we enterd material number,plant,supply area in the first screen,after that it display line items for that control cycle,I want to update some fields in that line items,when i updated quantity and status fields in the first line item after that i cliked the change "qty/status button" and it saves that field values and it comes out from the transaction.
    can you please suggest what is the solution for updating two line items in a single call(PK31 transaction).

    Hi,
    In one screen . Put 2 containers with different names.
    cont1,cont2
    on each of the container call grid,grid1 like below .
    1. this is for item line display
    IF g_r_grid IS INITIAL.
          CREATE  OBJECT  g_r_cont
                      EXPORTING  container_name  =  'CONT1'.
        g_r_variant  =  sy-repid.
    *--Build  field  catalog
        PERFORM build_field_catalog.
    *--Layout selection
        g_r_layo-cwidth_opt  = g_c_set.
        g_r_layo-no_rowmark  = g_c_set.
        g_r_layo-sel_mode    = space.
        CALL METHOD g_r_grid->set_table_for_first_display
          EXPORTING
            i_buffer_active = g_c_set
            is_variant      = g_r_variant
            is_layout       = g_r_layo
            i_save          = g_c_set
            i_default       = g_c_set
          CHANGING
            it_outtab       = g_t_alv
            it_fieldcatalog = g_t_fieldcat
            it_sort         = g_t_sort.
      endif
    1. this is for error data display
    IF g_r_grid1 IS INITIAL.
          CREATE  OBJECT  g_r_cont
                      EXPORTING  container_name  =  'CONT2'.
        g_r_variant  =  sy-repid.
    *--Build  field  catalog
        PERFORM build_field_catalog.
    *--Layout selection
        g_r_layo-cwidth_opt  = g_c_set.
        g_r_layo-no_rowmark  = g_c_set.
        g_r_layo-sel_mode    = space.
        CALL METHOD g_r_grid->set_table_for_first_display
          EXPORTING
            i_buffer_active = g_c_set
            is_variant      = g_r_variant
            is_layout       = g_r_layo
            i_save          = g_c_set
            i_default       = g_c_set
          CHANGING
            it_outtab       = g_t_error
            it_fieldcatalog = g_t_fieldcat
            it_sort         = g_t_sort.
      endif

  • BDC data updation

    Hi,
    Could you please tell me that how to  update data in hr tables for  tcode PA30 Orgnisational assignment  based on pernr and business area.
    Regards
    Alok

    helpful

  • Upload Purchase order text  using BDC  while updating Material Master MM02

    Hi All,
    Please help me out with sample code upload PO Txt ( long text...which is more than 72 chars)using MM02. Its very urgent
    I am not able to pass data into following fields seen in recording,
    RSTXT-TXLINE(02),
    RSTXT-TXLINE(03),
    RSTXT-TXLINE(04),
    RSTXT-TXLINE(05),  as we can see only RSTXT-TXLINE field in the RSTXT structure......
    how to split  the long text into 72 chrs each and pass into data into the RSTXT-TXLINE(02), RSTXT-TXLINE(03), RSTXT-TXLINE(04)....correspondingly........
    Thanks in advance.....
    Reagards,
    Prasad KR.

    Hi
    see the sample program
    REPORT zmm_longtext
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab1 OCCURS 0,
            matnr    LIKE mara-matnr,    " Material
            text1    LIKE tline-tdline,  " Long Text
            text2    LIKE tline-tdline,  " Long Text
            text3    LIKE tline-tdline,  " Long Text
            text4    LIKE tline-tdline,  " Long Text
            text5    LIKE tline-tdline,  " Long Text
            text6    LIKE tline-tdline,  " Long Text
            text7    LIKE tline-tdline,  " Long Text
            text8    LIKE tline-tdline,  " Long Text
            text9    LIKE tline-tdline,  " Long Text
            text10   LIKE tline-tdline,  " Long Text
            text11   LIKE tline-tdline,  " Long Text
            text12   LIKE tline-tdline,  " Long Text
            text13   LIKE tline-tdline,  " Long Text
            text14   LIKE tline-tdline,  " Long Text
            text15   LIKE tline-tdline,  " Long Text
            text16   LIKE tline-tdline,  " Long Text
            text17   LIKE tline-tdline,  " Long Text
            text18   LIKE tline-tdline,  " Long Text
            text19   LIKE tline-tdline,  " Long Text
            text20   LIKE tline-tdline,  " Long Text
            text21   LIKE tline-tdline,  " Long Text
            text22   LIKE tline-tdline,  " Long Text
            text23   LIKE tline-tdline,  " Long Text
            text24   LIKE tline-tdline,  " Long Text
            text25   LIKE tline-tdline,  " Long Text
          END OF itab1.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,    " Material
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras,   " Language
           gv_matnr TYPE matnr.
    Constants
    CONSTANTS:
    Object ID for Long Text of Material Basic Data 1
      c_best     TYPE thead-tdid VALUE 'GRUN',
      c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      SORT itab1 BY matnr.
      LOOP AT itab1.
        CLEAR gv_matnr.
        SELECT SINGLE matnr INTO gv_matnr
           FROM mara WHERE bismt = itab1-matnr.
        IF itab1-text25 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text25.
          APPEND itab.
        ENDIF.
        IF itab1-text24 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text24.
          APPEND itab.
        ENDIF.
        IF itab1-text23 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text23.
          APPEND itab.
        ENDIF.
        IF itab1-text22 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text22.
          APPEND itab.
        ENDIF.
        IF itab1-text21 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text21.
          APPEND itab.
        ENDIF.
        IF itab1-text20 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text20.
          APPEND itab.
        ENDIF.
        IF itab1-text19 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text19.
          APPEND itab.
        ENDIF.
        IF itab1-text18 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text18.
          APPEND itab.
        ENDIF.
        IF itab1-text17 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text17.
          APPEND itab.
        ENDIF.
        IF itab1-text16 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text16.
          APPEND itab.
        ENDIF.
        IF itab1-text15 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text15.
          APPEND itab.
        ENDIF.
        IF itab1-text14 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text14.
          APPEND itab.
        ENDIF.
        IF itab1-text13 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text13.
          APPEND itab.
        ENDIF.
        IF itab1-text12 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text12.
          APPEND itab.
        ENDIF.
        IF itab1-text11 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text11.
          APPEND itab.
        ENDIF.
        IF itab1-text10 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text10.
          APPEND itab.
        ENDIF.
        IF itab1-text9 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text9.
          APPEND itab.
        ENDIF.
        IF itab1-text8 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text8.
          APPEND itab.
        ENDIF.
        IF itab1-text7 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text7.
          APPEND itab.
        ENDIF.
        IF itab1-text6 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text6.
          APPEND itab.
        ENDIF.
        IF itab1-text5 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text5.
          APPEND itab.
        ENDIF.
        IF itab1-text4 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text4.
          APPEND itab.
        ENDIF.
        IF itab1-text3 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text3.
          APPEND itab.
        ENDIF.
           IF itab1-text2 NE ' '.
        itab-matnr = gv_matnr.
        itab-text  = itab1-text2.
        APPEND itab.
           ENDIF.
        IF itab1-text1 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text1.
          APPEND itab.
        ENDIF.
        CLEAR itab.
      ENDLOOP.
      DELETE itab WHERE matnr EQ ' '.
    Upload the Texts
      SORT itab BY matnr.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        dl_name = itab-matnr.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Material'(001),
                 itab-matnr.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Material'(002),
                 itab-matnr.
        ENDIF.
        AT END OF matnr.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    Reward points for useful Answers
    Regards
    Anji

  • Im using BAPI_INB_DELIVERY_CHANGE instead of BDC to update the DATABASE

    can any help me in using  BAPI_INB_DELIVERY_CHANGE  ..i got stuck with it....

    what is the problem you are facing..?

  • Field not getting updated in BDC while running in background

    Hi Friends,
    I'm executing a BDC transaction to update the Alternate Tax Classification (VBAK_TAXK1) field in Sales Order. I'm passing value 1 to the field and then saving it directly. While running the BDC in background, the field is not getting updated. On the other hand i checked it running in foreground, the field got updated without any error message.
    Can anybody help me advicing why the field is not getting updated in background?
    Thanks,
    Bestin

    Hi ,
    Check the the log if you are using a session method and if call transaction then capture the messages for the same,
    Because in the foreground the BDC will update the records even if there is a warning message nut in background it will not update. So check the data which you are inserting and try avoid the warning messages also so that it can run smoothly in backfround.
    Thanks & Regards
    Jyo

  • BDC for VA02 to update Sales Order

    Hi,
    I'm try to run a BDC to update partner data on the sales order header data but I get this error when I executed the BDC.
    Field 'GVS_TC_DATA-REC-PARTNER(8) does not exist in the screen SAPMV45A 4002
    Please advise. The code is as shown below:
    REPORT zstd21  NO STANDARD PAGE HEADING
                   LINE-SIZE 255.
    INCLUDE bdcrecx1.
    DATA:
      BEGIN OF itab OCCURS 0,
        vbeln  LIKE   vbak-vbeln,
        kunnr  LIKE   vbpa-kunnr,
      END OF itab.
    PARAMETER: p_flname   LIKE   sopcpath-file  OBLIGATORY
                                                VISIBLE LENGTH 100.
    START-OF-SELECTION.
      PERFORM read_data_from_file.
      PERFORM open_group.
      PERFORM update_order_salesrep.
      PERFORM close_group.
    END-OF-SELECTION.
    *&      Form  READ_DATA_FROM_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM read_data_from_file .
      DATA:
        lv_filename      TYPE    string.
      CONSTANTS:
        c_numeric        TYPE    char10    VALUE '0123456789'.
      CLEAR lv_filename.
      lv_filename = p_flname.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_filename
          filetype                = 'DAT'
          has_field_separator     = 'X'
          dat_mode                = 'X'
       CODEPAGE                = SPACE
        CHANGING
          data_tab                = itab[]
        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.
      IF itab[] IS INITIAL.
        MESSAGE i000(zv).
        STOP.
      ENDIF.
      CLEAR itab.
      LOOP AT itab.
        IF itab-vbeln CO c_numeric.
          UNPACK itab-vbeln TO itab-vbeln.
        ENDIF.
        IF itab-kunnr CO c_numeric.
          UNPACK itab-kunnr TO itab-kunnr.
        ENDIF.
        MODIFY itab.
      ENDLOOP.
    ENDFORM.                    " READ_DATA_FROM_FILE
    *&      Form  UPDATE_ORDER_SALESREP
          text
    -->  p1        text
    <--  p2        text
    FORM update_order_salesrep .
      CONSTANTS:
        c_header    TYPE  vbpa-posnr    VALUE   '000000',
        c_srep      TYPE  vbpa-parvw    VALUE   'ZS',
        c_field     TYPE  bdcdata-fnam  VALUE   'GVS_TC_DATA-REC-PARTNER(',
        c_quote     TYPE  char1         VALUE   '''',
        c_bracket   TYPE  char1         VALUE   ')'.
      DATA:
        lit_vbpa    LIKE  vbpa OCCURS 0 WITH HEADER LINE,
        lv_field    TYPE  bdcdata-fnam,
        lv_pos(2)   TYPE  n.
      IF NOT itab[] IS INITIAL.
        SELECT mandt vbeln posnr parvw
        INTO   TABLE lit_vbpa
        FROM   vbpa
        FOR ALL ENTRIES IN itab
        WHERE  vbeln = itab-vbeln
        AND    posnr = c_header.
      ENDIF.
      SORT lit_vbpa BY vbeln posnr parvw.
      LOOP AT itab.
        CLEAR: lv_field,
               lv_pos.
        CLEAR lit_vbpa.
        LOOP AT lit_vbpa WHERE vbeln = itab-vbeln.
          lv_pos = lv_pos + 1.
          IF lit_vbpa-parvw EQ c_srep.
            CONCATENATE c_quote c_field lv_pos c_bracket c_quote
                   INTO lv_field IN CHARACTER MODE.
            CONDENSE lv_field.
            EXIT.
          ENDIF.
        ENDLOOP.
        IF NOT lv_field IS INITIAL.
          PERFORM bdc_dynpro      USING 'SAPMV45A'    '0102'.
          PERFORM bdc_field       USING 'BDC_CURSOR'  'VBAK-VBELN'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  '/00'.
          PERFORM bdc_field       USING 'VBAK-VBELN'  itab-vbeln.
          PERFORM bdc_dynpro      USING 'SAPMV45A'    '4001'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  '=KPAR_SUB'.
          PERFORM bdc_dynpro      USING 'SAPMV45A'    '4002'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  '=SICH'.
          PERFORM bdc_field       USING 'GV_FILTER'   'PARALL'.
          PERFORM bdc_field       USING lv_field      itab-kunnr.
          PERFORM bdc_transaction USING 'VA02'.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_ORDER_SALESREP

    Hi satyadev,
    As per this error message "Field 'GVS_TC_DATA-REC-PARTNER(8) does not exist in the screen SAPMV45A 4002", screen does not have GVS_TC_DATA-REC-PARTNER(8) field.
    It is obvious that your recording has this field but not the current screen.
    Look at the screen and recording, if possible do a re-recording.
    This is a general problem with  BDCs. Configuration / screen fields and screen order should be similar with the recording screen order and screen field.
    One of the possible reason may be your functional team might have changed the screen number or they might have hide this field.
    Hope this helps..
    Mubeen

  • VT02N's Deadlines are not updating correctly in the background by BDC...

    Hi all,
    I have this Incoming IDOC that will perform a direct BDC on VT02N.
    This BDC will update VT02N deadlines : Shipment and Loadings dates...
    However, it comes out error "End Date Precede Start Date"
    When I manually put in, it works...
    And I have check my BDC coding... its getting and giving the values correctly into VT02N...
    Strangely ->
    1. If i run the idoc manually and do the BDC screen in the foreground ... VT02N updates correctly
    2. If i run the idoc in the background (run by a batch program) ... VT02N gives 'End Date Precede Start Date' error...
    Have anyone come across such an error...?
    Thanks,
    William Wilstroth

    Solution : The Handling Date variables that is holding values in the IDOC need to be clear at the end of the IDOC. (Own logic mistake)

Maybe you are looking for

  • Additional skills required to administer & configure AC 10.0

    Greetings- A dumb question for those involved in ramp up implementation- suppose, someone knows how to administer and configure AC 5.x and now with the release of AC 10.0, what additional skills one would further require to handle in and out of Ac 10

  • XML repository schema

    Hey all I downloaded the repository schema to desktop Edited it, meaning added couple of fields to a flat table and deleted some other tables When I upload the schema back into repository I don't see the field names To start with the repository schem

  • How can i made a snapshot of a disk and replace the disk on another server solaris 11?

    Helo! I am trying to replace a disk on my solaris 11 with a snapshot of another server. I did the snapshot, but how can i send it to another server? I have try somethings, but It didnt work. Look: #first tentative zfs send /rpool/vdisk/srvdth05-ldom1

  • Macbook Pro Retina keyboard missing keystrokes (spontaneously)

    I notice that when I type on my Macbook Pro Retina, once in a while (it comes in waves), some of the keys stop registering. I suspect it's not a mechanical hardware malfunction, as the keys start working a few minutes later fully normally (I can agai

  • Will the iPod 4th gen receive any further updates since it cannot have IOS 7.

    Will the iPod 4th gen receive any further updates since it cannot have IOS 7. Just to keep the existing software updated and running correctly without crashing. My concern now is that as new games/apps come out i am going to get a lot more NOT SUPPOR