Different screens shown when using BDC for Transaction XK03

Hello Forum,
Please provide a soultion for the below problem .
When i open transaction XK03 (with 4 check boxes of general Data ticked )it is ok.
When i call transaction XK03 from my program (by sending the check box parameters ticked)- the scren shown is different .
(I used BDC to set the checkboxes)
Sample code for testing that i write to call XK03 is -
DATA: ls_bdc_comp  TYPE bdcdata,                   "workarea for BDC recording of XK03
        lt_bdc_comp  TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
  CLEAR: ls_bdc_comp .
  REFRESH lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-program = 'SAPMF02K'.
  ls_bdc_comp-dynpro = '0101'.
  ls_bdc_comp-dynbegin = wc_x.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'BDC_OKCODE'.
  ls_bdc_comp-fval = '/00'.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'RF02K-LIFNR'.
  ls_bdc_comp-fval = 'S000819001'. "Vendor
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'RF02K-D0110'.  "Address
  ls_bdc_comp-fval = 'X'.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
  ls_bdc_comp-fval = 'X'.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
  ls_bdc_comp-fval = 'X'.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CLEAR ls_bdc_comp.
  ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
  ls_bdc_comp-fval = 'X'.
  APPEND ls_bdc_comp TO lt_bdc_comp.
  CALL TRANSACTION 'XK03'
       USING lt_bdc_comp.
       MODE 'E'.
Regards
Lovleen
Moderator Message: Please use proper subject lines while posting your questions.
Edited by: Suhas Saha on Jul 22, 2011 3:48 PM

Hi,
You can try with below code,
DATA: ls_bdc_comp TYPE bdcdata, "workarea for BDC recording of XK03
lt_bdc_comp TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
CLEAR: ls_bdc_comp .
REFRESH lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-program = 'SAPMF02K'.
ls_bdc_comp-dynpro = '0101'.
ls_bdc_comp-dynbegin = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'BDC_OKCODE'.
ls_bdc_comp-fval = '/00'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-LIFNR'.
ls_bdc_comp-fval = 'S000819001'. "Vendor
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0110'. "Address
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
ls_bdc_comp-fnam = 'USE_ZAV'. "contact person
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CALL TRANSACTION 'XK03'
USING lt_bdc_comp
MODE 'E'.
It will also take you to some other screen but up to some extend you will able to see same kind of data.

