BDC not changing data

Hello All,
         I have completed the BDC on F-30 but new problem I am facing is that the data is not changing. Only first record is taken for all the uploads.
Kindly suggest where I am going wrong.
Following is my code.
Regards,
Dilip
LOOP AT IBSID.
clear tmp.
clear ibsid1.
refresh ibsid1.
********************To get index of BSID table
perform get_index.
clear tmp.
TMP = IBSID-DMBTR.
*To avoid automatic convetsion of date
clear : bLdat1, budat1.
concatenate iabsid-bLdat6(2) iabsid-bLdat4(2)
            iabsid-bLdat(4)
            into bLdat1
            separated by w_separator.
concatenate iabsid-budat6(2) iabsid-budat4(2)
            iabsid-budat(4)
            into budat1
            separated by w_separator.
perform bdc_header      using 'SAPMF05A' '0122'.
perform fnamval         using 'BDC_CURSOR'
                              'RF05A-NEWUM'.
perform fnamval         using 'BDC_OKCODE'
                              '=SL'.."'/00'.
perform fnamval        using 'BKPF-BLDAT'
                            bLdat1. "'08.10.2005'.
perform fnamval        using 'BKPF-BLART'
                   ibsid-blart.       "'PT'.
perform fnamval        using 'BKPF-BUKRS'
                    ibsid-bukrs."'KBL'.
perform fnamval        using 'BKPF-BUDAT'
                              '22.09.2005'.
perform fnamval        using 'BKPF-MONAT'
                              '6'.
perform fnamval        using 'BKPF-WAERS'
                   ibsid-WAERS."ibsid-waers."'INR'.
                   CLEAR NUMB.
perform fnamval       using 'BKPF-XBLNR'
                   ibsid-belnr.".'5503000049'.
perform fnamval       using 'BKPF-BKTXT'
                   ibsid-vtext."'10% ADVANCE RECEIPT'.
perform fnamval       using 'FS006-DOCID'
perform fnamval       using 'RF05A-NEWBS'
                              '09'.
perform fnamval       using 'RF05A-NEWKO'
                      ibsid-kunnr.        "'104410'.
perform fnamval       using 'RF05A-NEWUM'
                      ibsid-umskz."'A'.
perform fnamval       using 'RF05A-XPOS1(04)'
                              'X'.
perform bdc_header      using  'SAPMF05A' '0304'.
perform fnamval       using 'BDC_CURSOR'
                              'BSEG-ZUONR'.
perform fnamval       using 'BDC_OKCODE'
                              '=PA'.
perform fnamval       using 'BDC_CURSOR'
                           ibsid-BELNR.   "'BSEG-ZUONR'.
perform fnamval       using 'BSEG-WRBTR'
                         tmp ."'21417.04'.
clear tmp.
perform fnamval       using 'BSEG-GSBER'
                              GSBER."'BA02'.
perform fnamval       using 'BSEG-ZFBDT'
                    budat1  ."'22.09.2005'.
IF IBSID-PROJK <> SPACE.
perform fnamval       using 'BSEG-PROJK'
                     ibsid-posid."IBSID-PROJK."'C2I-05-03-T-E-D'.
else.
perform fnamval       using 'BSEG-VBEL2'
                     IBSID-VBEL2."'R21E5G0180'.
perform fnamval       using 'BSEG-POSN2'
                     IBSID-POSN2."'10'.
endif.
*perform bdc_field       using 'BSEG-ZUONR'
                             '5503000049'.
perform fnamval       using 'BSEG-ZUONR'
                           IBSID-BELNR."'5503000049'.
*perform bdc_dynpro      using 'SAPMF05A' '0710'.
perform bdc_header      using  'SAPMF05A' '0710'.
*perform bdc_field       using 'BDC_CURSOR'
                             'RF05A-AGKON'.
perform fnamval       using "'BDC_CURSOR'
                             'RF05A-XPOS1(03)'"'RF05A-AGKON'.
                             'X'.
perform fnamval       using "'BDC_CURSOR'
                             'RF05A-AGKON'
                         IBSID-KUNNR. "'102962'.
****Addition for screen to enter Document No.
*perform bdc_dynpro      using 'SAPMF05A' '0731'.
perform bdc_header      using 'SAPMF05A' '0731'.
perform fnamval       using 'BDC_CURSOR'
                              'RF05A-SEL01(01)'.
perform fnamval       using 'BDC_OKCODE'
                              '=PA'.
perform fnamval       using 'RF05A-SEL01(01)'
                        IBSID-BELNR."'5502700004'.
