Unable to incorporate multiple data in BDC * URGENT*

Hi EveryOne  .
  See the code. This code can do BDC for a single value of store and bonus buy no., in transaction  WPMA
The current requirement is for a given store all bonus buy values should get populated and then executed each time store wise.
Eg
    Store                            bonus buy values
    1001                               1
    1001                               2
     1001                              4
     1002                              A
     1002                             L
     1003                             6
     1003                             7
     1003                             H.
See the code below, and tell me the necessary changes required!!
report zwpma1
       no standard page heading line-size 255.
type-pools slis.
data: wt_fcat type slis_fieldcat_alv.
data: it_fcat type slis_t_fieldcat_alv.
data: cnt type sy-tabix.
*include bdcrecx1.
types: begin of ty_final,
       store(10) type c,
       docnum type docnum,
       bbynr type bbynr,
       end of ty_final.
types: begin of ty_final1,
       store(10),
       bbynr type bbynr,
       end of ty_final1.
data: wa_bonusbuy type zbonusbuy,
      it_bonusbuy type  standard table of zbonusbuy  with header line,
      it_bonusbuy1 type  standard table of ty_final1  with header line,
      it_t001w type  standard table of t001w  with header line,
      it_edidc type  standard table of edidc  with header line,
      it_edid4 type  standard table of edid4  with header line,
      it_final type  standard table of ty_final  with header line,
*Work areas:
        wa_edidc type edidc,
        wa_edid4 type edid4,
        wa_final type ty_final.
data :   it_bdcmsgcoll like bdcmsgcoll occurs 0 with header line.
data: bdcdata like table of bdcdata with header line.
data: lv_mode(1) value 'N'.
data : mtext(100) type c,
       mvar1      like balm-msgv1,
       w_msg(200) type c.
data : l_startt type sy-uzeit,   " Time before Recording
       l_endt type sy-uzeit,     " time after recording
       l_cdate type sy-datum.    " Current date
start-of-selection.
  call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
      percentage = 100
      text       = 'Extracting Data.......  '.
  select werks  from t001w  into corresponding fields of table  it_t001w.
  delete adjacent duplicates from it_t001w  comparing werks.
  if not it_t001w[] is initial.
    select store bbynr mmid from  zbonusbuy  into corresponding fields of table it_bonusbuy for all
    entries in it_t001w where store = it_t001w-werks.
    if sy-subrc = 0.
      sort it_bonusbuy by store.
    endif.
  endif.
  refresh it_t001w.
  loop at it_bonusbuy.
    move-corresponding it_bonusbuy to it_bonusbuy1.
    append it_bonusbuy1.
    clear: it_bonusbuy, it_bonusbuy1.
  endloop.
  l_cdate = sy-datum.
  clear l_startt .
  l_startt = sy-uzeit.
  loop at it_bonusbuy.
*break retaildev.
*perform open_group.
    perform bdc_dynpro      using 'RWDPOSAN' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SO_BBUY-LOW'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ONLI'.
    perform bdc_field       using 'PA_VKORG'
                                  'HB00'.
    perform bdc_field       using 'PA_VTWEG'
                                  'H2'.
    perform bdc_field       using 'SO_FISEL-LOW'
                             '1001'.
                            it_bonusbuy-store.
   LOOP AT   it_bonusbuy1 WHERE store = it_bonusbuy-store.
      if sy-subrc = 0.
        perform bdc_field       using 'PA_BBUY'
                                      'X'.
        perform bdc_field       using 'SO_BBUY-LOW'
                             'TEST_00035'.
                                     it_bonusbuy1-bbynr.
                                      it_bonusbuy-bbynr.
      endif.
      clear it_bonusbuy1.
   ENDLOOP.
