Programs related to BDC

Hi,
please give me some programs related to call transaction.
i want to update the ztable using f-22 t.code.
Thanks,
srii.

hi,
see the example for transaction XD01 using call transaction:
*&                       STRUCTURES DECLARATION
TYPES: BEGIN OF TY_XD01,
       KUNNR(16) TYPE C,
       BUKRS(4)  TYPE C,
       VKORG(4)  TYPE C,
       VTWEG(2)  TYPE C,
       SPART(2)  TYPE C,
       KTOKD(4)  TYPE C,
       NAME1(35) TYPE C,
       ORT01(35) TYPE C,
       LAND1(3)  TYPE C,
       SPRAS(2)  TYPE C,
       PSTLZ(10) TYPE C,
      civve(1)  type c,
       AKONT(10) TYPE C,
       ZTERM(4)  TYPE C,
       AWAHR(3)  TYPE C,
       WAERS(5)  TYPE C,
       KALKS(1)  TYPE C,
       KZAZU(1)  TYPE C,
       VSBED(2)  TYPE C,
       ANTLF(1)  TYPE C,
       TAXKD(1)  TYPE C,
       TAXKD_02(1) TYPE C,
       TAXKD_03(1) TYPE C,
       TAXKD_04(1) TYPE C,
      END OF TY_XD01.
TYPES:      BEGIN OF TY_MESSG,
            MESSG TYPE STRING,
            END   OF  TY_MESSG.
*&                       INTERNAL TABLE DECLARATION
DATA : I_XD01       TYPE TABLE OF  TY_XD01,               "XD01 STRUCTURE WORK AREA
       I_BDCDATA    TYPE TABLE OF  BDCDATA,               "BDC DATA INTERNAL TABLE
       I_BDCMSGCOLL TYPE TABLE OF  BDCMSGCOLL,            "BDCMSGCOLL INTERNAL TABLE
       I_SUCCESS    TYPE TABLE OF  TY_MESSG,              "SUCCESS WA_XD01 INTERNAL TABLE
       I_ERROR      TYPE TABLE OF  TY_MESSG.              "ERROR   WA_XD01 INTERNAL TABLE
*&                          WORK AREA DECLARATION
DATA:  WA_XD01       TYPE  TY_XD01,            "XK01 STRUCTURE WORK AREA
       WA_BDCDATA    TYPE  BDCDATA,            "BDC DATA WORK AREA
       WA_BDCMSGCOLL  TYPE BDCMSGCOLL,         "BDCMSGCOLL WORK AREA
       WA_SUCCESS    TYPE  TY_MESSG,           "SUCCESS WA_XD01 WORK AREA
       WA_ERROR      TYPE  TY_MESSG.           "ERROR  RECOED  WORK AREA
*&                           VARIABLE DECLARATION
DATA:   FILE_NAME    TYPE STRING, "VALUE  'D:\Documents and Settings\cz0stc\Desktop\DATA.txt',
      SUU_FILENAME TYPE STRING VALUE  'D:\Documents and Settings\cz0stc\Desktop\TESTDATA\SUCC.txt',
      ERR_FILENAME TYPE STRING VALUE  'D:\Documents and Settings\cz0stc\Desktop\TESTDATA\ERROR.txt'.
DATA:   MESSG        TYPE STRING.
*& SELECTION-SCREEN
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_SRCFIL   LIKE  RLGRAP-FILENAME, "OBLIGATORY  DEFAULT  'D:\Documents and Settings\cz0stc\Desktop\DATA.txt' ,
             P_SUCFIL   LIKE  RLGRAP-FILENAME OBLIGATORY  DEFAULT  'D:\Documents and Settings\cz0stc\Desktop\TESTDATA\SUCC.txt',
             P_ERFIL    LIKE  RLGRAP-FILENAME OBLIGATORY  DEFAULT  'D:\Documents and Settings\cz0stc\Desktop\TESTDATA\ERROR.txt'.
SELECTION-SCREEN : END OF BLOCK B1.
*&                  AT SELECTION SCREEN ON VALUE-REQUEST               *
*F4 FUNCTIONALITY FOR FILE UPLOAD
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SRCFIL.
PERFORM GET_FILEPATH USING P_SRCFIL.
*&            *F4 FUNCTIONALITY FOR SUCCESS FILE DOWNLOAD
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SUCFIL.
  PERFORM GET_FILEPATH USING P_SUCFIL.
