Hide screen in bdc

Hi i am writing DBC program  for f-02 ,code is follows,all the posting is going well i wont hide the screen in bcd (direct post the transaction with out user interfere ) .how can i do it
perform bdc_dynpro      using 'SAPMF05A' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF05A-NEWKO'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'BKPF-BLDAT'
                              '060306'.
perform bdc_field       using 'BKPF-BLART'
                              'SA'.
perform bdc_field       using 'BKPF-BUKRS'
                              '6000'.
perform bdc_field       using 'BKPF-BUDAT'
                              '06.03.2006'.
perform bdc_field       using 'BKPF-MONAT'
                              '12'.
perform bdc_field       using 'BKPF-WAERS'
                              'LKR'.
perform bdc_field       using 'BKPF-XBLNR'
                              '18998'.
perform bdc_field       using 'BKPF-BKTXT'
                              'SPX'.
perform bdc_field       using 'FS006-DOCID'
perform bdc_field       using 'RF05A-NEWBS'
                              '01'.
perform bdc_field       using 'RF05A-NEWKO'
                              '188'.
perform bdc_dynpro      using 'SAPMF05A' '0301'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF05A-NEWKO'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'BSEG-WRBTR'
                              '2000'.
perform bdc_field       using 'BSEG-ZFBDT'
                              '06.03.2006'.
perform bdc_field       using 'BSEG-ZUONR'
                              '1.3'.
perform bdc_field       using 'BSEG-SGTXT'
                              '18999'.
perform bdc_field       using 'RF05A-NEWBS'
                              '50'.
perform bdc_field       using 'RF05A-NEWKO'
                              '10001400'.
perform bdc_dynpro      using 'SAPMF05A' '0300'.
perform bdc_field       using 'BDC_CURSOR'
                              'BSEG-MEINS'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ZK'.
perform bdc_field       using 'BSEG-WRBTR'
                              '2000'.
perform bdc_field       using 'BSEG-MENGE'
                              '2'.
perform bdc_field       using 'BSEG-MEINS'
                              'EA'.
perform bdc_field       using 'BSEG-ZUONR'
                              '1.3'.
perform bdc_field       using 'BSEG-SGTXT'
                              '18999'.
perform bdc_field       using 'DKACB-FMORE'
                              'X'.
perform bdc_dynpro      using 'SAPLKACB' '0002'.
perform bdc_field       using 'BDC_CURSOR'
                              'COBL-KOSTL'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENTE'.
perform bdc_field       using 'COBL-KOSTL'
                              '6000010101'.
perform bdc_dynpro      using 'SAPMF05A' '0330'.
perform bdc_field       using 'BDC_CURSOR'
                              'BSEG-XREF2'.
perform bdc_field       using 'BDC_OKCODE'
                              '=AB'.
perform bdc_field       using 'BSEG-XREF1'
                              '1005151'.
perform bdc_field       using 'BSEG-XREF2'
                              '1005151'.
perform bdc_dynpro      using 'SAPMF05A' '0700'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF05A-NEWBS'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BU'.
perform bdc_field       using 'BKPF-XBLNR'
                              '18998'.
perform bdc_field       using 'BKPF-BKTXT'
                              'SPX'.
call transaction 'F-02' using bdcdata mode 'g_mode'  messages into it.
Thanks
kanishka

Hi dear frd,
Three possible entries are there for MODE.
                  A          -           Show all screens.
                  E          -           Show only screens with errors.
                  N          -           Show no screens.
You can pass N if you dont want to show screens in BDC.
Rewards points if useful.
Regards,
GURU

