BDC Problem : Tcode : F-30

Hi All,
BDC Problem :
Iam working with Tcode : F-30.
Iam able to post the the document in  All (A) screen mode
But Iam unable to post the  document in  No (N) screen mode
Please let me know how to solve this issue
Thanks
Sunil

HI,
R u getting any errors while creating using 'A'.
If not then use commit work after BDC.
Thanks

Similar Messages

  • Problem with uploading data from excel using BDC for tcode f-02

    Hi All,
    I am uploading data from excel using BDC for tcode f-02. The problem here is, while recording, the values of some fields are recording twice. I dont know why it's happening so. But if I run my abap program, I have to give those fields twice in my excel sheet. Otherwise data does not upload. But it is not the feasible way. We must give those fields once in excel. Please tell me, how I can solve the issue.
    With regards,
    Rosaline.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • Problem in BDC for TCode S_ALR_87013620

    Hi Gurus,
    I have recorded the BDC for TCode S_ALR_87013620.
    Executed the report S_ALR_87013620 by providing necessary details.
    Displays the report and then clicked on Report-> Print -> PrinterNa
    But when I execute through program it does not work. UNable to view Screens for Report-> Print->Printername
    screens.

    Hi   Praveen Kumar  
    Go TCode S_ALR_87013620
    In Program --> execute and print (Shift+f1)
    this will execute and print your report..
    i think ....no need BDC for printing  i guess.....
    Thanks
    Ramesh

  • BDC for TCODE F150

    Hi Friends,
    I am facing problem while developing BDC for tcode F150. The last action i.e. scheduling for particular dunning date is not getting executed in my BDC.
    I am also pasting the end part of my BDC recording. Please review it and advise.
    PERFORM bdc_dynpro      USING 'SAPLF150_JOBS' '1000'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'F150V-STRZT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=JOBS'.
      PERFORM bdc_field       USING 'F150V-STRDT'
                                    rdate.
      PERFORM bdc_field       USING 'F150V-XSTRF'
                                    'X'.
        select single SPLD into p_out from USR01 where bname = sy-uname.
      perform bdc_field       using 'ITCPO-TDDEST'
                                     p_out.
      CALL TRANSACTION 'F150'
    Thank you,
    Swapnil
    Edited by: Swapnil Tawade on Sep 22, 2008 3:15 PM

    Hi,
       If u want it for  some specific plants then before populating data  to bdcdata internal table  check the conditions for which the plant fields required values to be passed  and if the condition is satisfied then pass the plant field to bdcdata table . If the condition is not satisfied then dont pass that plant field to bdcdata table bcoz  if  u r not passing any field to bdcdata table then that field is going have default values.
    Regards,
    Shafi

  • Fs00 bdc problem in ticking checkbox fields

    Hello All,
    I have written bdc for tcode FS00 for gl master record upload but im getting error while uploading.
    In flat file i have putted value 'x' for posting without tax allowed, manage in local currency,open item and line item but when im running a bdc the checkboxes are getting checked but im getting the error "enter a valid value"
    If i create every account manually and tick the checkbox thn its not giving error but in bdc program if i m putting tick in checkbox im getting error
    Pls let me knw is there any other value of checkbox other thn 'x'?
    Thnks
    Sunny

    hi Sunny,
    just rin the BDS in mode A (show all screens) or E (stop at error), so that you'll see what is exactly the problem. I assume the problem is somewhere else (not by the checkboxes), for another field you enter a wrong value, which is not accepted by the system. Just check, where the cursor is placed, right after the error message!
    hope this helps
    ec

  • Error in BDC for tcode fbcj

    Hello Everyone,
    I am working on bdc for tcode fbcj.
    I have done recording through shdb only till saving of a row and not posting of document as per requirement.
    Now the Problem I am facing is that through BDC I am able to enter transaction , do the data entry and then the regular message saying vendor 10000001 is subject to withholding tax. After getting this message The whole record row gets disappered. So I am not able to do the data entry through BDC.
    Please I request you all to help me in this regard.
    Thanks,
    Pranil Shinde.

    hi,
          First of all go to FK03 and give the vendor name and company code and tick mark
    Withholding Tax and then enter.
    Here you need to maintain the withholding tax information. To do that take the help of FI Consultant. and then execute FBCJ transaction. I hope you can resolve your issue.
    Regards,
    Kasuladevi

  • BDC problem with F-30

    Hi All,
    I want to record a BDC for F-30 to clear the deduction line items for a Document. These deduction line items have a "Reason code" with it... When I select a Document Number in F-30, it displays all the line items in a table control.. I need to select and clear only those items with "Reason code" in that...
    How can I select a line item from the table control and clear it based on the reason code in a BDC?
    I have looked at the previous posts... I have seen a solution provided by filling the structure BSELP. How this can be included in the program and how to fill the values... Is there any limit for the values to get it filled?.. Because I could see
    FELDN_1 to FELDN_18 in BSELP structure.....
    BDC problem in F-30
    BSELP-FELDN_1 = "BELNR"
    BSELP-SLVON_1 = "00002222221997003"
    How the rfbibl00 program works?
    Thanks for the help,
    Asha

    Hi,
        Use BAPI_PAYIT_POST_CLEARING
    or  FM POSTING_INTERFACE_CLEARING
    or
    try this code for transaction fb05:
    DATA: BEGIN OF bkey OCCURS   0,
            belnr LIKE bseg-belnr,
            gjahr LIKE bseg-gjahr,
            buzei LIKE bseg-buzei,
          END OF bkey.
    *Dynpro 122 - Header
        PERFORM bdc_dynpro USING 'SAPMF05A' '0122'.
        PERFORM bdc_field USING 'BKPF-BLDAT' agz-datum.
        PERFORM bdc_field USING 'BKPF-BLART' augblart.
        PERFORM bdc_field USING 'BKPF-BUKRS' htab-bukrs.
        PERFORM bdc_field USING 'BKPF-BUDAT' agz-datum.
        PERFORM bdc_field USING 'BKPF-WAERS' t001-waers.
        IF t003-xmref = 'X'.
          IF htab-xblnr <> space.
            PERFORM bdc_field USING 'BKPF-XBLNR' htab-xblnr.
          ELSE.
            PERFORM bdc_field USING 'BKPF-XBLNR' text-aag.
          ENDIF.
        ENDIF.
        UNPACK vorgang TO zeile.
        PERFORM bdc_field_loop USING zeile 'RF05A-XPOS1' 'X'.
        PERFORM bdc_field USING 'BDC_OKCODE'     'SL'.
        LOOP AT itab WHERE marked = 'X'.
    *Dynpro 0710 -
          PERFORM bdc_dynpro USING 'SAPMF05A' '0710'.
          PERFORM bdc_field USING 'RF05A-AGKON' agku-kunnr.
          PERFORM bdc_field USING 'RF05A-AGBUK' agku-bukrs.
          PERFORM bdc_field USING 'BDC_OKCODE'     'SLB'.         "ins
    *Dynpro 0733 - insert fi-document-nr.
          PERFORM bdc_dynpro USING 'SAPMF05A' '0733'.
          CLEAR:   zeile, cnt.
          LOOP AT htab WHERE agzif = agc-nr AND xfeld = 'X'
                        AND bukrs = agku-bukrs AND kunnr = agku-kunnr.
            CLEAR bkey.
            cnt = cnt + 1.
            UNPACK cnt TO zeile.
            PERFORM bdc_field_loop USING zeile 'RF05A-FELDN' 'BELNR'.
            MOVE-CORRESPONDING tab TO bkey.
            PERFORM bdc_field_loop USING zeile 'RF05A-SEL01'  bkey.
          ENDLOOP.
    <b>Reward points</b>
    Regards

  • FS00 BDC problem in marking checkbox

    Hello All,
    I have written bdc for tcode FS00 for gl master record upload but im getting error while uploading.
    In flat file i have putted value 'x' for posting without tax allowed, manage in local currency,open item and line item but when im running a bdc the checkboxes are getting checked but im getting the error "enter a valid value"
    If i create every account manually and tick the checkbox thn its not giving error but in bdc program if i m putting tick in checkbox im getting error
    Pls let me knw is there any other value of checkbox other thn 'x'?
    Thnks
    Sunny

    not what you want to hear, but why write your own BDC for FS00 when there is program RFBISA00 that does it all for you?
    You can nicely map source to target data using LSMW direct input object 0010.
    Cheers
    Thomas

  • How to write BDC for tcode F-32

    Hi Experts,
    How to write BDC for tcode F-32 .
    is it possible i recorded in SHDB BUT IF I AM DOING IT'S COMING WRONG .
    plz guide me sir.
    regars,
    Hari
    Edited by: hari311 on Oct 27, 2009 9:22 AM

    There might be that when u provide the data in the selction screen of F-32 and press process open items some custom program might be attached to it and gets executed...
    chek it out..
    if so..
    pass the bdcdata of the second screen into a memory id
    export t_bdcdata into v_memid.
    in that custoom report jus import this..
    then fill the t_bdcdata with the header information and call the transcation f-32..
    Edited by: imran khan on Oct 27, 2009 9:35 AM

  • Problem when recording the data using BDC for Tcode CJ02.

    Dear Experts,
    When i am trying to record the data for TCODE : CJ02 i need to enter the project  Definition and enter the WBS element it takes me to the screen then i should select the WBS element and attach a file for that selected WBS element . The option for me to attach the attachment of file  will be available on the application area(Services for the Object).
    Now the problem when i try to do recording in SHDB this option like create attachement is not visible in the recodring . Kindly suggest me what can i do such that i attach the file for the particular project def and WBS element.
    Either suggest any function module or other procedure .......
    Regards,
    Sana.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • BDC -Problem with mode 'N'

    Hi
    BDC with mode 'A'  is working correctly  but when I make the mode 'N' it gives a dump.
    With mode 'A' the record is updated , what may be the cause?
    Thanks

    I am using the tcode 7kE1 for bdc , it works perfectly with mode 'A' , but not with mode 'N', It give error  'Message_Type_Unknown' .
    there is no problem with the file as values are going correctly in tcode
    Edited by: Puneeta Parnami on Jun 12, 2009 12:57 PM

  • F-28 BDC problem when not debugging

    Hello friends,
    I have developed a BDC for the TCODE F-28 and everything works fine when i do in debug mode. NO problem at all. However when I do a no screen and if I am not debugging, it posts the invoice for one record and from second record on it fails.
    ANy suggestions as what could be the reason for this.
    Shreekant

    Try to give WAIT after the first record call. May this will help you out.

  • QM- Bdc Problem

    hi
    experts iam doing a bdc for change in qp02 ..inspection plan
    here i got a problem in this tcode i will enter
    matnr,werks,group, then i have to select the group counter and click the opeartion push button .i will get multiple characterstic i have to select one among them and goto inspection characterstic and again there are multiple charctersic and there among those one or
    two had to be changed .
    The problem is when  i enter to first screen ..i wil get grpc ,werks and usage that is from flat file ..but if there any multiple suppose1,2,3, but in file there is only 2 or 2 and 3 then iam not getting the logic to select 2 or 3 and got to operations .in operation for
    that material had aslo same problem mutiple operation how to select the particular operation number from file and goto characterstic.
    will be helpfull .
    if provide logic and example code .
    regards

    REPORT  zqmb_qp02.
    DATA: bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF itab OCCURS 0,
    *            test,
          matnr TYPE rc27m-matnr,
          werks TYPE rc27m-werks,
          sttag TYPE rc271-sttag,
          verwe TYPE plkod-verwe,
          statu TYPE plkod-statu,
          arbpl TYPE plpod-arbpl,
          steus TYPE plpod-steus,
          ltxa1 TYPE plpod-ltxa1,
          END   OF itab.
    DATA: lv_count(2) TYPE c VALUE 01.
    DATA: lv_data(20).
    DATA: BEGIN OF i_itab OCCURS 0,
    *            test,
          lv_formula,
          matnr TYPE rc27m-matnr,
          werks TYPE rc27m-werks,
          sttag(10),
          verwe TYPE plkod-verwe,
          statu TYPE plkod-statu,
          arbpl TYPE plpod-arbpl,
          steus TYPE plpod-steus,
          ltxa1 TYPE plpod-ltxa1,
          verwmerkm TYPE plmkb-verwmerkm,
          kurztext TYPE plmkb-kurztext,
          pmethode TYPE plmkb-pmethode,
          stichprver TYPE plmkb-stichprver,
          formel1(60)," TYPE plmkb-formel1,
          END   OF i_itab.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text_001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text_1_1.
    PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      text_001 = 'File path selection'.
      text_1_1 = 'File Path'.
    * At Selection Screen Event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_file.
    START-OF-SELECTION.
      PERFORM data_upload.
      IF i_itab[] IS NOT INITIAL.
        PERFORM open_group.
        REFRESH bdcdata.
        PERFORM bdcdata.
        PERFORM close_group.
      ENDIF.
    *&      Form  DATA_UPLOAD
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM data_upload.
      DATA: loc_filename TYPE string.
      loc_filename = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = loc_filename
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = i_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.                    " DATA_UPLOAD
    *        Start new screen                                              *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "BDC_DYNPRO
    *        Insert field                                                  *
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    "BDC_FIELD
    *&      Form  OPEN_GROUP
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM open_group .
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client = sy-mandt
          group  = 'QP01'
          user   = sy-uname
          keep   = 'X'.
    ENDFORM.                    " OPEN_GROUP
    *&      Form  CLOSE_GROUP
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM close_group .
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      CALL TRANSACTION 'SM35'.
    ENDFORM.                    " CLOSE_GROUP
    *&      Form  bdcdata
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM bdcdata .
      LOOP AT i_itab.
        itab-matnr = i_itab-matnr.
        itab-werks = i_itab-werks.
        itab-sttag = i_itab-sttag.
        itab-verwe = i_itab-verwe.
        itab-statu = i_itab-statu.
        itab-arbpl = i_itab-arbpl.
        itab-steus = i_itab-steus.
        itab-ltxa1 = i_itab-ltxa1.
        APPEND itab.
        CLEAR itab.
      ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM itab.
      CLEAR itab.
    *---->>> Insert Recording Here
      LOOP AT itab.
        REFRESH bdcdata.
        PERFORM bdc_dynpro      USING 'SAPLCPDI' '8010'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RC27M-MATNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RC27M-MATNR'
                                      itab-matnr.
    *                              'RAWMMMMMMMMMMMMMMM'.
        PERFORM bdc_field       USING 'RC27M-WERKS'
                                      itab-werks.
    *                              '2010'.
        PERFORM bdc_field       USING 'RC271-STTAG'
                                      itab-sttag.
    *                              '06.09.2008'.
        PERFORM bdc_dynpro      USING 'SAPLCPDA' '1200'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
    *  PERFORM bdc_field       USING 'PLKOD-PLNAL'
    *                                itab-plnal.
    **                              '1'.
    *  PERFORM bdc_field       USING 'PLKOD-KTEXT'
    *                                itab-ktext.
    *                              'Printing and Stationary'.
    *perform bdc_field       using 'PLKOD-WERKS'
    *                              '2010'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PLKOD-STATU'.
        PERFORM bdc_field       USING 'PLKOD-VERWE'
                                      itab-verwe.
    *                              '5'.
        PERFORM bdc_field       USING 'PLKOD-STATU'
                                      itab-statu.
    *                              '4'.
    *perform bdc_field       using 'PLKOD-LOSBS'
    *                              '99,999,999'.
    *perform bdc_field       using 'PLKOD-PLNME'
    *                              'EA'.
        PERFORM bdc_dynpro      USING 'SAPLCPDA' '1200'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=VOUE'.
    *  PERFORM bdc_field       USING 'PLKOD-KTEXT'
    *                                'Printing and Stationary'.
    *  PERFORM bdc_field       USING 'PLKOD-WERKS'
    *                                '2010'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PLKOD-STATU'.
    *  PERFORM bdc_field       USING 'PLKOD-VERWE'
    *                                '5'.
    *  PERFORM bdc_field       USING 'PLKOD-STATU'
    *                                '4'.
    *  PERFORM bdc_field       USING 'PLKOD-LOSBS'
    *                                '99,999,999'.
    *  PERFORM bdc_field       USING 'PLKOD-PLNME'
    *                                'EA'.
        PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PLPOD-LTXA1(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'PLPOD-ARBPL(01)'
                                      itab-arbpl.
    *                                'qclab'.
        PERFORM bdc_field       USING 'PLPOD-STEUS(01)'
                                      itab-steus.
    *                                'qm01'.
        PERFORM bdc_field       USING 'PLPOD-LTXA1(01)'
                                      itab-ltxa1.
    *                                'TESTING'.
        PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PLPOD-VORNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=QMUE'.
        PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                      '1'.
        PERFORM bdc_field       USING 'RC27X-FLG_SEL(01)'
                                      'X'.
        LOOP AT i_itab WHERE matnr = itab-matnr
                         AND werks = itab-werks
                         AND steus = itab-steus   "CONTROL KEY
                         AND ltxa1 = itab-ltxa1.    "DESCRIPTION
          PERFORM bdc_dynpro      USING 'SAPLQPAA' '0150'.
          CONCATENATE 'PLMKB-STICHPRVER(' lv_count ')' INTO lv_data.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        lv_data.
    *                                    'PLMKB-STICHPRVER(01)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          CONCATENATE 'PLMKB-VERWMERKM(' lv_count ')' INTO lv_data.
          PERFORM bdc_field       USING lv_data
                                        i_itab-verwmerkm.
    *                                  'flange'.
          CONCATENATE 'PLMKB-KURZTEXT(' lv_count ')' INTO lv_data.
          PERFORM bdc_field       USING lv_data
                                        i_itab-kurztext.
    *                                  'FLANGE CUSTOMER MOUNTING SEAT DIA'.
          CONCATENATE 'PLMKB-PMETHODE(' lv_count ')' INTO lv_data.
          PERFORM bdc_field       USING lv_data
                                        i_itab-pmethode.
    *                                  '10000000'.
          CONCATENATE 'PLMKB-STICHPRVER(' lv_count ')' INTO lv_data.
          PERFORM bdc_field       USING lv_data
                                        i_itab-stichprver.
    *                                  'FIXED-1'.
          PERFORM bdc_dynpro      USING 'SAPLQPAA' '1501'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENT1'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'PLMKB-VERWMERKM'.
          PERFORM bdc_field       USING 'PLMKB-VERWMERKM'
                                        i_itab-verwmerkm.
    *                                  'FLANGE'.
          PERFORM bdc_field       USING 'PLMKB-QPMK_WERKS'
                                        i_itab-werks.
    *                                  '2010'.
          PERFORM bdc_field       USING 'PLMKB-PMETHODE'
                                        i_itab-pmethode.
    *                                  '10000000'.
          PERFORM bdc_field       USING 'PLMKB-QMTB_WERKS'
                                        i_itab-werks.
    *                                  '2010'.
          PERFORM bdc_dynpro      USING 'SAPLQPAA' '1502'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENT1'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'PLMKB-PMETHODE'.
          PERFORM bdc_field       USING 'PLMKB-PMETHODE'
                                        i_itab-pmethode.
    *                                  '10000000'.
          PERFORM bdc_field       USING 'PLMKB-QMTB_WERKS'
                                        i_itab-werks.
    *                                  '2010'.
          PERFORM bdc_dynpro      USING 'SAPLQPAA' '1502'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENT1'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'PLMKB-PMETHODE'.
          PERFORM bdc_field       USING 'PLMKB-PMETHODE'
                                        i_itab-pmethode.
    *                                  '10000000'.
          PERFORM bdc_field       USING 'PLMKB-QMTB_WERKS'
                                        i_itab-werks.
    *                                  '2010'.
          IF i_itab-lv_formula IS NOT INITIAL.
            PERFORM bdc_dynpro      USING 'SAPLQPAA' '1522'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'PLMKB-FORMEL1'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=ENT1'.
            PERFORM bdc_field       USING 'PLMKB-FORMELSL'
                                          'X'.
            PERFORM bdc_field       USING 'PLMKB-FORMEL1'
                                          i_itab-formel1.
    *                              'c010'.
          ENDIF.
          lv_count = lv_count + 1.
        ENDLOOP.
        lv_count = 01.
        PERFORM bdc_dynpro      USING 'SAPLQPAA' '0150'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RQPAS-ENTRY_ACT'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=QMBU'.
        PERFORM bdc_field       USING 'RQPAS-ENTRY_ACT'
                                      '1'.
    *    ENDLOOP.
        PERFORM bdc_insert.
      ENDLOOP.
    ENDFORM.                    " bdcdata
    *&      Form  bdc_insert
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_insert.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode     = 'QP01'
        TABLES
          dynprotab = bdcdata.
    ENDFORM.                    " bdc_insert
    Edited by: PRAKASH VARUN on Apr 18, 2009 1:36 PM

  • Change transaction using BDC-problem for large number of lines on screen

    Hi All,
    I am developing BAPI (using BDC) which creates quality notification in SAP which is entered via front end web application. Structure p_qmsm contain 3 lines of task in notification. The code is as given below. To avoid problem of large no of lines on screen,code lines starting with * is used. This actually for pagedown after entering every 2 lines and creates new line. so that 2 lines always push up on screen and there will not be problem for creating large no of lines on screen
    perform bdc_dynpro using 'SAPLIQS0' '7200'.
    perform bdc_field using 'BDC_OKCODE' '=10\TAB11'.
    LOOP AT p_qmsm INTO wa_qmsm.
    *IF wa_qmsm_cntr > 2.
           wa_qmsm_cntr = 2.
           perform bdc_dynpro  using 'SAPLIQS0'                   '7204'.
           perform bdc_field   using 'BDC_OKCODE'                 '=PEND'.
    ENDIF.
    perform bdc_dynpro using 'SAPLIQS0' '7204'.
    perform bdc_field using 'BDC_OKCODE' '/00'.
    CONCATENATE 'VIQMSM-QSMNUM(' wa_qmsm_cntr ')' INTO wm_qmsm_qsmnum.
    CONCATENATE 'VIQMSM-MNGRP(' wa_qmsm_cntr ')' INTO wm_qmsm_mngrp.
    CONCATENATE 'VIQMSM-MNCOD(' wa_qmsm_cntr ')' INTO wm_qmsm_mncod.
    CONCATENATE 'VIQMSM-MATXT(' wa_qmsm_cntr ')' INTO wm_qmsm_matxt.
    perform bdc_field using wm_qmsm_qsmnum wa_qmsm-qsmnum.
    perform bdc_field using wm_qmsm_mngrp wa_qmsm-mngrp.
    perform bdc_field using wm_qmsm_mncod wa_qmsm-mncod.
    perform bdc_field using wm_qmsm_matxt wa_qmsm-matxt.
    wa_qmsm_cntr = wa_qmsm_cntr + 01.
    ENDLOOP.
    CALL TRANSACTION 'IQS2' USING wt_bdc
    MODE 'N' UPDATE 'A'  MESSAGES INTO P_MESSTAB.
    The same code is used in modify mode also. web application is sending all 3 lines in modify mode even if single line is modified. It is already decided to send all rows back from web application to SAP in same sequence. It is working fine if i comment 5 lines which is starting with *. But in modify mode, how can i ensure that correct row is modified? and how can i achieve problem of large no of lines on screen?Please suggest?

    Hi yogesh,
    how can i ensure that correct row is modified?
    1. For this we need to know two things ;
       a) the database table in which the entries are already stored
       b) the sequence in which they are displayed in the transaction.
    2. So before changing any line, we need to compare (the primary key values / important values)
       a) as per the database table and as per the incoming data from web application (using bapi)
      b) if the match is ok, it means that particular row was not modified, else modified.
    how can i achieve problem of large no of lines on screen?
    1. For this I am  not sure about the transaction and its screen. Manytimes for appending row on the screen,
      there is a PLUS + button on the grid toolbar. So for every entry, (inspite of some empty/filled rows already visible on the screen), we should use the + button, and this new row always appears on the top i.e. row number 1.
    hope this helps.
    regards,
    amit m.

  • F-32 Transaction BDC Problem

    Hi All,
           I am following the below procedure to populate the transaction F-32 using BDC but I have a small doubt:
    1) I go to F-32 Transaction code populate the required fields on that and press F5
    2) It takes to second screen which has three fields as Field in which I am populating BELNR, second field is Lower Limit field which has a value combination of year document type document number, third field is left blank.
           Now I need to Clear Only part of the second field say for example year part.
          How can I do that? Has anyone faced this kind of problem if so Please reply back.
    Thanks & Regards,
    Joseph Reddy.
    Message was edited by: Joseph Reddy Yeruva

    Hi Rob,
           This is how the code is written
          PERFORM bdc_dynpro      USING 'SAPMF05A' '0131'.
          PERFORM bdc_field       USING:
                               'BDC_CURSOR'  'BKPF-WAERS',
                               'BDC_OKCODE'  '=SLB',
                               'RF05A-AGKON' p_kunnr,
                               'BKPF-BUDAT'  lv_date,
                               'BKPF-MONAT'  '11',
                               'BKPF-BUKRS'  p_bukrs,
                               'BKPF-WAERS'  gv_waers.
                               'RF05A-XNOPS' c_x.
          perform bdc_dynpro      using 'SAPMF05A' '0733'.
          perform bdc_field       using 'BDC_CURSOR' 'RF05A-                                     SEL01(01)'.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=PA'.
          perform bdc_field       using 'RF05A-FELDN(01)'
                                          'BELNR'.
          perform bdc_field       using 'RF05A-FELDN(02)'
                                        record-FELDN_02_008.
          perform bdc_field       using 'RF05A-FELDN(03)'
                                        record-FELDN_03_009.
          perform bdc_field       using 'RF05A-FELDN(04)'
                                        record-FELDN_04_010.
          perform bdc_field       using 'RF05A-SEL01(01)'
                                         lv_belnr.
          perform bdc_field       using 'RF05A-SEL01(02)'
                                        record-SEL01_02_012.
          perform bdc_field       using 'RF05A-SEL01(03)'
                                        record-SEL01_03_013.
          perform bdc_field       using 'RF05A-SEL01(04)'
                                        record-SEL01_04_014.
          perform bdc_dynpro      using 'SAPDF05X' '3100'.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=OMX'.
          perform bdc_field       using 'BDC_CURSOR'
                                        'DF05B-PSSKT(01)'.
          perform bdc_field       using 'RF05A-ABPOS'
                                          '001'.
          perform bdc_dynpro      using 'SAPDF05X' '3100'.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=Z+'.
          perform bdc_field       using 'BDC_CURSOR'
                                        'DF05B-PSSKT(01)'.
          perform bdc_field       using 'RF05A-ABPOS'
                                         '001'.
          perform bdc_dynpro      using 'SAPDF05X' '3100'.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=BU'.
          perform bdc_field       using 'BDC_CURSOR'
                                        'DF05B-PSSKT(01)'.
          perform bdc_field       using 'RF05A-ABPOS'
                                         '001'.
         CALL TRANSACTION 'F-32' USING gt_BDCDATA
                                 MODE   'A' "gv_mode
                                 UPDATE gv_updat.
    Rgds,
    Joseph

Maybe you are looking for

  • How can I change the screen size of my games in facebbok? Somehow they grew and I don't know what I did.

    When I bring up facebook on firefox it is a good size. My games were good before today but now they are so huge I can't play them. I think I must have hit a button by mistake but I don't know how to fix it. Can you help me?

  • Multithread in Tuxedo Adapter for MQ

    Hi, Currently I am working over integration of WebSphere MQ and Tuxedo 10.0 using Adapter for MQ. When I execute client app which calls TM_MQO twice, the second one is waiting for first one to close (get reply). Is it possible to make it multithreadi

  • App problem urgent

    hi i am making pmt to vendor through app,while doing proposal run,the message is displaying that proposal has been schedule and job was cancelled can anybody help me guna

  • Symbol Properties

    In Flash, I can programmatically change a Movie Clips properties with ActionScript. How can I do this with Edge? I've tried something like this: sym.getSymbol("ElementA").x = 450; And it doesn't work. Should I be addressing the CSS properties instead

  • Shrink font in Adobe form

    Hi Gurus, I have a requirement,where in we have to fit 12 characters in a space of 90 mm with helvetica narrow font, We tried the percentage of text in palletes but we cant fit in. Can any body provide some solutions or tips in this. Regards, Kundan