*&           *F4 FUNCTIONALITY FOR ERROR FILE DOWNLOAD
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_ERFIL.
  PERFORM GET_FILEPATH USING P_ERFIL.
*&  AT SELECTION-SCREEN
AT SELECTION-SCREEN.
FILE_NAME = P_SRCFIL.
SUU_FILENAME = P_SUCFIL.
ERR_FILENAME = P_ERFIL.
*&                          START OF SELECTION                         *
START-OF-SELECTION.
PERFORM UPLOAD_DATA USING FILE_NAME.
PERFORM POPULATE_DATA.
*&      Form  POPULATE_DATA
      text
-->  p1        text
<--  p2        text
FORM POPULATE_DATA .
  LOOP AT I_XD01 INTO WA_XD01.
*&                         FIRST SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0100'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'RF02D-KTOKD'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
PERFORM BDC_FIELD       USING 'RF02D-KUNNR'
                              WA_XD01-KUNNR.
PERFORM BDC_FIELD       USING 'RF02D-BUKRS'
                              WA_XD01-BUKRS.
PERFORM BDC_FIELD       USING 'RF02D-VKORG'
                              WA_XD01-VKORG.
PERFORM BDC_FIELD       USING 'RF02D-VTWEG'
                              WA_XD01-VTWEG.
PERFORM BDC_FIELD       USING 'RF02D-SPART'
                              WA_XD01-SPART.
PERFORM BDC_FIELD       USING 'RF02D-KTOKD'
                              WA_XD01-KTOKD.
*&                         SECOND SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0110'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNA1-SPRAS'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
PERFORM BDC_FIELD       USING 'KNA1-NAME1'
                              WA_XD01-NAME1.
PERFORM BDC_FIELD       USING 'KNA1-ORT01'
                              WA_XD01-ORT01.
PERFORM BDC_FIELD       USING 'KNA1-LAND1'
                              WA_XD01-LAND1.
PERFORM BDC_FIELD       USING 'KNA1-SPRAS'
                              WA_XD01-SPRAS.
PERFORM BDC_FIELD       USING 'KNA1-PSTLZ'
                              WA_XD01-PSTLZ.
*&                         THIRD SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0120'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNA1-LIFNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
*&                         FOURTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0125'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNA1-NIELS'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
*&                         FIFTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0130'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNBK-BANKS(01)'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
*&                         SIXTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0340'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'RF02D-KUNNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
*&                         SEVENTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0370'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'RF02D-KUNNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
*perform bdc_field       using 'KNA1-CIVVE'
                             WA_XD01-CIVVE.
*&                         EIGHT SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0360'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNVK-NAMEV(01)'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
*&                         NINTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0210'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNB1-AKONT'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
*&                         TENTH SCREEN                                *
PERFORM BDC_FIELD       USING 'KNB1-AKONT'
                              WA_XD01-AKONT.
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0215'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNB1-ZTERM'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
PERFORM BDC_FIELD       USING 'KNB1-ZTERM'
                              WA_XD01-ZTERM.
*&                         ELEVENTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0220'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNB5-MAHNA'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
*&                         TWELTH SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0230'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNB1-VRSNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
*&                         THIRTEEN SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0310'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNVV-BZIRK'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
PERFORM BDC_FIELD       USING 'KNVV-AWAHR'
                              WA_XD01-AWAHR.
PERFORM BDC_FIELD       USING 'KNVV-WAERS'
                              WA_XD01-WAERS.
PERFORM BDC_FIELD       USING 'KNVV-KALKS'
                              WA_XD01-KALKS.
*&                         FOURTEEN SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0315'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNVV-VSBED'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '/00'.
PERFORM BDC_FIELD       USING 'KNVV-KZAZU'
                              WA_XD01-KZAZU.
PERFORM BDC_FIELD       USING 'KNVV-VSBED'
                              WA_XD01-VSBED.
PERFORM BDC_FIELD       USING 'KNVV-ANTLF'
                              WA_XD01-ANTLF.