Similar Messages

  • How to handle dynamic screens in bdc

    HI SIR,
    i am working on BDC for CA02 in this i have probelm that if operation 10 it doesnot contains any items it showing one  screen and if operation 10 contain some items
    and its item counter increasing automatically in this case it coming to this screen through some other screen.so.plz help me how to handle this dynamic screens in bdc ,plz help.

    hi sir,
              now i am working BDC UPLOAD with tcode CA02 in this in second screen their are some rows like in table control
    opt
    10                x
    20
    30                 x
    like above in this if row one of column contains 'x' then if i want to fill sub item then it display i one screen EX 100 else if it dsplay screen 200(ie item 10 already contains subitems it display  x in one row column(i.e selected check box) else it show unselected check box.plz tell how to know wheather check box is selected or not from screen to .plz tell.
    thanking u

  • Skip screen in BDC

    Hi All,
    I want to skip screen in BDC while upload data what should I do? Pleas help me in this regard.
    Do you think if I pass ‘/n’ it’ll work?
    ERFORM sub_bdc_dynpro USING 'MP002200' '2000'.
      PERFORM sub_bdc_field USING :
              'P0022-BEGDA'    temp_date              ' ',       " FROM DATE
              'P0022-ENDDA'    '12319999'             ' ',       " TO DATE
              'BDC_OKCODE'     '=/n'                 ' '.         “ To Skip ?
    OR
      'BDC_OKCODE'     '/00'                 ' '.         “ To Skip ?
    OR
      'BDC_OKCODE'     'SHOP'                 ' '.         “ To Skip ?
    Thanks
    Message was edited by: Suleman Javed

    Hi Suleman,
    I guess, after entering the dates on the firts csreen , you want to skip the next screen and go to another screen.. then.. try the following..
    PERFORM sub_bdc_dynpro USING 'MP002200' '2000'.
    PERFORM sub_bdc_field USING :
    'P0022-BEGDA' temp_date ' ', " FROM DATE
    'P0022-ENDDA' '12319999' ' ', " TO DATE
    PERFORM sub_bdc_dynpro USING 'MP002200' '2010'.
    any way.. what is that you actually want to do with this Education infotype??
    Regards,
    Suresh Datti

  • Called Screen using BDC Call and Submit

    Hi there
    while returning back from the Called Screen using BDC Call , i am not able to get the Basic Screen. It displays The Selection Screen of the called Transaction.
    Kindly plz help me regarding this problem
    Thanks
    Saurabh

    Which Transaction are you calling?
    Regards,
    Deepa Kulkarni

  • Hide selection screen  in BDC

    Hi Experts,
    i created a bdc for VA01 transaction. i use include bdcrecx1 in my code every time while i run the prog it shows a selection screen to select generate session or call transaction methode, but i want to hide that screen for user by automatically selecting call transaction radio button with processing mode 'N' and update mode 'A'
    can anyone explain with sample code...

    Hi arun ,
    please close this duplicate entry.
    Regards
    prabhu

  • Is it possible to skip the screen in BDC using IF statement.

    Hi Friends,
    I have written a report using BDC for tcode CO11 thru recording using CALL TRANSACTION.
    Case 1:
    If I go to transaction CO11 (screen number 100) and give the  order number which has more than 1 operations to be partially confirmed and press ENTER a pop-up screen (screen number 140) appears where in I need to select the operation number and after selecting the required operation number it automatically takes me to another screen (screen number 150).
    Case 2:
    If I go to transaction CO11 (screen number 100) and give the  order number which has only 1 operation to be partially confirmed and press ENTER it directly takes me to screen 150 skiping screen 140.
    When I enter the order number which has more than 1 operations to be partially confirmed on my selection screen, my code is working fine as needed.
    But, when I enter the order number which has 1 operation to be partially confirmed on my selection screen, it is giving me error in my BDCMSGCOLL saying that the screen 140 doesn't exist.
    Is there any way, Can I skip screen 140 using IF statement?
    My thoughts:
    1. calling screen 100.
          After calling screen 100, I have put the pop-up operation numbers in an ITAB.
          DESCRIBE table lines ITAB <variable>.
          At NEW <order-field>.
          IF <variable> = 1.
    2. calling screen 140. "I need some help here to skip the screen 140
                                        " Will this logic work?
          ENDIF.
          ENDAT.
    3. calling screen 150.
    Rest everything is working fine.
    Will my above logic works correctly? I would appreciate if someone could help me with this.
    Thanks in Advance.

    Hi,
    Try something like this:
    1. Call Screen 100.
    Check if screen 140 needs to be called depending on your custom logic. Lets say you populate a variable as 'X' if it needs to be called.
    Then write:
    if valiable = 'X'.
      Call screen 140.
      Enter Screen 140 details.
    endif.
    Call screen 150.
    Here the 'Call Screen' is nothing but the code you extracted after BDC recording.
    Thanks.
    Ravi'

  • Is possible to skip first screen in BDC Session

    Hi all,
    Is it possible like  in call transaction method to skip first screen in Batch input session?
    Syntax----
    call transaction MM01 and skip first screen.
    I want same result By using Batch input session.
    Suggess..........
    Thanks
    Sanket sethi

    Actually i am open transaction SE38 and execute an Standard Report.In the selectiion screen I am changing something in layout.
    I recorded it by BDC.
    And use batch input session.
    Now i want to skip the se38 window i want to drop user on the execution of the report.
    I also do it by submit report but i want to know that is there any possibilities to use with BDC session.
    Thanks
    Sanket

  • Problem to generate same VA01 search help screen in BDC Program

    Hi All,
              I have got one issue.
              The issue is that i need to generate the search (F4) help screen of VA01 search for articles in the program,.
              I tried to record using BDC, but the screen generated is different.
              Can anyone please guide me how to generate that same search help screen in Program using BDC or any other tool.

    Hi
    Just check the field in the VA01 for which you are using BDC , you may get the standard search help for that .
    It wuld be great if you elaborate your requierment .
    Regards
    Rahul

  • Custom screen in BDC

    Hi all,
    I have a requirement, developed a custom tabs to SAP standard by using the BADI CUSTOMER_ADD_DATA_CS.
    Now, I have to make it available in BDC recording, for the customer uploads.
    How can I achieve this, please do give me some suggestions?
    I will appreciate your help by rewarding points.........
    Thank you,
    Mili.

    Hi Mili,
    Your requirement is two fold.
    one, to develop custom screen for Customer Creation /change/display transaction.
    Check this link for this part:
    BADI - CUSTOMER_ADD_DATA_CS not appearing on screen
    Once you are done with this part, then you can record the transaction using SHDB transaction and then generate a program out of the recording.
    Regards,
    Ravi

  • Problem with pop-up screens in BDC

    I have recorded a transaction in SHDB.
    when i run the recording from SHDB, it is running fine,...but after I transfer the recording to a program or function module and then run it, the second screen which is a pop up screen is not getting displayed.
    wat can be done?

    Dear Balaji,
    OK, I  encountered this before. There are two scenarios here:
    1. The screen pop up. (Because this is the first time you get into the transaction for this login session.).
    2. The screen will not pop up. (Because this might be the second time or after,  you get into the transaction.)
    In the second case, because the parameter ID (or what ever SAP's memory is holding) got the value after the fist time entry through the pop up, so it wouldnt pop up again.  You have to select it from the menu and enter it if you want to change the value. I believe there is a place for you to change the value.
    So, now, come to your BDC. Your BDC records could only handle one of the case.
    To cater for both cases, I did a Dummy BDC (which did nothing on the transaction, using the RED Cancel ( 'BDC_OKCODE' '/EEESC'.)button.), fill in everything required, then press cancel button.
    Then only, do your actual processing. This time, remember to fill in your value of the pop up window through the menu button to invoke the pop up.
    Bellow is my dummy BDC:
    *&      Form  f_dummy_first
          This routine will execute CJ88 without doing anything.
          The purpose is to eliminate the popup window to enter
          controling area. The controlling area will be enter through
          the button on the manu.
    -->  p1        text
    <--  p2        text
    form f_dummy_first.
      PERFORM dynpro USING :
            'X'    'SAPLSPO4'         '0300',
            ' '       'BDC_CURSOR'    'SVALD-VALUE(01)',
            ' '       'BDC_OKCODE'    '=FURT',
            ' '    'SVALD-VALUE(01)'  'MY01',
            'X'     'SAPLKO71'         '1000',
            ' '     'BDC_CURSOR'    'LKO74-BZDAT',
            ' '     'LKO74-PERIO'    p_fispd,
            ' '     'LKO74-BUPERIO'  p_fispd,
            ' '     'LKO74-GJAHR'    p_fisyr,
            ' '     'LKO74-BZDAT'    p_budat,
            ' '     'LKO74-VAART'    '1',
            ' '     'LKO74-TESTLAUF'  ' ',
            ' '     'BDC_SUBSCR'      
                    'SAPLKAOP                                0550BLOCK1',
            ' '     'LKP74-POSID'     ' ',
            ' '     'BDC_OKCODE'         '/EEESC'.
      CALL TRANSACTION c_cj88
                 USING  bdc_tab MODE 'N' UPDATE 'S'.
      clear bdc_tab. refresh bdc_tab .
    endform.                    " f_dummy_first
    Please suggest if there is any other better solutions.
    Good luck....
    Message was edited by:
            Kokwei Wong
    Message was edited by:
            Kokwei Wong

  • What is the ok code for pup-up screen in BDC

    Dear Teches
    Hi to all
    while doing a BDC in Tr Code f-02 ,my programe is not moving ahead becouse of a Pup-up menu.
    Enter is not accepting in that pup-up menu,The pop-up menu is only one option to close is Copy.
    So i need the BDC code for that Copy.
    B'coz in recording that code is not present.
    Plz. Helep me out in this.
    Every helpfull Answer will be rewarded with points
    Thanks in Advance
    Shovan

    Hi,
    Save the following in a text file and save in windows desktop,
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    Run the BDC until where the popup screen appear, now minimise all windows to show desktop where you saved the text file. Click and drag the text file to the popup window, this will activate the debugger and enter field sy-ucomm to see the value. That value will be the okcode value.
    Cheers.
    ...Reward if useful.

  • Skip First Screen in BDC

    Hi Experts,
    I am using BDC for transaction PA20 where i am passing employee no and infotype.
    My requirement is to display directly second screen which is obtained by pressing display button (F7) button.
    Is it possible?
    Please suggest.
    Regards,
    Kaustubh.

    Hi, Kabre
    Please Check the following sample code it will solve out your problem,
    DATA: it_bdcdata TYPE TABLE OF bdcdata,
          wa_it_bdcdata LIKE LINE OF it_bdcdata.
    DATA opt TYPE ctu_params.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-program  = 'SAPMP50A'.
    wa_it_bdcdata-dynpro   = '1000'.
    wa_it_bdcdata-dynbegin = 'X'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'BDC_CURSOR'.
    wa_it_bdcdata-fval = 'RP50G-PERNR'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'RP50G-PERNR'.
    wa_it_bdcdata-fval = '1'. " Your Pernr Here.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'BDC_CURSOR'.
    wa_it_bdcdata-fval = 'RP50G-CHOIC'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'RP50G-CHOIC'.
    wa_it_bdcdata-fval = '8'. " Your Infotype Here.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'BDC_OKCODE'.
    wa_it_bdcdata-fval = 'DIS'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    opt-dismode = 'E'.
    CALL TRANSACTION 'PA20' USING it_bdcdata OPTIONS FROM opt.
    Please Reply if any problem.
    Best Regards,
    Faisal

  • Problem in CV01n additional data tab screen when BDC recording

    i am using bdc for uploading data . i am all ready write the code and its working fine in DEV and QAV . but the problem is in PRD is the additional data screen is not coming .. its coming like a empty screen . the fleads are not showing .. error is coming like ' the corser filed is not in this screen and fileads are also not in this screen' . please give the solution  for uploading the data ...

    you check your code
    PERFORM bdc_dynpro      USING 'SAPLCLMO' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RMCLM-CLASS'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DOKM'.
        PERFORM bdc_field       USING 'RMCLM-CLASS'
                                      wa_unit-class.
        PERFORM bdc_field       USING 'RMCLM-KLART'
                                      wa_unit-klart.
        PERFORM bdc_dynpro      USING 'SAPLCLMO' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RMCLM-CLASS'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DOKM'.
        PERFORM bdc_dynpro      USING 'SAPLCLMO' '7777'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SAVE'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RMCLM-KDOKAZ'.
        PERFORM bdc_field       USING 'RMCLM-DOKNR'
                                      wa_unit-doknr.
        PERFORM bdc_field       USING 'RMCLM-DOKAR'
                                      wa_unit-dokar.
        PERFORM bdc_field       USING 'RMCLM-DOKTL'
                                      wa_unit-doktl.
        PERFORM bdc_field       USING 'RMCLM-DOKVR'
                                      wa_unit-dokvr.
        PERFORM bdc_field       USING 'RMCLM-KDOKAZ'
                                      wa_unit-kdokaz.

  • How to hide screen group tab based on account group in XD01/02

    Hi Folks,
    I have added two screen group( custom tabs like 'general data' ) in XD01 screen. Based on the input parameter 'account group' I want to hide(supress) one of the tab. How can I read the account group no?
    Thanks and Regards,
    Kawish.

    Hi,
    Can you try to access the field like below. Just try to access the account group from main program in the method.
    field-symbols: <lf_KTOKD>  type KTOKD,
       data:               L_KTOKD type KTOKD.
    assign ('(SAPFM02D)KNA1-KTOKD') to <LF_KTOKD>.
    if sy-subrc = 0.
         l_ktokd = <LF_KTOKD>.
    endif.

  • Get OBJEC  hide screen and transfer data

    Hi experts!
    How can i hide this kind of selection screen when i call
    "get objec"
    and how can i transfer my data manually to the selection range of   get objec.
    eg. i want to use the "get objec" function to collect the data for three objectid.
    i could loop and call  get objec  3 times and set the PCHOBJID-LOW  value before,  but there must be a way to do this with a range.
    can someone help me
    greets, thomas

    Dear Abhishek,  can you explain the step..in this step screen is comming but custom fields value is not coming and also likp table is not updated
    Correct AnswerRe: Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD
    Abhisek Biswas Jan 21, 2009 7:28 AM (in response to Stephen Keam)
    Hi Stephen,
    You can do it by using PBO and PAI modules of the screen that you created. But you have to transfer the data from subscreen to the BADI method TRANSFER_DATA_FROM_SUBSCREEN and aslo from method TRANSFER_DATA_TO_SUBSCREEN to the subscreen. This will update the screen field data to LIKP.
    You can aceive this by two ways.
    1) You can use EXPORT in method TRANSFER_DATA_TO_SUBSCREEN and then IMPORT the value in the screen PBO. And You can EXPORT data from screen PAI and IMPORT data in method TRANSFER_DATA_FROM_SUBSCREEN.
    2) Anither way to do it is by using Function modules and Function Group instead of EXPORT/IMPORT.
    Create a Function group. In the global data define a structure/Work Area of type LIKP.
    DATA w_likp TYPE likp.
    Then create two Function modules, one to export data and another to import data.
    Let us assume that the export FM takes in IS_LIKP as input and the import FM outputs the value of LIKP into ES_LIKP.
    Then pass the value is_likp to the export FM in the BADI method TRANSFER_DATA_TO_SUBSCREEN and in the screen PAI pass the LIKP data to the export FM.
    In the export Function module write the following code:
    MOVE is_likp TO w_likp
    Then in the Import FM write the following code:
    MOVE w_likp TO es_likp.
    The import FM is called from method TRANSFER_DATA_FROM_SUBSCREEN and from screen PBO.
    This will solve your problem.
    Regards,
    Abhisek.
    Alert Moderator
    Like (0)
    Reply

Maybe you are looking for

  • Delivery document archiving

    Dear Friends, I have got one issue. Delivery document xyz has been archieved. It's corresponding sales order has also been archieved. But the same still appears in the table VBBE (Sales Requirements: Individual Records). Thus it shows the sales docum

  • I would like to know which cooling pad will be suitable for my HP Pavilion 15-E016TX

    please suggest with some compatable colling pads as per my model

  • Web Service without WSDL

    I have an existing web site that utlizes XML/XSQL extensively. What is an easy way of defining a WSDL for each of these XSQL pages?

  • How to run a VI for very short time, e.g. 100ms?

    Hi, I need to run a VI for very short amounts of time, say 100ms, 200ms, 500ms or 1s. I want to get this time from the user, maybe as a control variable. How may I do this? I tried using the "elapsed time" function but seems like it was not meant for

  • EDLNOT - Consignment Order

    Hi I had a quick question on EDLNOT message type of IDOC. Please let me know the answer when you get a chance. We use consignment order process in the Auto industry here document flow here is as follows: Scheduling agreement LK => Delivery into Consi