Help in bdc for tcode MEK1

Hi,
I am creating a recording for transaction MEK1. Based on the condition type specified , the next screen comes based on key combination. I want to check in the program that out of all the key combination user have selected which combination.
For ex. for conditon type ZAVS the key combination comes as
1) county/region/material
2) country/region/vendor
3) vendor
If the vendor selects key as vendor then how to take the value for BDC program.
Thanks,
Anil N.

Hi..,
That option wl be selection indicator. Right?
Then pass the value 'X', to select reuired one.
While recording this screen, after entering the condition type , click on key combination.and then you wl get new pop up with radio buttons.
just select one by one radio button from top to bottom.
(here prefer the combination which is having more choices)
and then you should get code like this..,
perform bdc_field       using 'RV130-SELKZ(01)'
                              'record-SELKZ_01_002
perform bdc_field       using 'RV130-SELKZ(02)'
                              record-SELKZ_02_003.
perform bdc_field       using 'RV130-SELKZ(03)'
                              record-SELKZ_03_004.
perform bdc_field       using 'RV130-SELKZ(04)'
                               record-SELKZ_04_005.
perform bdc_field       using 'RV130-SELKZ(05)'
                               record-SELKZ_05_006.
So here pass the X value in one of this where ever you want depeneding on your reuirement.
With above code you can select any one of given five, to select one of from given six we have to add one more field, thats why while recording only you have to record the combination which is having more records.
With in the loop you can implement the logic with if condition to pass the X value to reuired one.
Thanks,
Naveen.I