*&                         FIFTEEN SCREEN                                *
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0320'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNVV-PERFK'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTS'.
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '1350'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'RF02D-KUNNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              'ENTR'.
PERFORM BDC_FIELD       USING 'KNVI-TAXKD(01)'
                              WA_XD01-TAXKD.
PERFORM BDC_FIELD       USING 'KNVI-TAXKD(02)'
                              WA_XD01-TAXKD_02.
PERFORM BDC_FIELD       USING 'KNVI-TAXKD(03)'
                              WA_XD01-TAXKD_03.
PERFORM BDC_FIELD       USING 'KNVI-TAXKD(04)'
                              WA_XD01-TAXKD_04.
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '1350'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'RF02D-KUNNR'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0324'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'KNVP-PARVW(01)'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=ENTR'.
CLEAR WA_XD01.
*& CALL TRANSACTION
    CALL TRANSACTION 'XD01' USING I_BDCDATA  MODE 'N' UPDATE 'S' MESSAGES INTO I_BDCMSGCOLL.
    REFRESH I_BDCDATA.
ENDLOOP.
ENDFORM.                    " POPULATE_DATA
END-OF-SELECTION.
LOOP AT I_BDCMSGCOLL INTO WA_BDCMSGCOLL.
*& FORMATTING MESSAGES
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        ID   = WA_BDCMSGCOLL-MSGID
        LANG = WA_BDCMSGCOLL-MSGSPRA
        NO   = WA_BDCMSGCOLL-MSGNR
        V1   = WA_BDCMSGCOLL-MSGV1
        V2   = WA_BDCMSGCOLL-MSGV2
        V3   = WA_BDCMSGCOLL-MSGV3
        V4   = WA_BDCMSGCOLL-MSGV4
      IMPORTING
        MSG  = MESSG.
    IF WA_BDCMSGCOLL-MSGTYP = 'S'.                 "SUCCESS MESSAGE
      WA_SUCCESS-MESSG = MESSG.
      APPEND WA_SUCCESS TO I_SUCCESS.
    ELSE.
      WA_ERROR-MESSG = MESSG.                      "ERROR MESSAGE
      APPEND WA_ERROR TO I_ERROR.
    ENDIF.
    ENDLOOP.
*& DOWNLOADING THE SUCCESS RECORD
   CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
       FILENAME                        = SUU_FILENAME
       FILETYPE                        = 'ASC'
     WRITE_FIELD_SEPARATOR           = ' '
     TABLES
       DATA_TAB                       = I_SUCCESS.
     FIELDNAMES                      =
*& DOWNLOADING THE ERROR RECORD
CALL FUNCTION 'GUI_DOWNLOAD'
   EXPORTING
     FILENAME                        = ERR_FILENAME
    FILETYPE                        = 'ASC'
   WRITE_FIELD_SEPARATOR           = ' '
   TABLES
     DATA_TAB                        = I_ERROR.
   FIELDNAMES                      =
*&      Form  GET_FILEPATH
      text
     -->P_P_SRCFIL  text
FORM GET_FILEPATH  USING    P_P_SRCFIL LIKE RLGRAP-FILENAME.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME  = SYST-REPID
      DYNPRO_NUMBER = SYST-DYNNR
      FIELD_NAME    = 'P_P_SRCFIL'
    CHANGING
      FILE_NAME     = P_P_SRCFIL.
   EXCEPTIONS
     OTHERS        = 2.
IF SY-SUBRC = 2.
   CLEAR P_P_SRCFIL.
ENDIF.
ENDFORM.                    " GET_FILEPATH
*&      Form  UPLOAD_DATA
      text
     -->P_FILE_NAME  text
FORM UPLOAD_DATA  USING    P_FILE_NAME TYPE STRING.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME            = P_FILE_NAME
      FILETYPE            = 'ASC'
      HAS_FIELD_SEPARATOR = 'X'
    TABLES
      DATA_TAB            = I_XD01
    EXCEPTIONS
      FILE_OPEN_ERROR     = 1
      BAD_DATA_FORMAT     = 8.
  IF SY-SUBRC <> 0 .
    MESSAGE I000(ZGEMSCONV) .
