Beginner ABAPer asking Doubts in BDC

Hi Guyz,
I am a beginner in ABAP. Here i am sending some doubts on BDC . Any Kind of help will be highly Appreciated.
Thanks,
SAM
1>How do we handle all the scrolling funcions(page ups, page downs atc), and values entered into table controls in BDC ?
2> How do you take care of screen resolution in BDC?

1) page up and page down ... i donno the actual procedure but this is one of the method...
i hope this answers both of ur questions...
After encountering the screen, say u need to select a field in a table. One of the methods is to press <b>Control F</b> on that screen then enter the field name which u want.. and press enter.. then that field will be the <b>first field in the screen resolution</b> ....
just try this for a normal table like spfli... after going to the table display in <b>SE11 press control F or the Binoculars icon.</b>. then u will get a small window u just type in the name of the field u want.. and press enter .. see what happens,
suppose ..
have opened this spfli in se11 transaction and in display mode..
Now <b>'PERIOD'</b> is the field which is not there in the resolution..
so i have opened the find option ,provided the field name <b>PERIOD </b>in the field of search window.
then pressed enter. Now i will get the same screen( spfli display screen ) with <b>period as the first field in that resolution</b> .. Now i can do whatever is i want with this field.. here i have double clicked on the domain of the field PERIOD.
so u analyse this code....
*spfli display screen..
perform bdc_dynpro using 'SAPLSD41' '2200'. ( * spfli display screen , u can use ur screen number here )
perform bdc_field using 'BDC_OKCODE'
'=FIND'. (* To open the find window )
perform bdc_dynpro using 'SAPLSD41' '0114'. ( * This is the find window )
perform bdc_field using 'BDC_CURSOR'
'RSDXX-FINDSTR'.
perform bdc_field using 'BDC_OKCODE'
'=CANC'. (* OK_CODE for enter )
perform bdc_field using 'RSDXX-FINDSTR'
'PERIOD'. ( * Here i am giving the field name which i want to search or which is not there in the resolution or u can give a vaiable name which contains the value <FIELD NAME> ).
( Now i got the spfli display screen with period as the first field in the screen resolution )
perform bdc_dynpro using 'SAPLSD41' '2200'. (*The previous spfli display screen )
perform bdc_field using 'BDC_OKCODE'
'=WB_SELECT_OBJECT'. (* OK_CODE to double click on the domain of the field PERIOD )
perform bdc_field using 'BDC_CURSOR'
'DD03D-ROLLNAME(01)'.
reward helpful answers...
sai ramesh