Similar Messages

  • How to revert the data that is loaded using BDC for transaction PA30

    Hi All,
    We had loaded the data in SAP using BDC-Session Unfortunately.
    Now we want to delete all the data which is loaded usong these sessions.
    Please can anyone know the procedure to do so.(May be using LSMW)
    This is the test environment.
    This is the HR Data.
    Transaction we used is PA30.
    Thank you,
    Edited by: Kumar B on Sep 16, 2009 6:55 PM

    Sorry All for the late response.
    Thanks Swathi ..I thought in same manner.
    But we used the LSMW,It deleted the records in the exact fashion we need.
    It was a nice experience.
    Use T-code SE38 run the report RPUDELPN and pass the pernr entire data will delete. as it is a test client then go to NUMKR Feature reset it and upload the correct data again.
    I think that would not have worked for us as it deletes all the employee records.
    Might be dangerous too
    If it is has standard fast entry screen then use pa70 for mass deletion
    Apart from deletion,Also we need to delimit the previous record.
    Thank you All

  • Flat  file to upload data using BDC for transaction MM01

    Hi
    I am trying to update data using bdc code has been attached below using a txt file.
    It is updating the first set of data into the table mara ,but  for the rest it is not
    All the data from txt file has being loaded to internal table , but the problem is it does not gets updated from internal table to the database .
    Only the first set of data has been loaded ,<u><b> rest of the data is not loaded</b></u>
    <u><b>content of txt file</b></u>
    zsc     zsc     kg     
    zsv     zsv     kg     
    zsb     zsb     kg
    <u><b>Actual code</b></u>
    report ZMAT_UPLOAD
           no standard page heading line-size 255.
    types declaration..........................................................................
    types : begin of t_mat,
       matnr(20),
       desc(50),
       uom(5),
    end of t_mat.
    internal table and workarea declaration.......................................
    data : i_mat type table of t_mat.
    data : wa_mat type t_mat.
    include bdcrecx1.
    start-of-selection.
    moving the flat file content to internal table................................
    CALL FUNCTION 'UPLOAD'
         EXPORTING
             FILETYPE   = 'DAT'
         TABLES
             data_tab   = i_mat.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    loop at i_mat into wa_mat.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                       'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                        wa_mat-matnr.
    perform bdc_field       using 'RMMG1-MBRSH'
                                        'P'.
    perform bdc_field       using 'RMMG1-MTART'
                                        'ZOH'.
    perform bdc_dynpro   using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                        'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                        'X'.
    perform bdc_dynpro   using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                        wa_mat-desc.
    perform bdc_field       using 'BDC_CURSOR'
                                        'MARA-MEINS'.
    perform bdc_field       using 'MARA-MEINS'
                                        wa_mat-uom.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                        'NORM'.
    perform bdc_transaction using 'MM01'.
    endloop.
    Perform close_group.

    Hi Sumant,
    just concentrate on bold one
    report ZMAT_UPLOAD
    no standard page heading line-size 255.
    types declaration..........................................................................
    <b>
    data : begin of t_mat occurs 0,
    matnr(20),
    desc(50),
    uom(5),
    end of t_mat.</b>
    internal table and workarea declaration.......................................
    <b>*data : i_mat type table of t_mat.
    *data : wa_mat type t_mat.</b>
    include bdcrecx1.
    start-of-selection.
    moving the flat file content to internal table................................
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILETYPE = 'DAT'
    TABLES
    <b>data_tab = i_mat.---> t_mat.</b>
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    <b>loop at i_mat into wa_mat.------>loop at t_mat.</b>
    perform bdc_dynpro using 'SAPLMGMM' '0060'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-MATNR'.
    perform bdc_field using 'BDC_OKCODE'
    '=AUSW'.
    perform bdc_field using 'RMMG1-MATNR'
    <b>wa_mat-matnr.---->t_mat-matnr(change in this for ur wa to t_mat.</b>
    perform bdc_field using 'RMMG1-MBRSH'
    'P'.
    perform bdc_field using 'RMMG1-MTART'
    'ZOH'.
    perform bdc_dynpro using 'SAPLMGMM' '0070'.
    perform bdc_field using 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
    'X'.
    perform bdc_dynpro using 'SAPLMGMM' '4004'.
    perform bdc_field using 'BDC_OKCODE'
    '=BU'.
    perform bdc_field using 'MAKT-MAKTX'
    wa_mat-desc.
    perform bdc_field using 'BDC_CURSOR'
    'MARA-MEINS'.
    perform bdc_field using 'MARA-MEINS'
    wa_mat-uom.
    perform bdc_field using 'MARA-MTPOS_MARA'
    'NORM'.
    perform bdc_transaction using 'MM01'.
    endloop.
    Perform close_group.
    Reward points for helpful answers.
    Thanks
    Naveen khan
    Message was edited by:
            Pattan Naveen
    Message was edited by:
            Pattan Naveen

  • Urgent!! Splash screen problems when using 9iAS for forms

    I'm having some difficulty getting rid of the "Oracle Developer" splash screen that comes up when running a form from 9iAS using jinitiator v1.1.8.10.
    There is a
    <!-- PARAM NAME="splashScreen" VALUE="yourlogo.gif" -->
    <!-- set splashScreen to "no" will suppress the splash screen which is the Oracle Developer Server screen -->
    <PARAM NAME="splashScreen" VALUE="NO">
    but there is also
    <EMBED type="application/x-jinit-applet;version=1.1.8.10"
    java_CODE="oracle.forms.engine.Main"
    java_CODEBASE="/web_code/"
    java_ARCHIVE="/web_code/f60all.jar"
    WIDTH=800
    HEIGHT=560
    serverPort="9000"
    serverArgs="module=module_path&name.fmx"
    serverApp="default"
    lookAndFeel="default"
    separateFrame="false"
    pluginspage="http://something:8080/web_html/jinit_download810.htm">
    No matter what I do, the splash screen still shows up. Please help me get rid of this.
    Thank you.

    Possibly a bad choice of configuration. Of these classes:
    ******.bean.RssFeedBean.populateRssItems(RssFeedBean.java:59)
    ******.bean.RssFeedBean.<init>(RssFeedBean.java:34)
    ******.util.TagReplacer.replace(TagReplacer.java:145)
    ******.domain.Revision.replace(Revision.java:102)
    ******.handlers.PageEvent.respond(PageEvent.java:89)
    ******.servlets.Controller.doGet(Controller.java:100)Are all of them in your web application, in either WEB-INF/lib or WEB-INF/classes? And is JDOM there too?

  • I have some videos that are completely well shown when using any media player, but some parts of the video appear with red screens when I try to edit them on Adobe Premier. Does anyone knows the reason?

    I have some videos that are completely well shown when using any media player, but some parts of the video appear with red screens when I try to edit them on Adobe Premier. Does anyone knows the reason?

    More information needed for someone to help... please click below and provide the requested information
    -PPro Information FAQ http://forums.adobe.com/message/4200840
    Plus, EXACTLY what are you editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • Program does BDC for transaction F-52 or f-53

    Hi GuruI am functional person and working with a developer in a program . The program does BDC for transaction F-52 or f-53 . I am uploading a file ,so that the program picks it and o either F-52 or F-53 based on condition. When i try to upload the program with mulitple record ,i am getting the message difference is too large to clear . If i execute the same program without doing any changes again i can see few more records getting posted . when i do next time remaining records are posted . Insted of getting posted in one ,I have to execute the program more than once .can any one help me out why this is happening

    i think you should ask  your programmer to use transaction SM35 to process the BDC in foreground mode (first changing the mode to A). I would think you will see what's going wrong then. There are a few transactions that look different in foreground mode than in background and you will see where the difference is if you use this method to process

  • Reg Vendor master upload using BDC Call Transaction Method

    Hi All,
    Thanks in advance.
    I am uploading vendor master data using bdc call transaction method for XK01. In that  i am getting an error message that the fields " smtp_addr" ( for email) and "time_zone" (for time zone) doesnot exist on the screen '0110' ( this is the second screen) . the field timezone will be displayed on the screen only when we go for communications button and select the URL field .
    Do anybody have the solution for this problem. if possible can you give me the code for that screen.

    Create a recording via SM35 (menu go to=>recording), this will generate automatically the code for filling your bdcdata-table...

  • BDC for transaction J1IFQ

    Hi Experts,
    I am trying to develop BDC for transaction J1IFQ .
    When I do recording at the end I press SAVE it give me message that record is reconcilie and then I press logout.
    But when I use same recording in my program it dosn't save data. I am not able to find out what is the problem, please guide me.
    Thanking you.

    Hi Narayani
    It seems you need to inspect the new flow of the transaction and your BDC program more carefully. You might have skiped somethings to change.
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Creating bdc for transaction f-02 ?

    Hi People,
    I am going a bdc for transaction f-02 ..... my template involves 7 posting keys ( 40 50 31 01 29 09 70 ) ... depending up
    on the posting key the next screen will change .......... can you people tel me how to do this and what are all the logic
    involved in this program ?
    thanks u all in advance.
    Siva

    Hi,
    Please use the following format for your upload file template
    DocDate1    ComCd1    Currency1    pstky1
    DocDate1    ComCd1    Currency1    pstky2
    DocDate1    ComCd1    Currency1    pstky3
    DocDate2    ComCd2    Currency2    pstky1
    DocDate2    ComCd2    Currency2    pstky2
    Then use the following logic.
    At New Currency1
    add the header data
    DocDate1    ComCd1    Currency1
    Thus this code will run only once for every new Header
    and remain in the screen till posting key are entered.
    Regards,
    Lokesh
    Edited by: Lokesh Tibbani on Sep 5, 2008 12:17 PM

  • Hi All, I developed a BDC for transaction IE02

    Hi All, I developed a BDC for transaction IE02, when i am uploading data into this bdc 'validity period' is automatically taking the present system date, as in program i have not given any validations for this validity from Can anyone guide me on this as so why the data in validity from is taking present system date and how do i avoid it.
    Thanks..!!!
    Regards,
    Swarna

    Hi Swarna,
    AS you mention  IE02  Validity From is not editable.
    If you capturing this field in BDC then you can put hard-code date value sy-datum in this field , no need to chnage in excel or manual update every time.
    and If you are not capturing  this field in BDC  then please try to use BAPI for uploading data.
    like.
    BAPI_EQUI_CHANGE or
    BAPI_EQMT_MODIFY.
    Regards,
    Prasenjit

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

  • IPhoto 6 Unable to Zoom in Full Screen Mode when using projector

    When in full screen mode in iPhoto 6 I am able to zoom quite nicely but when I attach a projector I lose the slide for zooming. How do I zoom in full screen mode when using a projector?
    Mac Book   Mac OS X (10.4.9)  

    ParkerT
    Given that the zoom works normally, this is not an iPhoto issue. The problem lies in the interaction between your MacBook and the Projector. You might have more luck posting on the MacBook forum
    Regards
    TD

  • BDC for Transaction F-02

    Hi,
    Any idea how to write BDC for transaction F-02?
    The problem is how do we upload one item after another within the same loop?
    Regards,
    Naba

    You may solve easily your problem writing the data in the LOOP like
    LOOP AT IT_BSEG
      " if first line, fill BDCDATA for header and the first line call
      " if not first line, fill BDCDATA for the bottom of the previous line
      " fill ok code for next line
      " fill BDCDATA for the current line
    ENDLOOP.
    " fill ok code for save and call transaction
    But it should be easier to use FM like [POSTING_INTERFACE_START|https://www.sdn.sap.com/irj/scn/advancedsearch?query=posting_interface_start&cat=sdn_all]; [POSTING_INTERFACE_DOCUMENT|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=posting_interface_document&adv=false&sortby=cm_rnd_rankvalue] and [POSTING_INTERFACE_END|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=posting_interface_end&adv=false&sortby=cm_rnd_rankvalue], those function modules will build the BDC flow.
    Another, and better solution is to use [BAPI_ACC_DOCUMENT_POST|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_acc_document_post&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • When using ZCMMRR08 upload transaction it appears the Info-record may over

    "When using ZCMMRR08 upload transaction it appears the Info-record may over-ride the input data creating a pricing error."
    we have customize this transaction "ZCMMRR08" for contracting and price is suppose to update once a year,i am getting wrong price updated in contract display,any suggestions are welcome

    hi
    Refer the following link.
    http://209.85.173.104/search?q=cache:1nrU3_g6gdoJ:www.le.ac.uk/its/help/sap/mm46b_16.docInforecordHowtocreateME11%2Bsap&hl=en&ct=clnk&cd=6&gl=in
    Reward if helpful.
    Jagadish.

  • Uploading Different types of materials using BDC

    Hello Guyz,
    Could anyone please explain, How do you take care of uploading different types of Materials using BDC?
    There will be lot of Materials in my Flatfile of different Types, say Raw Material(ROH), Semi Finished Materials(HALB) , Finished Goods (FERT) and so on.
    How do you take care of the upload for different material types.
    Regards,
    Sudhir

    Hi,
      First take all fielsds in one itab,three recordings.
    Put the condition,
    If MTART = 'ROH'.
       send those fields in to another itab.
    append the itab.
    elseif mtart = 'HALB'.
       send those fields into itab1.
    append itab1.
    elseif mtart = 'FERT'.
    send those fields into itab2.
    append itab2.
    endif.
    if  not itab[] is initial.
    loop the itab
        here  ur performs
    endloop.
    endif.
    if not itab1 is initial.
    loop the itab1.
    performs.
    endloop.
    endif.
    if not itab2 is intial.
    loop the itab2.
    performs.
    endloop.
    endif.
    if it is helpful  give me the points

Maybe you are looking for

  • Kb2920189 fails to install on Windows 2012 R2 Essentials

    Hello, I have a 2012 R2 Essentials server that fails to install the UEFI KB2920189 update.  All other updates installed fine.  It's running two disks, one has 8.1 the other has 2012 R2 Esssentials in dual boot mode.  No VM.  I have heard reports of s

  • Is there a limit to the # of Channels that can be registered w/a Selector?

    An article on JavaWorld.com (http://www.javaworld.com/javaworld/jw-09-2001/jw-0907-merlin-p4.html) mentions an upper limit of 63 Channels registered per Selector. I've been searching the docs and this is the only reference I've found for this limit.

  • Is there any way to enable SSH via Terminal in the OSX Installer utility list?

    Hi guys, I've messed up my install a little on my internal HDD.. I can't boot into OSX as I keep getting kernel panics on boot. I was just wondering if there's any way I can SSH into my Mac Pro via the Terminal on the OSX Installer Utilities list.. I

  • Schedule in ODI

    Hi, i want to schedule a job in ODI.The job will run daily in every 2 hour from 12:00PM to 06:00PM. Can u pls suggest me how do i achieve this?How do i set the sceheduling options in ODI. I am using ODI version 10.1.3.4.4.. Thanks

  • No audio with BMCC CinemaDNG files

    Hi everybody. I'm importing my RAW footage into SpeedGrade in order to export it to an editable file (ProRes) and I have no audio. The Audio window is greyed out as well. The media has audio as I can hear it on other apps.