ELSEIF SY-SUBRC = 8.
    MESSAGE E002(ZGEMSCONV).
ENDIF.
ENDFORM.                    " UPLOAD_DATA
*&      Form  bdc_dynpro
      text
     -->P_0551   text
     -->P_0552   text
FORM BDC_DYNPRO  USING   PROGRAM LIKE BDCDATA-PROGRAM DYNPRO LIKE BDCDATA-DYNPRO.
  CLEAR WA_BDCDATA.
  WA_BDCDATA-PROGRAM  = PROGRAM.
  WA_BDCDATA-DYNPRO   = DYNPRO.
  WA_BDCDATA-DYNBEGIN = 'X'.
  APPEND WA_BDCDATA TO I_BDCDATA.
ENDFORM.                    " bdc_dynpro
*&      Form  bdc_field
      text
     -->P_0606   text
     -->P_0607   text
FORM BDC_FIELD  USING   FNAM LIKE BDCDATA-FNAM  FVAL TYPE ANY  .
  CLEAR WA_BDCDATA.
  WA_BDCDATA-FNAM = FNAM.
  WA_BDCDATA-FVAL = FVAL.
  APPEND WA_BDCDATA TO I_BDCDATA.
ENDFORM.                    " bdc_field
reward if usefull,
thanks and regards.