Similar Messages

  • Doubt in BDC

    I have a doubt in BDC,
    They used a standard SAP program (RSBDCBTC_SUB and RFBIBL00) for upload the data for the transaction FBB1. they don’t want the particular record .
    They used a session method for upload the data.
    I know only the session name. how I can delete the particular record.
    Once processed the session.
    Is it possible to delete the delete the record.
    Help me regard this.

    Priya,
    here i can suggest u one thing
    if u want to know the program r report related to that session
    just go to sm35
    select the session then go with analysis
    then in the screen u will get the screens used in that particular program
    when u double click on those screens control leads to that respected screen
    in that if u go with system - > status u will get all the details of the program
    when u double click on the program control leads into that program
    then there u can find all the details related to tables and everything
    i think it helps for u
    Regards,
    naveen

  • ABAP SQL Doubt

    Hi ABAP Gurus,
    Please help me in solving following ABAP SQL doubt.
    In the table Zonfig there are two fields: FNAME and REQFLAG
    FNAME.....REQFLAG
    S1...........X
    S2...........X
    S3..........._
    S4...........X
    Other table T_Zconfig has one field : XNAME
    XNAME
    S1
    S3
    Now I have to select REQFLAG from Zconfig table for the values of field XNAME in T_Zconfig table.
    That is in this case for FNAME S1 and S2 in Zonfig I need to fetch REQFLAG since in XNAME in T_Zonfig we just have S1 and S2.
    Points will be surly awarded...
    Thanks.

    Hi ABAP Gurus,
    Please help me in solving following ABAP SQL doubt.
    In the table Zonfig there are two fields: FNAME and REQFLAG
    FNAME.....REQFLAG
    S1...........X
    S2...........X
    S3..........._
    S4...........X
    Other table T_Zconfig has one field : XNAME
    XNAME
    S1
    S3
    Now I have to select REQFLAG from Zconfig table for the values of field XNAME in T_Zconfig table.
    That is in this case for FNAME S1 and S3 in Zonfig I need to fetch REQFLAG since in XNAME in T_Zonfig we just have S1 and S3.
    Points will be surly awarded...
    Thanks.

  • Simple Doubt in BDC

    Hi friends,
       I am new to BDC .I am just trying a simple code which is written already.
       This is the simple code to fill the transaction VK13 first screen.
      PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'RV13A-KSCHL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                            '/00'.
      PERFORM bdc_field       USING 'RV13A-KSCHL'
                                           wa_report-kschl.
      PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'RV130-SELKZ(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                           '=WEIT'.
      PERFORM bdc_field       USING 'RV130-SELKZ(01)'
                                            'X'.
      CALL TRANSACTION 'VK13' USING i_bdc_tbl
                              MODE  'A'.
    FORM bdc_dynpro USING program dynpro.
      CLEAR i_bdc_tbl.
      wa_bdc_tbl-program  = program.
      wa_bdc_tbl-dynpro   = dynpro.
      wa_bdc_tbl-dynbegin = 'X'.
      APPEND wa_bdc_tbl TO i_bdc_tbl.
    ENDFORM.                    "BDC_DYNPRO
    FORM bdc_field USING fnam fval.
      CLEAR i_bdc_tbl.
      MOVE fnam TO wa_bdc_tbl-fnam.
      MOVE fval TO wa_bdc_tbl-fval.
      APPEND wa_bdc_tbl TO i_bdc_tbl.
    ENDFORM.                    "BDC_FIELD
    When execute this code it is just showing the empty screen of transaction vk13. It is not filling the condition type field with whatever value i am passing. When go in debugg mode i am not getting the logic again and again it is going to the first screen of vk13 and asking to enter the value whwn the statement CALL TRANSACTION is getting executed. It is clear to me.
    My main doubt is we are clearing the internal table i_bdc_tbl before calling the transaction once we move the value to the specific field.I am not getting what they tried to do there.Simply moving one record to internal table and again clearing it then moving a next record and clearing it again before calling the transaction.
    What we are trying to do by this?Can any one explain me.
    Please help me out in understanding this.
    Thanks in Advance.

    Hi Shri,
    You can go thru these links for more info on BDC:
    http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sap-img.com/bdc.htm
    www.sappoint.com/abap/bdcconcept.pdf
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.planetsap.com/bdc_main_page.htm
    Reward points if this helps.
    Manish

  • ABAP HR DOUBTS

    Hi ,
      I have some doubts  in ABAP-HR.Please clarify my doubts.
    1) Provide and end provide statements are obsolate.Shall we use select in place of provide and provide?.
    2) what are the important macros in ABAP HR?
    3)Do we have to use logical data base if we are using macros?.
    Moderator message: please do not ask interview-type questions, search for available information.
    Edited by: Thomas Zloch on Jan 6, 2011 10:57 AM

    Hi Shakir,
       First of all you have to assign logical database name say PNP in the attributes of the program. After assigning the logical data base, you can see teh button below with HR REPORT CATEGORY. Click on that and select Master dat(infotypes) radio button. After that go for f4 help to see the existed HR report categories. From that you select one which contains the fields you want. If you are not able to find Hr report category with the fields you want then you need to create your own report category with the fields you want.
    If you want to select only active employees
    RP-PROVIDE-FROM-LAST p0000 space pn-begda pn-endda.
    CHECK P0000-STAT2 = '3'.
    note: '3' or some other value based on the values stored in infotype 0000 for the employment status.
    if employee is not active then it will skip that employee and selects the next employee.

  • Doubt in BDC (Creation of Production order)

    Hi experts,
         I have a doubt in my bdc, in my bdc i am going to create production order in CO01. its working properly but after entered the date i want to click operation overview and change one particular routing workcenter. But all the workcenter have the same field name of ARBPL, if anyone have a idea plz help its urgent. Point will be sure.
    gowri

    Dear Mr.Gowri Sankar,
    As you have created a BDC for creating production order,
    once after the order creation is over u can goto CO02 and change the work centre,routing details before release.
    Please tell us when do u want to change the work centre & routing details?
    If I'm wrong,please correct me.Also please share the concept of your BDC.
    Regards
    Mangal

  • Doubt in BDC ( Material master)

    Hi frnds,
      I am creating BDC for material master.In that BDC if i load the data in 'A' mode its work properly. In 'E' Mode in the last page its asking every time for Save, In 'N' Mode its not upload how to do this.
    This is my code :
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    ***********CALL TRANSACTION************************
    CALL TRANSACTION 'MM01' USING bdcdata MODE 'E'
             UPDATE 'A'
            MESSAGES INTO it_bdcmsg.
    Thanks,
    Gowri.

    Hi
    May be in 'A' mode you are manually hitting the SAVE and saving
    The function code/OK code for SAVE is 'BU' like
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BU'.
    so you have to write this in the last, then it won't ask in E and N modes
    may be this is missing in the program see and correct.
    Reward points for useful Answers
    Regards
    Anji

  • ABAP Mapping doubt

    Hi.
    I'm trying to do an abap mapping. I've read weblogs from Robert Eijpe. The samples contained in the weblog worked fine but i have a doubt.
    ABAP class had a parameter called SOURCE. This parameter contains the XML but i think is contained in only one line. In the sample weblog, the XML is contained in an internal table.
    Question is ... how can i transform this SOURCE of 1 line into an internal table?
    Thanks.

    Hi Inigo,
    Please look at this..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm
    Hope it helps you!
    cheers,
    Prashanth

  • HR ABAP How to Write BDC For Infotype 0586

    Hi Experts
    Can Any One tell me how to write BDC for Infotype 0586  and also 585.
    If we enter into the maintaining Screen, the lines in the Screen will dynamically changing depending on the values.
    When I am doing recording , If I press page down after entering values in top lines, the lines are changing and the records are not updating Correctly.
    I need to write BDC to Create Change.
    Can any one please help me in this regard?
    Thanks in Advance.
    Regards
    Avinash.

    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    http://www.google.co.in/search?hl=en&q=SAPBDCtable+control&meta=
    http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm

  • ABAP OO Doubt - validate call method.

    Hi experts
    I'm beginer in ABAP OO and i created this code :
    output-cep = ch_adrc_struc-post_code1.
                 TRY.
                     CREATE OBJECT lr_cep.
                   CATCH cx_ai_system_fault .
                 ENDTRY.
                 TRY.
                     CALL METHOD lr_cep->si_servico_cep_out
                       EXPORTING
                         output = output
                       IMPORTING
                         input  = input.
                   CATCH cx_ai_system_fault .
                 ENDTRY.
    My doubt is : How to know the call method worked?
    In call function i use = if sy-subrc = 0 for check the return but can i use it after call method ?
    thanks a lot.

    there is an importing which is used to get back data.
    once you process input then you can decide whether method worked or not.

  • Doubts in BDC

    hi friends ,
    i have some questions regarding BDC`s
    1)What is the difference between asynchronous <b>processing & updating</b>???
    2)how can we use programe defined function module in bdc?
    3)purpose of leave-to-transaction ? where it is used ?
    4)when & how is direct input used?
    regards
    Rishi

    Hi Rushikesh,
    Here it is answers for oyu....
    1)What is the difference between asynchronous processing & updating???
    sol: Asynchronous process means first when ever data ispopulsting from the file it is processing the data means dealing out with the data nothing but check the all the data at a time. Asynchronous updating means update all the data at a time means controller doesn't wait for confirmation from the DB.
    2)how can we use programe defined function module in bdc?
    Sol: i think your asking about BDC-OPEN_GROUP, BDC_INSERT,BDC_Close.
    If it is then first upload the data from file to internatl table and then data populated to DB through t-code by using bdcdata strucutre.
    3)purpose of leave-to-transaction ? where it is used ?
    Sol: Suppose your doing the at selection screen validation then we have ti use ths statement like
    IF P_BUKRS IS INITIAL.
    MESSAGE E(001) WITH 'XXXXXXXXXXXXXXXXXX'
    LEAVE TO TRANSACTION ZVAL.
    ENDIF.
    4)when & how is direct input used?
    Sol: Suppose we need ti uplaod the huge (nearly 1 or 2lakksh) records at a time then we can go for direct input method. This means directly hit to DB. First data can be populated to itab then by submitting two standard programs we can uplaod the data to DB.But problem is direct input have restart mechanism means suppose if you will ge error at 99999 record then we have to start agign the process.
    Hope this helps you, reply for queries, Shall post you the updates.
    Regards. 
    Kumar. .

  • Doubt on bdc's

    i was trying my first bdc program. i wanted to record mm03 transaction.
    so i went to tcode SHDB, pressed new recording, gave a recording name and t-code mm03 and
    started recording. it asked for material number, i just entered one and pressed back to stop recording.
    i saved it. then i selected my recording name and pressed on function module to see the code generated.
    is this how u do it. does all BDC programs work just by starting with SHDB or its not needed. should a BDC
    be written in se38 or se37.
    can any bdc program be written without ever recording.

    Example:
    data:  begin of bdcdata occurs 10.
            include structure bdcdata.
    data:  end of bdcdata.
    form post_goods_issue  tables   p_processing_protocol
                           structure ws_processing_protocol
                           using    p_temp_vbeln.
      clear bdcdata. refresh bdcdata.
      perform bdc_dynpro using 'SAPMV50A'      "Change Outbound Delivery
                               '4004'.
      perform bdc_field using 'LIKP-VBELN'     "Delivery number
                               p_temp_vbeln.
      perform bdc_field using 'BDC_OKCODE'
                               '=WABU_T'.      "PGI button
      perform bdc_dynpro using 'SAPMSSY0'      "Log screen
                                '0120'.
      perform bdc_field using 'BDC_OKCODE'     "Back
                                 '=BACK'.
      perform bdc_dynpro using 'SAPMV50A'      "Change Outbound Delivery
                                  '4004'.
      perform bdc_field using 'BDC_OKCODE'     "Back
                              '/EBACKE_T'.
      clear attempts.
      do.
        clear msgtab. refresh msgtab.
        bdcmode = 'N'.
        call transaction 'VL02N' using bdcdata mode bdcmode update 'S'
        messages into msgtab.
           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.
      write fnam to bdcdata-fnam .
      write fval to  bdcdata-fval.
      append bdcdata.
    endform.                    "bdc_field

  • Doubt regarding BDC

    Hi all,
    I developed a BDC.
    Client had asked for a requirement  tat while uploading an excel for eg of 1000 records, and if ter is an error in the 600th record ,as of now it will throw error,but tey were telling BDC shud not stop ter,else it shud discard that particular record and shud continue processing. and at the end it shud display in the output which all wer the recored with error.
    Is this possible n if so how..?
    Please reply..
    Thanks in Advance
    Nitin

    Hi,
    I consider u hv collected all the 1000 records in the excel file into an internal table called it_upload.
    Loop at it_upload into wa_upload.
    *write the BDC code for e.g.,
    PERFORM bdc_dynpro      USING 'SAPMV86E' '0601'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=SICH'.
          PERFORM bdc_field       USING 'BDC_SUBSCR'
                                        'SAPMV86E'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'RV86E-KOMMA'.
          PERFORM bdc_field       USING 'RV86E-DAT_STATA'
                                        sy-datum.
          PERFORM bdc_field       USING 'RV86E-ZET_STATA'
                                        '00:00:00'.
          PERFORM bdc_field       USING 'RV86E-KOMMA'
                                        wa_upload-vbeln.
    CALL TRANSACTION <tcode> USING it_bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO it_bdcmsg.
    COMMIT WORK.
    LOOP AT it_bdcmsg INTO wa_bdcmsg.
            IF wa_bdcmsg-msgtyp = 'S'.
              MOVE wa_bdcmsg-msgv1 TO wa_error.
            ENDIF.
            APPEND  wa_error TO it_error.
    ENDLOOP.
    ENDLOOP.
    Hope this helps.
    Regards,
    Arnab.

  • Doubt rearding bdc

    Hi,
    I am trying out BDC using session method. I am trying t upload  4 field values from a txt file on desktop to sap.
    when I process the session it still calls the screen and asks for the values for vendor creation...why does it not take values directly from the txt file? I tried running it in both foregrund and background In case of background it ends up with incorrect transaction.
    I do not understand
    1.what the parameteer transaction code in bdc insert means
    2.when we say perform [subroutine] using [program name] [screen no]- which is this program and screen number?
    The transaction code that I created uses the program SAPfm02k and screen 100.

    Hi,
    The procedure to create BDC programs:
    Go through each screen by passing the screen number, program name and a flag 'X' for new screen.
    Once you populate your BDC table with the above entries..
    Populate the BDC internal table with the field names and field values in that screen.
    Populate the user command "SY-UCOMM" which you will hit once you are done in populating the fields.
    Now you get into the next screen.. This is how it goes till you save.

  • Abap hr doubt

    Hi all,
    When we use GET PERNR statement , we declare TABLES:PERNR to define the structure pernr in our program.
    We declare the logical database as PNP for the standard  selection screen.Now , if we dont declare LDB as PNP and create our own selection screen and use GET PERNR statement by including tables: pernr in the program , it is giving error at GET PERNR statement.My doubt is how is the LDB linked to GET PERNR statement.
    Can anyone explain me clearly.
    Plss dont send links to other threads.
    Thanks & Regards
    Chandrika

    Hi sarath,
    1. I just tried. When we try to use
        Include SAPDBPNP in our Z Program,
        it gives SYNTAX error that
      "  Each ABAP program can contain only one "REPORT", "PROGRAM".
    2. The reason is that SAPDBPNP is a Program
        and not an include.
       Hence, like any other program if we try to include,
       it will give error.
    3. The PNP ldb has the program SAPDBPNP behind the scenes. But to use it we have to assign the LDB PNP in the attributes.
    4. There are some FMs LDB*  (eg. LDB_PROCESS)
        (I have not used them ) which allow
       to use a LDB without specifying in the attribute.
    regards,
    amit m.

Maybe you are looking for

  • I upgraded my imac to OS Mountain Lion and now the Seagate Goflex external HDD is not recognised

    I upgraded the iMac to Mountain Lion and it does not recognize the Seagate Goflex External HDD that I was working from earlier. I do not want to buy a special program since the Goflex HDD was working on both mac and Windows without any problems befor

  • Can't copy files to PC external drive

    A PC-using friend gave me an external drive with AVI files on them. I can copy the AVI files to my desktop from the external drive, but can not save or copy any AVI files to the drive. I can't change Permissions in Get Info to access the drive. Any i

  • XSLT 1 or 2?

    A developer has produced for us an XSLT transform. When run outside FrameMaker it works fine, and the resulting XML imports into FrameMaker. With a view to streamlining the process, I am trying to call the XSLT by adding it to the structured applicat

  • Using XML schema in a Java application

    Hi, I need to parse and use an XML schema in an application, mainly for helping a user to build an XPATH. For that, I want to use the Schema classes bundled with Oracle's parser. Is there any documentation about that ? Or are the source code availabl

  • Query taking too long to execute after clone

    Hi All, We have a query which is working fine in our development environment and taking around 15 secs to execute the query. When we run the same query with same parameters in a recently cloned instance, the query is taking 1200 secs to execute. Plea