*RF05A-AGKOA.
****End Addition
perform fnamval       using 'BDC_OKCODE'
                              '=PA'.
*****Start of new code
perform bdc_header      using 'SAPDF05X' '3100'.
perform fnamval       using 'BDC_OKCODE'
                              '=OMX'.
perform fnamval       using 'BDC_CURSOR'
                              'DF05B-PSSKT(01)'.
perform fnamval       using 'RF05A-ABPOS'
                              '1'.
perform bdc_header      using 'SAPDF05X' '3100'.
perform fnamval       using 'BDC_OKCODE'
                              '=Z-'.
perform fnamval       using 'BDC_CURSOR'
                              'DF05B-PSSKT(01)'.
perform fnamval       using 'RF05A-ABPOS'
                              '1'.
perform bdc_header      using 'SAPDF05X' '3100'.
perform fnamval       using 'BDC_OKCODE'
                              '/00'.
perform fnamval       using 'BDC_CURSOR'
                              'RF05A-ABPOS'.
perform fnamval       using 'RF05A-ABPOS'
                              '2'.
perform bdc_header      using 'SAPDF05X' '3100'.
perform fnamval       using 'BDC_OKCODE'
                              '=Z+'.
perform fnamval       using 'BDC_CURSOR'
                              'DF05B-PSSKT(01)'.
perform fnamval       using 'RF05A-ABPOS'
                              index."'2'.
perform bdc_header      using 'SAPDF05X' '3100'.
perform fnamval       using 'BDC_OKCODE'
                              '=BU'.
perform fnamval       using 'BDC_CURSOR'
                              'DF05B-PSSKT(01)'.
call transaction 'F-30' using ibdcdata
                 mode 'A'
                 update 'S'
                 messages into ibdcmsgcoll.
clear : tmp,ibsid,ibsid1.
ENDLOOP.
FORM get_index.
******temp data declaration
data : itab1 like ibsid occurs 10 with header line,
       itab2 like ibsid occurs 10 with header line,
       itab3 like ibsid occurs 10 with header line..
******end temp data declaration
itab1[] = ibsid[].
loop at itab1.
   select bukrs belnr waers zterm kunnr bldat budat projk dmbtr xblnr
     buzei zterm infae from  bsid
     into corresponding fields of table Itab2
for all entries in itab1
     where belnr =
     itab1-belnr and kunnr eq itab1-kunnr and zterm eq itab1-zterm.
clear index.
     loop at itab2.
    read table itab2 with key
     belnr = itab1-belnr kunnr = itab1-kunnr zterm = itab1-zterm into
iabsid.
index = sy-tabix.
****just to test
break-point.
numb = iabsid-waers.
exit.
endloop.
exit.
endloop.
delete itab1 index sy-tabix.
delete ibsid index sy-tabix.
clear itab1.
ENDFORM.                    " get_index

Dilip,
Not refreshing is the problem in this case. Here is where you shoud refresh your internal table.
call transaction 'F-30' using ibdcdata
                         mode 'A'
                       update 'S'
                messages into ibdcmsgcoll.
clear : tmp,ibsid,ibsid1.
<b>refresh: ibdcdata.</b>
At this point your first transaction is complete, and you don't need that data anymore. You then start the next transaction's BDC data again.
Srinivas