Similar Messages

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

  • 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

  • To restrict authorization for tcode MEK1,MEK2,MEK3,MEK4 at plant level.

    Hi,
    We have  a requirement where we need to restrict authorization for tcode MEK1,MEK2,MEK3,MEK4 at plant level.
    Presently we can restrict authorization at Purchasing organization level but not at Plant level.
    Any pointer please!
    Regards,
    Chetan

    First of all, this is not the right forum to post such a question.  Coming to the requirement, this can be achieved by creating a role in PFCG where you can restrict plant and assign this role to each user id.  Your basis team can do this.
    thanks
    G. Lakshmipathi

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

  • Need help on BDC  for MB1A transaction.

    Hello Abapers,
    I need to create a BDC for t-code MB1A to do the Goods Issue with reference to reservation.
    I am not able to use the BAPI 'BAPI_GOODSMVT_CREATE' to do the goods issue as there are some additional functionalities (Stock Determination) to be included.
    The problem I am facing is, The stock determination will determine the Quantity, Storage Location and Valuation type for every item of the reservation. The quantity will be picked up from multiple storage locations and as a result the line item of reservation will be split into two or more for Goods Issue.
    When this happens, If the reservation is having multiple line items, tracking the next item becomes a problem.
    Please suggest a way to approach this problem.
    Usefull answers will be rewarded.
    Thanks in Advance,
    Vinutha.

    Hi
    The COMMIT before and after CALL TRANSACTION is useless, The transaction FB01 calls the commit by itself, so u need only:
    CALL TRANSACTION 'FB01' USING BDC_TAB
                                                   MODE 'N'
                                                   UPDATE 'S'
                                                   MESSAGE ITAB.
    Now ITAB is like structure BDCMSGCOLL, so after CALL Transaction u can use message statament in order to show a popup with message:
    CALL TRANSACTION 'FB01' USING BDC_TAB
                                                   MODE 'N'
                                                   UPDATE 'S'
                                                   MESSAGE ITAB.
    LOOP AT ITAB.
    MESSAGE ID ITAB-MSGID TYPE 'I' NUMBER ITAB-MSGNR
             WITH ITAB-MSGV1 ITAB-MSGV2 ITAB-MSGV3 ITAB-MSGV4.
    ENDLOOP.
    Max

  • Need help in BDC for Customer master change

    I have an interface for Changing Customer master data and I am using BDC for that. I have three scenarios:
    1. Insert new data.
    2. Change the existing data.
    3. Delete the existing data.
    The BDC is working fine in the first two scenarios, but if i want to delete an the existing data, lets say for e.g. Name3 or Email Id its not working because i need to pass the value as blank in the BDC for this field.How would i check?  i thought i would first get the existing value in customer master and check if the interface value is blank then make this field value to blank in BDC.
    But this is not working because in case the  interface wants to remove only the email id, the other fields would still be blank.
    How to handle this scenario, please advice.

    What is the difference between 2 and 3? Isn't "deleting data" in your context the same as changing to a blank value?
    Why can you not just fill the value as received in the input data into the BDC data?
    Thomas

  • GTS BAPI or BDC FOR Tcode /SAPSLL/PRODUCT_02

    Hello All,
       I need a help to upload data's in T-code /SAPSLL/PRODUCT_02 (SAP GTS ) Custom Product maintenance, i can't do with BDC because this t-code is having GUI, So kindly guide me how we can upload the data's in this t-code, and there is no BAPI or IDOC for this t-code.
    Thanks in advance.

    hi
    try using this FM /sapsll/product_change
    cheers
    s.janagar

  • Error in BDC for Tcode IB02

    Hi all
    I have written the code for deleting Line item and re-inserting that line item (for particulat Material) for IB02 using BDC.
    i am able to delete that line item but it is giving error while re-inserting that line item.It is giving error as " Field RC29-POSTP(3) does not exits on the screenSAPLCSDI 0140".If i commected that line it is giving error for another field. I tried so many times, but no use Plz Plz help me out
    LOOP AT equn_itab INTO w_equn_itab.
    CLEAR count.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0200'.
    PERFORM bdc_field       USING 'RC29N-EQUNR' w_equn_itab-equnr.
    PERFORM bdc_field       USING 'RC29N-WERKS' w_equn_itab-werks.
    PERFORM bdc_field       USING 'RC29N-STLAN' w_equn_itab-stlan
    PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0150'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
    LOOP AT stpo_itab INTO w_stpo_itab WHERE stlnr = w_equn_itab-stlnr.
    count = count + 1.
    READ TABLE mara_itab INTO W_MARA_ITAB WITH KEY matnr = w_stpo_itab-idnrk
    IF SY-SUBRC EQ 0.
    CONCATENATE 'RC29P-AUSKZ(' count ')' INTO v_string.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                         v_string.
    PERFORM bdc_field      USING v_string 'X'.
    CLEAR v_string.
    ENDIF.
    ENDLOOP.
    clear v_string.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0150'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=FCDL'.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0150'.
    PERFORM bdc_field      USING 'BDC_OKCODE' '=FCNP'.
    PERFORM bdc_dynpro     USING 'SAPLCSDI' '0140'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
    LOOP AT stpo2_itab INTO w_stpo2_itab WHERE stlnr = w_equn_itab-stlnr.
    READ TABLE mara_itab INTO W_MARA_ITAB WITH KEY matnr = w_stpo_itab-idnrk
    concatenate 'RC29-IDNRK(' C ')' INTO V_STRING.
    perform bdc_field       using 'BDC_CURSOR'
                                   V_STRING.
    perform bdc_field       using V_STRING
                                  '1688'.
    CLEAR v_string.
    concatenate 'RC29-MENGE(' C ')' INTO V_STRING.
    perform bdc_field       using V_STRING
                                  W_STPO2_ITAB-MENGE.
    CLEAR v_string.
    concatenate 'RC29-MEINS(' C ')' INTO V_STRING.
    perform bdc_field       using V_STRING
                                  W_STPO2_ITAB-MEINS.
    CLEAR v_string.
    READ TABLE MARC_ITAB INTO W_MARC_ITAB WITH KEY MATNR =
    W_STPO2_ITAB-IDNRK.
    READ TABLE zmrp_bom_itab INTO W_zmrp_bom_itab WITH KEY DISPO =
    W_MARC_ITAB-DISPO.
    CONCATENATE 'RC29-POSTP(' C ')' INTO V_STRING.
    perform bdc_field       using V_STRING
                                  W_zmrp_bom_itab-POSTP.
    C = C + 1.
    ENDLOOP.
    CLEAR C.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0140'.
    PERFORM bdc_field      USING  'BDC_OKCODE' '=FCBU'.
    PERFORM bdc_dynpro      USING 'SAPLCSDI' '0150'.
    PERFORM bdc_field      USING  'BDC_OKCODE' '=FCBU'.
    PERFORM bdc_dynpro     USING  'SAPLCSDI' '0130'.
    PERFORM bdc_field      USING  'BDC_OKCODE' '=FCBU'.
    PERFORM bdc_dynpro     USING  'SAPLCSDI' '0130'.
    PERFORM bdc_field      USING  'BDC_OKCODE' '/EENDE'.
    PERFORM bdc_calltransaction USING c_ib02.
    Thanks in advance
    Regards
    Rao

    Hi,
    CONCATENATE 'RC29-POSTP(0' C ')' INTO V_STRING.
    Value would be 03 & not 3.
    Best regards,
    Prashant

  • Error "No batch input data for screen" in BDC for Tcode CN22

    Hi,
    The issue is When teh BDC code is run by Functional guys we are facing the error as "No batch input data for screen SAPLCONW 1100", when I am trying teh change the Network Activity Level User field in Tcode CN22. When I execute the same BDC code with Developer User id, it is executing perfectly.
    I have checked the User Profiles for both functional and Technical and both are same. What is my solution now?
    Regards,
    Deepthi.

    Hi
    Take Recording using the functional guy log in there might be user depended screen  sequence
    Regards
    Nilesh Gaikwad
    Edited by: Nilesh  Gaikwad on Jan 26, 2010 10:49 AM

  • Need help in BDC for FB01 transaction

    My requirement is like this,
    I have a selection screen in which I need to give file name in and have two radio buttons 1)test mode 2)Update mode
    u2022     On execution of the program in test mode a pop up screen should appear for user stating any errors in the line items.
    u2022     On execution of the program in the Update mode...a pop up screen should appear stating the documents numbers posted.
    u2022     On successful execution the system will open a new screen stating the document number which was generated. In case       of error the new screen should show the error and should not post  any items in that file.
    Could anybody help me in this. And which BDC method is best for this scenario.
    Regards
    Tom

    Hi
    The COMMIT before and after CALL TRANSACTION is useless, The transaction FB01 calls the commit by itself, so u need only:
    CALL TRANSACTION 'FB01' USING BDC_TAB
                                                   MODE 'N'
                                                   UPDATE 'S'
                                                   MESSAGE ITAB.
    Now ITAB is like structure BDCMSGCOLL, so after CALL Transaction u can use message statament in order to show a popup with message:
    CALL TRANSACTION 'FB01' USING BDC_TAB
                                                   MODE 'N'
                                                   UPDATE 'S'
                                                   MESSAGE ITAB.
    LOOP AT ITAB.
    MESSAGE ID ITAB-MSGID TYPE 'I' NUMBER ITAB-MSGNR
             WITH ITAB-MSGV1 ITAB-MSGV2 ITAB-MSGV3 ITAB-MSGV4.
    ENDLOOP.
    Max

  • BDC for VBO2 Tcode

    Dear All,
       I am trying to write a bdc for tcode VBO2 (Agreement). in this i have ti give agreement number and then on second screen i have to select the PAY push button for clearing the amount.
    In this i am not able to catch the pay table control as to on which index i have to pass my records.
    Regards
    Amit

    Dear,
       I know this but teh problem is i have 2 tables in my bdc one is xkonp where i get the value i.e. mpwrt whereever i get this value means i have to update the same value in bzwrt field. but in xkonp i have all the data. but in PAy tab when we go table control fills up from knopd table where as i also have xvake table in my program where the index is not updated. so means in xkonp wherever i get mpwrt take knumh of that row and check in xvake table you will get the exact row of table control where that value needs to be updated in bdc. in xvake i am not getting the indexes. any help on this.
    Regards
    Amit

Maybe you are looking for

  • Cannot find OracleInProcServer.dll in the 64 bit Oracle 11g r2

    We have been using OracleInProcServer.dll in our applications to access oracle spatial features. However, with the new 64 bit oracle 11g r2, I cannot find the OracleInProcServer.dll file. I have tried to use the old OracleInProcServer.dll (32 bit fro

  • Error when installing on macpro 1.1

    I'm running a mac pro 1.1 "Dual-Core intel Xeon" 2.66, when I try to install snow leopard server 10.6 I get an error.

  • Settings for when opening pdf files

    Hello, Is it possible to set a pdf file so that when opened it appears at 75% its full size (or so it opens to the size of the screen)? Thanks

  • How do I install 9i Reports Developer?

    I have Oracle 9i V2 and 9i JDeveloper installed on Windows 2000. I am presented with a 850MB download when I follow the OTN links to the 9i Reports download. Can't I download just the 9i Reports software without the rest of the Development Kit?

  • ITunes does not recognize iphone

    When trying to download music to iPhone. iTunes indicates phone is not connected.  The same applies to Windows Media Player.  I have reinstalled iTunes but still not working. Tried everything possible.  Any suggestions????