*Refresh: it_bonusbuy1.
    clear bdcdata.
    call transaction 'WPMA' using bdcdata
         mode lv_mode
      UPDATE 'S'
         messages into  it_bdcmsgcoll.
    refresh bdcdata.
    clear it_bonusbuy.
  endloop.
  l_endt = sy-uzeit.
  break retaildev.
  select docnum
         direct
         credat
         cretim
         mestyp
         idoctp
         from edidc into corresponding fields of table it_edidc
         where
         credat = l_cdate and
         ( cretim  ge l_startt and cretim le l_endt )  and
         mestyp = 'WPDBBY'  and
         idoctp = 'WPDBBY01'.  "  "    l_startt and l_endt  and
  break retaildev.
  if sy-subrc = 0.
    select docnum
           counter
           segnum
           segnam
           sdata
           from edid4 into corresponding fields of table it_edid4 for all entries in it_edidc
           where
           docnum = it_edidc-docnum.
  endif.
*Loop at it_final into wa_final.
  loop at it_edid4 into wa_edid4 where segnam = 'E1WPBB01'.
    wa_final-store = wa_edid4-sdata(10).
    wa_final-docnum = wa_edid4-docnum.
    wa_final-bbynr = wa_edid4-sdata+10(12).
    append wa_final to it_final.
  endloop.
  delete adjacent duplicates from it_final comparing docnum store bbynr.
  sort it_final by store.
  clear: wa_final,wa_edidc, wa_edid4.
  refresh : it_edid4, it_edidc.
*ALV OutPut
  write :'Following are the Idocs posted successfully Storewise' .
  loop at it_final.
    write :  it_final-store , it_final-docnum , it_final-bbynr   .
  endloop.
*Break retaildev.
  perform top_of_page.
  perform alv_layout-settings.
  perform zalv_fieldcatpopn using it_fcat.
  perform z_reuse_alv_grid_display.

Have you tried serialization and sendingas an object using something like Zend AMF?
Please mark this question as answered if this works for you.
-Mr.12