Similar Messages

  • Can not change date from 2011 to 2012 in Elements 9 photoshop

    can not change dates from 2011 to 2012 in Elements 9 photoshop

    Thanks for the help. That was exactly  the fix I needed. With the expense of the photoshop software you'd think the company would fix stuff like this via updates. Merry Christmas.

  • Can not change data in Input Ready Query

    All,
    I have created an input ready query on an aggreagation level which has one transactional cube underlying it however, after run the query I am unable to change data in the cells even though I get a warning message saying query is ready for input
    Note:
    1. The underlying realtime cube is in "Planning Mode:Loading not allowed" state in rsa1
    2. I tried including all characteristics so that the record can be uniquely identified at that aggregation level).
    3. I am not using any characteristic restrictions
    4. I have not set any data slices
    5. I have set the property for Planning "Start query in Change Mode"
    6. I have set the 'Key Figure' Planning Properties to "Can be changed Manually or via Planning Functions" for the key figures
    7. I do not have currency/unit in row/column.
    8. There are any locks occurring
    Any pointers welcome.
    Thanks,
    Milind

    Hi Milind,
    Was wondering how was your problem solved. I get the same message when I run the query in web from query designer and in bex analyzer the cells are not updated with the changes that I make.
    I am hitting my head against the wall to figure what could be the problem as my plan query is simply based on aggregation level created directlty upon the real time info cube.
    Have cross checked all the points that you mentioned in this post but I cells do not change.
    There should be some way around to solve this problem.
    Thanks

  • BDC not inserting data in mandatory fields of MM01

    Suddenly My BDC for sales maintenance View is not working as it is not inserting data in Mandatory fields.?can any one tell me the reason

    Hi Satyanarayan,
    1. Check ur code in debug to see if your internal table contains value in mandatory fields
    2. Try executing BDC program online to figure out the problem....
    3. Check ur code to see whether u r assigning values to this fields...
    Let me know if these things are ok in ur code...
    Enjoy SAP.

  • Iphoto will not change date

    I have always scanned photos in and then changed the date to reflect the actual date the photo was taken.  Recently, I cannot change the date.  I type in the new year, but "adjust" remains greyed out.  On one batch of photos, it does not matter how many times I type 2003, iphoto just makes up a year.  1060, 1230, etc.  Help

    This should work.
    If you place the Current Date field from the Custom object library, the field should show you the current system date whenever you open the form.
    Or post your form to look into the issue.
    Nith

  • How to change data in decision table using excel file in operating system?

    Hello, BRF Experts
    I now brf + for the first time in the current project is being developed.
    Now, project has been facing a big problem.
    Develop system that was developed in the history of decision table in the operating system can be used to update excel file, etc. I do not know whether.
    So, I was tested, but can not change data in decision table.
    [ error message : system is not change allowed ].
    The operating system itself to the current system setting is immutable and check it
    : changes and transports for client-specific object -> no changed allowed
    : cross-client object changes -> no changes to repository and cross-client customizing object.
    Decision table in the operating system can update the details if I want to know what to do.
    Maintenance view can be modified in the operating system as a decision table, I wonder if you can create a view.
    Edited by: Sung-Wook Ha on Jan 13, 2012 2:02 PM

    Hi ,
    Exchanging data with Microsoft Excel is done with the help of the XML-based file format (file extension .XSLX) introduced with Microsoft Excel 2007. If you are using an older version of Microsoft Office, you can download the Microsoft Office Compatibility Pack to upgrade the supported file formats from the Microsoft Download Center ([Exchanging Decision Table Data With Microsoft Excel |http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466]). Once you have downloaded the Compatibility Pack, you have to install it on every workstation that has an older version of Microsoft Office installed.
    Please refer the link-
    [BRFplus-Data exchange with MS Office 2007|http://help.sap.com/erp2005_ehp_05/helpdata/en/b8/e03486d1df48c6baa3c4354f5198ee/frameset.htm]
    Hope this helps.
    Thanks,
    Ajay

  • What causes cellular data usage to decrease if last reset has not changed? I reset every pay period cuz I do not have unlimited and was showing 125 mb sent/1.2g received. Now showing 98mb sent/980mb received. Last reset still shows same

        I reset my cellular data usage every month at the beginning of my billing period so that I can keep track of how much data I am using thru out the month. I do not have the unlimited data plan and have gone over a few times. It's usually the last couple days of my billing cycle and I am charged $10 for an extra gig which I barely use 10% of before my usage is restarted for new billing cycle. FYI, they do not carry the remainder of the unused gig that you purchase for $10 which I disagree with. But have accepted. Lol  Moving on.
        I have two questions. One possibly being answered by the other. 1. Is cellular data used when I sync to iTunes on my home computer to load songs onto my iPhone from my iTunes library(songs that already exist)? 2. What causes the cellular data usage readings in iPhone settings/general/usage/cellular usage to decrease if my last reset has not changed? It is close to end of my billing cycle and I have been keeping close eye. Earlier today it read around 180mb sent/1.2gb received. Now it reads 90mb sent/980 mb recieved. My last reset date reads the same as before. I don't know if my sync and music management had anything to do with the decrease but i didn't notice the decrease until after I had connected to iTunes and loaded music. I should also mention that a 700mb app automatically loaded itself to my phone during the sync process. Is cellular data used at all during any kind of sync /iPhone/iTunes management? Is the cellular data usage reading under iPhone settings a reliable source to keep track of monthly data usage? Guess turned out to be more than two questions but all related. Thanks in advance for any help you can offer me. It is information I find valuable. Sorry for the book long question.

    Is cellular data used at all during any kind of sync /iPhone/iTunes management? Is the cellular data usage reading under iPhone settings a reliable source to keep track of monthly data usage?
    1) No.
    2) It does provide an estimated usage, but it's not accurate. For accurate determination, you should check the remaining/used MBs from the carrier (most of the carriers provide this service for free).

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Delivery dates in schedule lines is not changing in sales order

    Dear all,
    delivery dates in schedule lines on line item in sales order is not changing.delivery dates are different in schedule line of partial qtys.i have to do same delivery date on all schedule lines.
    Regards,
    Praveen

    Hi Praveen
    1. Schedule Line dates can be changed manually or by doing an availability check only.
    2. In case if you change the delivery date in the header it will not change automatically in the line item level.
    3. You need to do it manually only.
    kindly let me know more details.
    reg
    dsk

  • Schedule lines should not change 3 weeks time from MRP date

    Hi
    Is there any specific customisation required to get following results in case of schedule lines.
    1) MRP should not change/adjust the already send delivery schedule lines  which are lying within 3 weeks time from MRP date
    2) System should not allow to book the GRN unless the messages / print out has been generated from the system in case of scheduling agreement.
    Thanking you
    Shantakumar
    09944009752

    Hi,
    There are 2 possibilities:
         1. use MRP fixing using planning time fences, this is done by putting the relevant settings in the MRP1 view of the material master
         2. use the firming options of the scheduling agreement, these are set per material number that is entered in the scheduling agreement.
    The GR can only be posted for schedule lines that have been processed aka output generated.
    Regards,

  • Schedule line : delivery date not changes

    Dear Gurus,
    When I change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    Please help me to change the same and kindly tell me, will it make any problem.
    fyi..
    If I have not created delivery for the respective sales document, then I can able to change the delivery date in the schedule line(sales document).
    I'm just a new born in this area so please feed me...
    Regards
    Viswanthan.G

    Hi Viswanath,
    When you change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    This is because the system calculates the dates based on avaliabiltiy check and it picks data from material master as well, based on purchasing processing time, GR processing time, loading time ..etc and it will conclude accordingly.
    Its like system will do backward schdeuling and establishes material avaliabilty date.
    Thanks & Regards,
    Krishna

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, t

    Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, this is very annoying.
    And today it won't even read my camera's sd card, and I try with 2 different ones. If I restart the computer, leaving the memory card in, then it reads it; but if I pull it out and push it back in it doesn't see it. Whath am I doing wrong, if anything?
    Diane

    Where/how are you trying to change the name? If it is in Finder (after you've downloaded the pics to your desktop), highlight the pic icon and press Return. the name field will change and you can type in your new name. Hit Return again. That should make it "stick".  If you're trying to do it elsewhere, please post the steps that you've tried.
    As for your card: do you eject it properly? Either drag icon to trash or hit the eject symbol in the sidebar?

  • Collective orders header order basic finish date is not changing

    Hai all,
    I am working on collective orders. The header order has Basic finish date as 17.05.2011 . Now i have changed this date to 10.05.2011 and re scheduled the order . But again system changing the Basic finish date to 17.05.2011. how to solve this.
    In the outline dates also i have given finish date 10.05.2011 it is remaining the same but order Basic finish date is not changing and schedulded dates are also not changing. can anybody help.

    Hi gurus,
    In a collective order suppose the lead order is having three child orders.  Kindl
    If one of the child order is partially confirmed is the entire collective order can be rescheduled.
    If one of the child order is Fully confirmed is the entire collective order can be rescheduled
    Can any body help me out

Maybe you are looking for

  • It works in Apex but not in PHP?

    When I run the following from my php application/script I find that I get no data back but when I run just the SQL statement in Database Express' SQL Command console (Apex) I get good data back. $StartDate="2006/01/01 06:00:00"; $EndDate="2007/09/29

  • Connection to partner timed out after 60s

    Hi, I have a scenario HTTP to RFC. Where the user posts the data using the URL I have provided to get the response back from SAP system. Everything is working fine. But today we had a strange problem. When the user tries to post the data to integrati

  • HT4864 imap prefix

    Since upgrading to moutain lion icloud (me.com) mail has stopped working... I think I need to check the incoming and outgoing settings particularly IMAP which is grey's out

  • App can't work in iphone

    I can't download the app from this web https://play.google.com/store/apps/details?id=com.xlythe.saolauncher&rdid=com.xl ythe.saolauncher ..., please I love to download it please can you help

  • Converter doesn't works

    I wrote a converter to set a drop down list option value with an object, but it is not even called. package br.com.spdata.autorizadoronline; import br.com.spdata.orm.sghdados.sghtab.TbcreplsPK; import br.com.spdata.orm.sghdados.sghtab.model.TbcreplsM