Similar Messages

  • Can any one explain me the relation between BDC and reports events?

    hi experts.....
    can any one explain me the relation between BDC and reports events? we are using report events in BDC programmes why?\
    Is reports events occurs in each and every concept in ABAP i.e creating custom idocs, smart forms, sap scripts, dialog programmes, module pool technics?
    thanks in advance

    The forums are expert forums. So the first thing I would do is change your name.
    It's like entering a grand prix in a car with a "Student Driver" sign.
    Rob

  • Need programs related to Euro conversion

    Hi Moderator/ Friends
    I have checked in the SDN Network for the programs related to Euro conversion. I am unable to get these programs.
    Can you provide me path, where can I get programs need to be changed for Currency changeover from SKK to EURO for GL/AR/AP/Bank/Asset/Spl GL Areas?
    Please do help me.
    Thanks in advance.
    Thanks
    Chandra

    Hi Chandra,
    Currencies are maintained in table TCURR.(T.Code OB08).
    Please also have a look at program FAGL_FC_VALUATION.
    Thanks
    Aravind

  • Program related ENHANCEMENT-POINT/SECTION with the name LMEPOF8D_02 exists

    Hello
    In an upgrade, after finishing with the SPAU task we got the following error in the standard object LMEPOF8D:
    A program related ENHANCEMENT-POINT/SECTION with the name "LMEPOF8D_02" already exists.
    Anyone knows which cause could be generate this kind of error?
    Thanks in advance for your help
    Best Regards,
    Leonardo

    Hello Sandra,
    We have finished with SPAU. Regarding LMEPOF8D include, we kept with the ECC6 standard code. Therefore, from a point of view of code, it should be ok. However, we have this sintax error.
    As you said, the include contains the enhancement point LMEPOF8D_02 which generates the sintax error, but we couldn't find if this enhancement is used in another place.
    We also found note 1331844 and tried to fix the issue by using the 2nd solution propose in the note. But, it didn't work neither.
    Do you have any idea about what cause could generates this error?
    Thanks in advance for your support.
    Best Regards,
    Leonardo

  • 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.

  • Program To Update BDC Session Status in SM35

    Existing Process : Currently we create orders using a function module which internally uses BDC Session method for transaction VA01. If the session ran successfully then we check the status and use SAVE_TEXT to upload the long text for the order. But in some cases the order fails. Then the session will be errored out in SM35 and user runs the session manually and fixes the problem and post order. So the text cannot be uploaded now as the user ran the session manually. So I wrote a Z program to run the session using program RSBDCCTU which the runs the session in forground and get the text from memory which I exported to memory while initial transaction and upload it using SAVE_TEXT after the session ran successfully. This program works fine.
    Problem : After running my Z program the order is posted and text is uploaded but the session is still in error status in SM35. The standard program RSBDCCTU just runs the session in foreground but does not update the status.
    Is there any other way we can do this or any other standard programs available to update the status of the session.
    Any help will be appreciated.

    How are you importing text in the z program, which is exported in the function module? they are totally unrelated internal sessions.
    You can as well import text and use SAVE_TEXT using user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ after executing the error session in SM35, you don't need a Z program.
    Use condition SY-BINPT = 'X' and  T180-TRTYP = 'H' in the user exit to process SAVE_TEXT.
    Regards
    Sridhar

  • Question related to BDC for XD01

    I created a bdc program from the sample recording which I did using xd01. Basically, I am trying to transfer customer records from a text file on my computer to sap using xd01.
    The bdc_data text file which I use in the below code contains data of the form:
    0005     5120000004     samplename     samplesearch     chicago      60606     us     en
    (all are separated by tabs)
    I am also attaching the code below. I executed the program and created session, then went to sm35, chose the session and F8 in 'display error' mode. Then I am getting a message for XD01 transaction as #5120000004#SAMP in customer field and error message 'Account number incorrect. please check the entry'. Am I doing anything wrong with the way I wrote those customer records in the text file using tabs? Please help. Thanks.
    The code is below:
    REPORT Z_XD01_AUGPROGRAM
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES: KNA1.
    INCLUDE BDCRECX1.
    DATA: BEGIN OF BDC_DATA OCCURS 0.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDC_DATA.
    DATA:
    BEGIN OF ITAB OCCURS 0,
          KTOKD LIKE RF02D-KTOKD,
         KUNNR LIKE RF02D-KUNNR,
         NAME1 LIKE KNA1-NAME1,
           SORTL LIKE KNA1-SORTL,
         ORT01 LIKE KNA1-ORT01,
           PSTLZ LIKE KNA1-PSTLZ,
           LAND1 LIKE KNA1-LAND1,
         SPRAS LIKE KNA1-SPRAS,
    END OF ITAB.
    START-OF-SELECTION.
      CLEAR BDC_DATA.
      REFRESH BDC_DATA.
      PERFORM LOAD_DATA USING 'C:\BDC\BDC_DATA.TXT'.
      PERFORM OPEN_GROUP.
      LOOP AT ITAB.
        PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0100'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'RF02D-KTOKD'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM BDC_FIELD       USING 'RF02D-KTOKD'
                                       ITAB-KTOKD.
        PERFORM BDC_FIELD       USING 'RF02D-KUNNR'
                                      ITAB-KUNNR.
        PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0110'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'KNA1-SPRAS'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM BDC_FIELD       USING 'KNA1-NAME1'
                                      ITAB-NAME1.
        PERFORM BDC_FIELD       USING 'KNA1-SORTL'
                                      ITAB-SORTL.
        PERFORM BDC_FIELD       USING 'KNA1-ORT01'
                                      ITAB-ORT01.
        PERFORM BDC_FIELD       USING 'KNA1-PSTLZ'
                                      ITAB-PSTLZ.
        PERFORM BDC_FIELD       USING 'KNA1-LAND1'
                                      ITAB-LAND1.
        PERFORM BDC_FIELD       USING 'KNA1-SPRAS'
                                      ITAB-SPRAS.
        PERFORM BDC_DYNPRO      USING 'SAPMF02D' '0120'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'KNA1-TXJCD'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=UPDA'.
        PERFORM BDC_TRANSACTION USING 'XD01'.
      ENDLOOP.
      PERFORM CLOSE_GROUP.
    *&      Form  load_data
          text
         -->P_0076   text
    FORM LOAD_DATA  USING    VALUE(P_0076).
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = 'C:\BDC\BDC_DATA.TXT'
         FILETYPE                       = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          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
      OTHERS                        = 17
      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.                    " load_data

    It is working out pretty well with Anil's suggestion but still there is a minor problem. While transferring records, for each record, it is showing error message just for language (spras) field (remaining all fields are getting updated correctly). The value in the language field says 'e' (even though in the text file it is written correctly as 'en').
    Any idea why it is showing error like this even though it is written well in text file?
    Yes, srinivas. I seperated each reading in the text file columnwise by tabs and new records come in a different row.
    Thanks for your input.

  • Prob. related to BDC

    i am wroking in the program in which two BDC are run . i give the pushbutton in programe named "move to next" .when i execute the programe and put the obligatory field .
    after that i press enter button then next screen appear i continuousely press the enter button the values are appear cont. . and a next screen is appear . now my prob. is that i want that when BDC posted it terminated futher pressing enter it can not take any value . and when i press pushbutton then next screen is appear.

    Hi Pankaj,
    If you are creating a program using SHDB recording, there is option available "Continue after commit" in SHDB... Tick this checkbox before recording and then create your recording. Transfer recording to code after that.
    Regards,
    Mohaiyuddin

  • What is "Arrow" and how does this programs relate to Windows/BootCamp?

    Hi Everyone,
    On the following YouTube video:
    http://www.youtube.com/watch?v=DxMFCksO0Ps
    When he is talking of the official bootcamp support, he mentions Arrow and other programs alike.
    Could someone inform me of these programs and what their roles are?
    Thanks
    Helooooo

    Hi,
    sounds to me like he's talking about the 'Eye Candy' stuff of Windows 7.
    http://www.windows7home.net/how-to-remove-the-arrows-on-the-desktop-shortcut-in- windows-7/
    But then again I might be wrong.
    Regards
    Stefan

  • Clarification relating to BDC for MD61 transaction

    Hi,
        Did  any one made any development for MD61 transaction. I am planning to do an BDC for upload of planning data
    for the different periods and for different materials. DId any one found any complexities in this development and
    how it is suggestible.
      I am planning to bring sales quotation data and upload as demand in MD61
    Regards
    madan

    Hi,
        Sales quotations are the proposals & their is not any reference of delivery date that we could take as production finish date i.e material availablity/ promising date in demand manangement.
        So, you need to rethink on quotation data & try to fix peiod either month or week or day that could reduce development complexity.
    Rgd,
    Chetan

  • Related to bdc

    hai,
    what is the difference between call transaction and batch i/o in bdc
    with regards ,
    ramnaresh

    Hi,
    SESSION METHOD
    1.This is synchronous method.
    2. Larger amount of data can transfer using this method.
    3.It is slowest method compare than Call Transaction.
    4.Automatically error log will create.
    5. Session will create so we can run any of the time.
    CALL TRANSACTION
    1.This Synchrounus and ASynchrounus Process.
    2. Small amount of data can transfer using this method.
    3. It is fastest method compare than Call transaction method.
    4.Error log will not create, we should store errors in one internal table using 'BDCMSGCOLL' structor.
    5. No session well create, directly it will store in standard table.
    IF USEFULL REWARD

  • Transport and Program Relation Database table

    Hello,
    From which database table we can find program and its active transport request details?
    I need to check all Z programs requests from DEV to PRD.
    Thanks,
    Krishna.

    hi,
    you can see
    E070 -Header of Requests/Tasks
    E071- Object Entries of Requests/Tasks
    refer transactions SE01 and SE09 .
    thanks

  • Problem related to bdc

    Hi,
    All,
    I am creating bdc for T-code  CA01 (routing). I have done recording for 1 line item. data is uploading through excel for 1 line item in table control.  but i want to upload data more than 1 line item in table control . so how i need to do to upload next line .
    Please help me.
    Thanks.
    Saurabh
    Moderator message: please use a more descriptive subject line next time (you were asked before).
    Edited by: Thomas Zloch on May 3, 2010 9:19 PM

    Hi,
    for multiple data you have to perform loop for that data.
    see the code for help
            DATA : fnam(20) TYPE c,
                       idx1      TYPE c.
            MOVE 1 TO idx1.
    loop itab.
              CONCATENATE 'RC68A-VGEXX(' idx1 ')' INTO fnam.
              PERFORM bdc_field       USING fnam
                                            itab-vgexx .
              idx1 = idx1 + 1.
    endloop.
    hope it will solve you problem.

  • Issue related to BDC for ME52

    Hi,
    I'm trying to create a BDC for ME52 by SHDB transaction. My requirement is to delete Service Items of a specific Purchase Requisition Item.
    I've noticed that the behavior of the ME52 by using SHDB is not the same regarding its direct execution. The called screens is different.
    Does anyone know why does that happen?
    Thanks in advance,
    Tiago.

    Hi,
    When SHDB record is created, it's displayed the option "No BI mode". When that option is chosen, the sequence of the necessary screens to delete the service items is run, but the bdc mapping generated is quite strange. FVAL fields are filled with subscreen names only.
    When ME52 is executed, the sequence of the screens is: 1) Purchase Requisition Number, 2) Purchase Requisition Items and 3) Service Items. From this one it's only necessary to click on the Button ' - ' to delete the service item. However, when I try to do it by SHDB, The button ' - ' calls another screen.
    Any help is welcome.
    Thanks in advance.
    Tiago.

  • A few problems both programming related and IDE related

    Hi, Folks
    I don't post often but I've got some things going on that I've spent more time trying to figure out and straighten out than it would have taken me to write a desktop app.
    My first issues are with VWD 2013 Express. It's constantly throwing exceptions, crashing and losing my images. The only constant is that when firing it up I get an exception(or two) complaining about CSSStyles, etc. According to the logs, nothing untoward
    has happened. The logs report success on everything. In addition, it will throw exceptions with me simply sitting there and not attempting any operations. On top of that, I can be looking at the source code for my Master Page and switch to Design View and
    it's lost all the images. Closing out and restarting restores them but it's only a matter of time before it happens again. I've tried repair on it as well as uninstalling and reinstalling it to no avail. If I revert to 2012 none of this happens - at least
    that I've seen so far.
    In addition, there is something very off the wall happening. I have a side menu and a bottom menu controlled by separate XML files. The code follows:
    The XML sitemap files look like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
        <siteMapNode url="" title=""  description="">
            <siteMapNode url="~/About.aspx" title="About"  description=""/>
            <siteMapNode url="~/Contact.aspx" title="Contact"  description=""/>
        </siteMapNode>
    </siteMap>
    That one is for my bottom menu.
    The side menu site map file looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
        <siteMapNode url="" title=""  description="">
          <siteMapNode url="~/index.aspx" title="Home"  description="" />
          <siteMapNode url="~/DotNet/DotNetApps.aspx" title="DotNet"  description="">
            <siteMapNode url="~/DotNet/CommercialApps/DotNetCommercialApps.aspx" title="Commercial Apps" description="">
              <siteMapNode url="~/DotNet/CommercialApps/DotNetDesktopApps.aspx" title=".NET Desktop Apps"  description=".NET Desktop Apps"/>
              <siteMapNode url="~/DotNet/CommercialApps/DotNetForexApps.aspx" title=".NET Forex Apps"  description=".NET Forex Apps"/>
            </siteMapNode>
            <siteMapNode url="~/DotNet/Demo Apps/DotNetDemoApps.aspx" title=".Net Demo Apps" description=""/>
          </siteMapNode>
          <siteMapNode url="~/FOREX/Forex.aspx" title="FOREX" description="">
            <siteMapNode url="~/FOREX/Commercial Apps/ForexCommercialApps.aspx" title="Commercial Apps" description=""/>
            <siteMapNode url="~/FOREX/Demo Apps/ForexDemoApps.aspx" title="Demo Apps" description=""/>
          </siteMapNode>
          </siteMapNode>
    </siteMap>
    On an active page the menus behave and look as they should. The relevant section of the Web.config file looks like this
     <siteMap defaultProvider="SideMenuSiteMapProvider">
          <providers>
            <add name="SideMenuSiteMapProvider"  type="System.Web.XmlSiteMapProvider" siteMapFile="~/web.sitemap" />
            <add name="BottomMenuSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="~/BottomMenu.sitemap" />
          </providers>
        </siteMap>
    and the Master Page aspx code looks like this:
    <div id="NavColumn">
                    <div class="Liner">
                        <div class="ItemCenter">
                         <h4>Site Navigation</h4>
                        </div>
                        <div id="SideMenu" class="Navigation">
                            <asp:SiteMapDataSource ID="SideMenuDataSource" runat="server" ShowStartingNode="False" SiteMapProvider="SideMenuSiteMapProvider"/>
                            <asp:Menu ID="SMenu" runat="server" DataSourceID="SideMenuDataSource" SkipLinkText="">
                            </asp:Menu>
                        </div> <!-- end Navigation -->
                    </div> <!-- End Liner -->
             </div> <!-- end NavColumn -->
            <div id="Footer">
                <div class="Liner">
                    <div id="BottomMenu" class="ExtraNav">
                        <asp:SiteMapDataSource ID="BottomMenuDataSource" runat="server" ShowStartingNode="false" SiteMapProvider="BottomMenuSiteMapProvider" />
                        <asp:Menu ID="BMenu" runat="server" DataSourceID="BottomMenuDataSource" MaximumDynamicDisplayLevels="0" Orientation="Horizontal" SkipLinkText="">
                        </asp:Menu>
                    </div> <!-- End of ExtrNav -->
                    <br />
                    <div class="ItemCenter">
                        <span>Copyright © 2014 White Wolf Custom Software</span>
                    </div>
                    <div class="ItemCenter">
                        <span>All Rights Reserved</span>
                    </div>
                </div> <!-- End of Liner -->
            </div> <!-- End of Footer -->
    It all looks like it should be good to go, yeah? Wrong. In the IDE the side menu looks right but the bottom menu displays the side menu items. This happens in both 2012 and 2013. If I run the site, everything shows up where it should and works as it should
    - with one very major problem. I have a Contact Us page that accepts a user's info and sends an email to my site email. If the send succeeds, I throw up an alert from the server side informing the user that the email has been successfully sent. The problem
    is that it seems to start a postback - which I can't see why throwing the alert up would trigger - and appears to get "stuck" halfway through and completely screws up the display. The side menu has slide out menus that are rendering laid over top
    of one another and the "main" menu - which absolutely looks like crap - it's displaying all of them at once, which makes no sense. If I hit OK on the alert it appears to finish the "postback" and things are displayed the way they should
    be.
    If you would like to see what I'm talking about as far as the site behavior goes, check out http://www.whitewolfcustomsoftware.com, navigate to the Contact Us page and send an email message and you will see the behavior I'm talking about. I've been fighting
    with this for a week and a half and finally decided it was time to run for some help. If anyone has any insights or suggestions I would be most appreciative. If you visit my site, you'll see that this is a serious business site. I have to get this figured
    out and working correctly.
    I will be most appreciative if anyone can steer me in the right direction. If I can't get this straightened out I'm going to make myself look like a fool by advertising myself as a custom developer.
    Jeff AKA "Prof"

    How is this related to Application Insights (AI)?
    I didn't know exactly where to put this. None of the categorical choices seemed to fit. I expected that if this is wrong place for this someone would suggest the proper category - not get smart with me. As developers we should be here helping each other.
    I've reposted this elsewhere . I would have simply moved it but I don't see a way to do that nor to simply delete the thread.
    Sergei, you'll have to admit that the categorizations and sub-categorizations are a bit convoluted and don't always seem to reflect the spirit of the post you're attempting to make. Let's not get into a battle with each other here. I see no point to it.
    Jeff AKA "Prof"

Maybe you are looking for

  • Exporting as an .FLV movie ??? Works from native QT but NOT FCP QT options

    I have Flash 8 + the video encoder and FCP 5.1.4 on my Mac. When using Quicktime independently I can export as an FLV. However when exporting from FCP (using Quicktime) there's no option... Can anyone help, I know this is possible because we have the

  • How to keep a progress bar

    Hi all,            I want to keep a progress bar to my views on each action.How  to keep that?? Can anyone plz help me out Regards Padma N

  • QM for Pipe line Material

    Hi Experts Scenario: We have water as Pipe line material. We have activated 89 inspection type & user is creating manual Inspection lot for the same. Since this is a Pipe line material, there will not be any PO, GR so no inspection lot at GR. We do t

  • How to configure Webgate let the Webgate works on HTTPS?

    Hi, How to configure Webgate let the Webgate access the OAM challenge URL on HTTPS protocol? Thanks,

  • How to avoid reset pagination prompt

    All, Sometimes when i call my IR it doesn't paginate automatically but shows the link "reset pagination" now is there a what to all the time have the pagination and avoid this prompt link? any help on this is appreciated....regards.