Similar Messages

  • SP online 365 - Unable to render the data. If the problem persists, contact your web server administrator.

    Help needed urgently, i'm pulling my hair out on this one!
    Using SharePoint online (365) I am trying to create an external list to a SQL table. I go through the steps in SP designer and finally create the external list but when I go to the list I get the error:
    Unable to render the data. If the problem persists, contact your web server administrator.
    I have read all of the posts on here to fix this and they are mainly for on premise; the powershell doesn't work with spOnline and I have added permissions into the BCS service application but nothing works. I read that it is not possible to connect
    sharepoint online to an on-premise SQL database so I moved the SQL database to an azure SQL service server but I still get the same error.
    I have a "test" on premise sharepoint which I have tried this on and it works fine so it must be an issue with SPonline! does anyone know how to get BCS connections to external data working in sharepoint online as external lists?

    Hi,
    In SharePoint online, we support:
    Business Data Connectivity (BDC)
    Data Source types, including Windows Communication Foundation (WCF) 
    SQL Server Azure connectors
    I'd suggest you refer to the article below:
    https://support.office.com/en-us/article/Make-an-External-List-from-a-SQL-Azure-table-with-Business-Connectivity-Services-and-Secure-Store-466f3809-fde7-41f2-87f7-77d9fdadfc95?ui=en-US&rs=en-US&ad=US
    It describes about how to use SharePoint technologies to access data from a SQL Azure database without having to write code, including create an External List by using Business Connectivity Services (BCS) and Secure Store. BCS connects SharePoint solutions
    to external data, and Secure Store enables user authentication for the data. By using an External List, you can display the contents of a table from SQL Azure in SharePoint Online. Users can read, edit, and update the data, all in SharePoint Online.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Can we create multiple session in BDC using Call session?

    Hi Experts,
    Can we create  multiple sessions in BDC using Call Session?
    Scenario:
    Program has to upload 1 million records,so can we programmatically create multiple sessions such that after every 50thousand records we create a different session.
    For moment due to large number of records BDC DYNPRO and BDC Field are unable to hold the large number of records,due to which we get a Out of memory error.
    Thanks in advance.
    Shilpa

    Hi
    If ITAB is your table with the data to be transfered:
    Open the first session:
    CALL FUNCTION 'BDC_OPEN_GROUP'.........
    IF SY-SUBRC = 0.
      FL_OPEN = 'X'.
    ENDIF.
    LOOP AT ITAB.
    IF FL_OPEN = SPACE.
    Create new session
    CALL FUNCTION 'BDC_OPEN_GROUP'.........
    IF SY-SUBRC = 0.
       FL_OPEN = 'X'.
    ENDIF.
    ENDIF.
    Here elaborate your data and fill BDCDATA
    Insert the transaction:
    CALL FUNCTION 'BDC_INSERT'
    IF SY-SUBRC = 0.
      COUNT = COUNT + 1.
      IF COUNT = COUNT_MAX.
        COUNT = 0.
    Close the session
        IF FL_OPEN = 'X'.
          CALL BDC_CLOSE_GROUP
          IF SY-SUBRC = 0.
            FL_OPEN = SPACE.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDLOOP.
    Max

  • Unable to load multiple files to Essbase using MaxL and wildcards

    I have multiple data files to load:
    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    However, when I try to run the following I receive the following error:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Error:
    ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
    ERROR - 1241101 - Unexpected Essbase error 1003027.
    I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Any ideas? And how about ASO databases?

    JamesD wrote:
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
    Import Data
    11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
    11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to open external list : Error : Unable to render the data. If the problem persists, contact your web server administrator.

    Hi,
    Please note we are using SQL Server 2008 for sharepoint. Does it matter for this issue?
    Please help.
    Thanks.

    Hi,
    According to your post, my understanding is that you failed to open external list.
    Please change the External Content’s connection properties’ Authentication Mode to BDC identity.
    Then launch the SharePoint 2013 Management Shell and run the PowerShell commands to remove the error.
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/69d937e6-f4a3-40e0-b57f-67cddb4ed12e/sharepoint-2013-unable-to-render-the-data-if-the-problem-persists-contact-your-web-server?forum=sharepointcustomization
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Sharepoint ONLINE - Unable to render the data. If the problem persists, contact your web server administrator

    Hi,
    I have followed the steps in the following link:
    Make an External List from a SQL Azure table with Business Connectivity Services and Secure Store, but I keep receiving the following message when I try to access an external list:
    "Unable to render the data. If the problem persists, contact your web server administrator"
    Note: I'm using SharePoint 2013 ONLINE, and (as far as I know) I have no access to the logs & powershell.
    Any body has had the same issue before?
    Regards.
    Note: I have tried changing my ECT's connection property (through designer 2013) to BDC Identity, but I keep receiving the following error message:
    The metadata object that has Name "xxxx" has a Property with name "AuthenticationMode" and value "RevertToSelf". This value indicates that the runtime should revert to the identity of the application pool, but reverting to the
    application pool is not permitted for partitioned service applications.
    Saeed Fattahi .NET Specialist

    Try changing the External Content’s connection
    properties’ Authentication Mode to BDC identity. You will most like get an error (which I have shown below)
    Below is an error you will received. Read through
    the error carefully.
    Launch the SharePoint 2013 Management Shell
    and run the below commands
    $bcsServiceApp = Get-SPServiceApplication
    | where {$_ -match "Business Data Connectivity Service"}
    $bcsServiceApp.RevertToSelfAllowed
    = $true;
    $bcsServiceApp.Update();
    This Solved the problem for me. you can try
    Sharepoint | TechCenter franklin

  • How to send multiple data files / music files using bluetooth / whatsapp / emails...

    hello everyone,,,
    is there any option to send multiple data files / music files using bluetooth / whatsapp / emails...
    as option to select multiple files using "SELECT in menu option / left aA"+ scroll tracepad" is availble with pictures only.
    and while receiving files via bluetooth i'm unable to do any other activity.

    One at time, via Bluetooth.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Multiple lines in BDC

    Hi,
    I have to deal with multiple lines in BDC.
    I am using the FM READ_TEXT.
    Now I am getting the multiple lines text through above FM in my itab.
    Then I made loop at itab & under this I wrote the screen-fields.
    But I m getting only last value in my screen.
    could anybody will suggest me what I need to do??

    what is the need of using FM read_text ?
    screen fid may not hold all the data of itab.
    Regards
    Prabhu

  • How we will multiple trans in bdc

    how we will multiple trans in bdc what r the possile combination like one is bck n one in no disply mode how error can handle

    Hi
    We have different data sources for sales order header, sales order item level, delvivyer hedear level, delivery item....
    The data will be updated based on Sales order number, delvery number etc..
    Whatever changes you do a sales order, it has a unique number. WIth this as primary key all the related updates are maintained.
    Even for sales order item detail, we refer the header number of sales order and do the updates
      *if useful******
    Thanks
    N Ganesh

  • Multiple Dates in Get Info Window

    Hello,
    We have an iMac running OS 9.2.2.
    I just noticed this the other day: I'm finding multiple dates in the Created and Modified fields in the Get Info window. For example, on a document I created today, the date reads: WedWed SepMay 63 20062006
    Apparently, Wed May3 2006 is being added to all the Created and Modified fields for all our documents.
    Has anyone experienced this or know how to remedy it?
    Thanks.

    See if rebuilding your desktop helps. Use Techtool Lite or Trash*Desktop (TD may delete Finder comments )to rebuild your desktop w/extensions off. Does a better job than manually & you avoid all the finger gymnatics. You just have to hold down the shift key to shut off extensions.
    Restart to turn the extensions back on again.
    If you want to rebuild manually, see KB article http://docs.info.apple.com/article.html?artnum=10182 Rebuilding Desktop File and Icon Recovery.
    If rebuilding does not work, then try booting from your system install cd (the one that originally came w/your comp) while holding down the c key & run Disk First Aid from the Utilities folder. Have DFA repair any errors it finds. If unable to repair you will need to run a 3rd party utility cd.

  • PI 7.3 - AEX "unable to read configuration data" and login problems

    Hello Friends,
    after installation of AEX, i'm facing some problems.
    1.I'm not able to login with any user, i created during installation wizard. So i cannot check any user in NWA -> User Administration.
    2.Once more, while opening http://<host>:<port>/rep or http://<host>:<port>/dir, i get the following error message.
    Can somebody help me?
    I think, there is a problem with the users, which have been created during installation. How can i check this? Is there any chance?
    Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    PI (http://<host>:<port>/dir/start/index.jsp). Below is the part of the error message that is showing up. Appreciate your suggestions:
    Exception class: com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed
    Message
    Unable to read configuration data (ExchangeProfile/aii.properties)
    Stacktrace
    Thrown:
    com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed: Unable to read configuration data (ExchangeProfile/aii.properties)
    at com.sap.aii.utilxi.prop.api.PropertySourceFactory.initServerMode(PropertySourceFactory.java:220)
    at com.sap.aii.utilxi.prop.api.AIIProperties.initServerMode(AIIProperties.java:518)
    at com.sap.aii.ib.server.applcomp.StartupServerProperties.initPropertiesForServer(StartupServerProperties.java:97)
    at com.sap.aii.ibdir.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:151)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:43)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:438)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:203)
    Please let me know if I am not clear.
    Edited by: Clarence on Feb 6, 2012 3:28 PM
    Edited by: Clarence on Feb 6, 2012 3:28 PM

    hi,
    >>>>Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    if you have java stack only there is no exchange profile anymore...
    https://weblogs.sdn.sap.com/pub/wlg/28334
    Regards,
    Michal Krawczyk

  • Unable to change the data in PSA

    Hello All,
    I have a delta failure because of invalid characters in one of the field and now i wanted to change the PSA. I have deleted the request from all data targets and started changing the error record, it is not showing all columns from PSA hence i am unable to change the data in required field.
    Could you please let me know how will i see all columns from PSA. Thanks
    Regards,Ashok

    Hi Ashok,
    To increase/decrease the number of columns that are displayed on the menu from the Settings option select Change display variants
    Also if you want to see say all the failed records you can sort the order of the data using the Status column

  • Unable to access the data from Data Management Gateway: Query timeout expired

    Hi,
    Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
    1. The gateway is in running status.
    2. Data source is also in ready status and test connection worked fine too.
    3. Below is the error in System Health -
    Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.        
    Error code: 4025
    4. Below is the error in Event Viewer.
    Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
    5. This is the correlational id for latest refresh failure
    is
    f9030dd8-af4c-4225-8674-50ce85a770d0
    6.
    Refresh History error is –
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
    managed IDataReader interface was being used: Query timeout expired. 
    Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
    Thanks,
    Richa

    Never mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
    Thanks.

  • Unable to send the data entered in sap portal

    Hi
    All
    i am trying to configure and test  Leave Request  from portal. When, we create the leave request and submit for the first time, it is giving the error/message Unable to send the data entered However, if do a submit for the second time, the same leave request, it sends the leave request.
    Please share your valuable thoughts or solutions.Thanks in advance.
    Tanks
    Rafi Shaik

    Hi Rafi,
    We are also facing similar kind of issue.
    When i select type of leave as annual it is giving an error message as
    " Parameter  missing in call of method BUILD_ACTOR_SELECT_CLAUSE in class CA_PT_REQ_ACTOR "
    But when i select some other leave type and click review it is working fine, again if i click on previous step and change the leave type to annual it is working fine without giving any error message.
    Please let us know how you have solved your issue?
    Thanks.
    -Suresh

  • The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.

     We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
      [ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. 
     The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. 
     The component returned a failure code when the pipeline engine called PrimeOutput(). 
    The meaning of the failure code is defined by the component, 
    but the error is fatal and the pipeline stopped executing. 
     There may be error messages posted before this with more 
    information about the failure.
    Anything that we can do to fix this?

    Hi,
      Tried both....
      * Having schema type as Nvarchar(max). - Getting the same error.
      * Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
           [OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
           [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure
    code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the
    failure.
    Additional Info:
       * Here the Source task is getting failed not the conversion or destination task.
    Thanks,
    Loganathan A.

Maybe you are looking for

  • Satego P100 - Screen goes black

    Hello, if i power up my notebook there are no problems. After maybe 5 minutes the screen goes Black and after some minutes there is comming a bluescreen. The notebook restart. But now I have lines over the display during BIOS display and the Windows

  • Calibration Wizard with VIsta for Audig

    I didn't see the "calibration wizard" listed anywhere so I am posting a download for it with everything needed to get the Calibration Wizard woking with Vista. Takes about 30 seconds and there is no installation. Just copy the included Calibration Wi

  • Ridiculously slow music transfer

    Yesterday i bought myself an iphone, upgrading from my itouch which was quite fast at transfering music. so this morning i tell it to fill itself up with music (32 gig) and 4 hours later i came back and it had less than 400 songs transfered. 100 song

  • Need help in clearing string buffer during dynamic VO where clause in oaf

    Hi All, I am dynamically setting where clause in OAF using string buffer, but the issue is when i am executing the vo multiple times so the old data in the string buffer it is not clearing .so every time my where clause adding to the query and it is

  • Oracle ADF - multiple requests to server for just one click

    Hi, I am using jDev 11.1.1.4.0 In my application when I want to navigate from one page to another, Two requests for server are, one for current page and other for requested page. The result is fine, but why does these 2 requests? I have used filters,