WD java -- Bapi - Export structure is blank

Gurus,
We are calling R3 to save/change/create data. We do call BAPI_TRANSACTION_COMMIT after this and also they both are imported in the same model.
The following code executes successfully and bapi gets executed but data in the import structure does not get transfered:
projectNumber = wdContext.nodeZ_Gp_Save_008_Input().nodeGp_Detl_008().currentGp_Detl_008Element().getProj_Num();
wdContext.nodeZ_Gp_Save_008_Input().currentZ_Gp_Save_008_InputElement().modelObject().execute();
wdContext.nodeOutput_save().invalidate();
msgMgr.reportSuccess(projectNumber);
The data is in the child node [currentGp_Detl_008Element] equals to export structure in bapi is blank,
Just to recap bapi is been called successfully we are able to see a new record in R3 table but it is empty. It only has a timestamp and an identity they are both added by a bapi. but the data sent with the inner node [currentGp_Detl_008Element] through export does not make it to R3.
Help is very much appreciated,
Thanks
Shahid

Hi,
Did u write Two function modules or one?
If you are using the one function module Then that function module contains import and export params.
Here the input of the FNmodule is Import params and outof the Fn module u need to give any message after saving ur data in R/3 side for that sake u need to provide one value attribute from R/3 to WD side.
Do mapping and binding well and see the input will go correct or not.
Then it should work.
Or otherwise send me ur context structure and explain ur BAPI functionality such that we will see where is the problem.
Thanks,
Lohi.

Similar Messages

  • Export Parameter is blank....Business Connector

    Hi,
    I am using Business Connector to create a sales order thru web..
    For this i have created an RFC which internally calls a BAPI that creates sales order...in the BAPI some user Exits will get called in them i am exporting some message to MEMORY ID & importing after retuning to the RFC and assigened it to one of the export parameters of RFC ...Everything is wrking fine when I am testing the RFC on R/3..but thru BC the Export parameter is blank..
    I have tried set/get parameters & atlast ztable also...nothing is wrking..
    what might be the problem?How to capture that msg & display thru web?
    (Note : when dat export parameter is hardcoded in RFC that is getting displayed thru BC)
    Thanks in advance
    Swathi Vuddala

    Hi,
    Have look at this,
    http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    Regards,
    Akshay.
    reward points if find useful.

  • URGENT--Converting the BAPI return structure to XML

    Hi,
    I need to convert the return structure(export parameter) from a BAPI call to XML but not able to make out how to do that.
    Before this I was required to convert the BAPI return table(export table) to XML and I did that by first converting it to the AdoDataTable, added it to a dataset and then used the builtin function to return the dataset in XML format. But here I am not able to make out how can I do the same with the Export structure.
    Any help would be appreciated.
    You may also mail on [email protected]
    regards,
    Ankit Bhansali

    If the XML schema that you find as Xml attributes on the fields of the structure is good for you, you can just use the XML serializer to serialize it out:
    XmlSerializer ser = new XmlSerializer(typeof(BRFCKNA1));
    ser.Serialize(...);

  • How to create a log file for bapi return structure

    Hi ppl,
         I am using BAPI_PO_CHANGE to mark the delivery of POs as complete after many validations through a classic report now my concern is i have been asked to create a log file which details the errors in the POs which is in the bapi return structure.
       I don't know how to do can any one help at the earliest.
    Regards,
    Bharathy.

    hi
    pls see this thread...
    it may help you...
    /people/kamalkumar.ramakrishnan/blog/2007/01/10/a-primer-on-using-and-creating-sap-application-log
    thx
    pavan
    *pls mark for helpful answers

  • How to export structure DB to text file

    I want to export structure DB to text file for report to my manager.
    example: any objects(tables, indexs, constraints) and He need DDL command ("create table" command etc.)
    How to do this?

    Varies by database version.
    I would investigate DBMS_METADATA as described in the PL/SQL Packages and Types Reference manual and demoed in the Utilities guide at http://www.oracle.com/pls/db102/portal.portal_db?selected=3

  • Fields missing in import and export structure PPCO0001 - PPCO0023

    Hello Experts,
    I'm hoping that you can help me.  I am trying to add some logic in user exits to default data and do some checking in production orders.  It would be great if I could talk to you about what Iu2019m trying to do and the problem that Iu2019m running into.
    My main problem is that in the exits provided (enhancements PPCO0001 u2013 PPCO0023), most of the time either fields being imported or the field being exported do not include the fields that I want to change or check.  Iu2019m wondering if there is some way to just pull-in the data and change/check in addition to what is already available to the exit. - Can I append the structures?
    Hereu2019s an example below:
    u2022     PPCO0006 Enhancement to predefine fields in order header
    With this enhancement you can take fields from the order header in your own program and process them or define values for them and transfer the changed data again to the standard system. The transfer to the system takes place before you reach the order header screen. EXIT_SAPLCOZF_003   Exit for predefining fields in order header.  The fields in the order header (structure CAUFVD) are placed in the function exit. All the fields that you can define or change are defined in the structure HEADER_CUST. The contents of HEADER_CUST is transferred back to CAUFVD on leaving the function exit.
    Problem 1.
    The documentation sounds greatu2026. Seems like the right place --  all the data I need is supposed to already be in CAUFVD_IMPu2026. BUT HEADER_CUST and HEADER_CUST_EXP do not have the fields that I need change.  If I try to append the structure and include additional CAUFVD fields I either get a warning in the activation because of duplicate fields or If I try to add them as Zfields the program doesnu2019t take the change data because it does a move-corresponding from HEADER_CUST_EXP to CAUFVD and the Z fields donu2019t match.  - what is the correct way to change header values if the fields that you want to change are not already defined in the structure HEADER_CUST?
    Problem 2.
    It seems that this exit occurs prior to pulling in the data from the standard routing (which would normally populate CAUFVD-PLGRP ... at the time of the exit this field is blank so i cannot use it to determine the value for another header field.  I could get around this by reading directly PLKO but that won't help me if I cannot add CAUFVD-FEVOR as a field availble for changing/defaulting.
    Problem 3.
    If I get around Problem 2, I still have another problem.  In PPCO0007& PPCO0001 I'm trying to change the user status to block the order from being printined until it passes the validation check and is error free.  In PPCO007 I can block the order from being saved or in PPCO0001 I can raise a message that an error was found... but I need to change the user status at the same time as rasing the error or blocking the save.
    Thanks so much for any guidance that you can give.

    Dear,
    When you do so, in the PPCO0001 customer enhancement, you should carry out follow actions based on the status changes since the contents of the STATUS_TABLE and STATUS_TABLE_OLD  Exist is EXIT_SAPLCOBT_001  and  CALL FUNCTION 'STATUS_CHANGE_EXTERN'
    For details refer the OSS note 86553
    Hope it will help you.
    Regards,
    R.Brahmankar

  • OLD RFC export structure being referred to

    Hello all,
    I am testing a XI to RFC call in PI. The structure of the export parameter was changed after being imported into IR and accordingly I did re-import the modified RFC into IR. The export parameter in IR reflects the latest correct structure. Whereas when I test my scenario, the interface is failing because the response from the RFC is still referring to the old export parameter structure and not the new one.
    In fact the response XML has the old RFC export parameter and hence its failing in mapping runtime because its unable to generate the newer version of the export parameter as expected by IR.
    *This is the error i am getting.
    RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:Vista_MR2A_Response_MT/Rows/RECORD_ID. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start*
    Can anyone please help on how to solve this problem.
    Cheers,
    Babs

    Hi,
    you also need to refresh RFC cache (by restarting RFC adapter service in visual admin for example)
    or by restarting java stack if this will be faster in your case
    Regards,
    Michal Krawczyk

  • Command to list and export structure of all tables.

    Is there a command in oracle which can list and export the structures of all the tables( table, column difination, constraints, etc)?
    Thanks!

    If you have Enterprise Manager Java Console (in 10g it's a part of Client, in 9i - Server, if I'm not wrong) you can use it to create a report about the database and instance structure (you can choose what you want to have on the report).
    You can also use UTL_FILE.PUT_LINE procedure and write the data from DBA_OBJECTS dictionary to the file.
    Cheers,
    Olimpia
    Message was edited by:
    Olimpia

  • MENGE...ALV...STRUCTURE..BLANK

    Hi folks,
         I  am using Reuse_ALV_list_display along with structure. In the structure for Menge field display i want BLANK space when quantity is ZERO.  Im getting 0.000 or 0 for ZERO, i want blank space to be displayed instead of zeros...I dont know what data element i can give so that in my structure i maintain MENGE field instead of quan datatype.
    Thanks.

    Hi!
    Did you use fieldcat ?
    If you use fieldcat. Do as following:
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_STRUCTURE_NAME = 'SPFLI'
        CHANGING
          CT_FIELDCAT      = GT_FIELDCAT.
      LOOP AT GT_FIELDCAT INTO GS_FIELDCAT .
        CASE GS_FIELDCAT-FIELDNAME .
          WHEN 'CARRID'.
              (Some properties was set here)
              GS_FIELDCAT-NO_ZERO   = 'X'. " Example
        END CASE.
    END LOOP.
    Then Zero field will display as blank.
    Thanks & Regard!
    huandv

  • How-To : bapi export table webdynpro bapi import table

    Hi folks!
    This is proving to be very difficult. my appreciation is <b>10 points to the first helpful answer!!</b>
    I am receiving an export table from one bapi (z_xxx_getlist) into my webdynpro. I want to then import the same table into another bapi (z_xxx_savelist) so it can be saved in R/3.
    - firstly I tried to map the the view's context attributes to the 2nd bapi, but that didn't work because it deleted the original mapping.
    - then I created a new context node for the save bapi and tried to sync data between the nodes, but only ran into nullpointer exceptions.
    What's the standard procedure for such a requirement?
    Great thanks,
    faB
    ps. this is related to this previously posted topic:
    copying data of 1 view context node to another></b><b></b><b></b>

    Never mind, the nullpointer exception was because ".currentZlo_Price_Display_InputElement()" should have been ".currentOutput_DisplayElement()"
    Hi.
    I have tried your suggestion, but I only get a nullpointer exception on the line shown below.
    RFC1 was already called and the data shown in a table.
    Many thanks,
    faB
    wdContext.currentZlo_Price_Change_InputElement()
      .modelObject()
    <b>  .setRelatedModelObjects(</b>
      "Zlo_Price_Ypr02",
      wdContext
        .currentZlo_Price_Display_InputElement()
        .modelObject()
        .getEt_Ypr02());
    stack trace:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.retrieveListClass(DynamicRFCModelClass.java:1248)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setRelatedModelObjects(DynamicRFCModelClass.java:779)
         at com.xxx.crm.pricemaintenance.PriceMaintCust.executeZlo_Price_Change_Input(PriceMaintCust.java:225)
         at com.xxx.crm.pricemaintenance.wdp.InternalPriceMaintCust.executeZlo_Price_Change_Input(InternalPriceMaintCust.java:392)
         at com.xxx.crm.pricemaintenance.ResultView.onActionUpdatePrices(ResultView.java:208)
         at com.xxx.crm.pricemaintenance.wdp.InternalResultView.wdInvokeEventHandler(InternalResultView.java:233)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Message was edited by: faB

  • Report views correctly in Report Viewer but on export or print, blank page inserted after every page

    Hi all
    I'm hoping someone has an idea what is causing this issue. I am using Crystal 2008 and have created many reports over the years, with no issue like this.
    I have had to create a label file for an Avery label that does not appear in the Crystal Reports default list of label definitions (have done this many times before for other labels, with no issue).
    The report displays perfectly in the CR Report Viewer, however once the report is sent either to PDF export or to the printer, an extra blank page is inserted after every page of the report.
    The fact that it displays correctly in the viewer means there is nothing in the report that is amiss.... there is something going on when the report is sent out.
    I've read a lot of similar problems, however the idea that it is a network problem doesn't explain why the hundreds of other reports I've created exactly the same way... do not have this problem!
    Does anyone know the answer to this puzzle?
    regards
    Kaz

    Hi Karen
    Here is the issue. When you look at the report in the viewer you see this:
    Notice the dashed line after the body of each label. That line is there because the report is formatted to be a column report:
    So the viewer shows you that there is another column to be printed / exported and that is what is happening with the report.
    - Ludek

  • Exported PDF is Blank (branched, formerly Re: InDesign CS6 Export to PDF has missing objects)

    Just recently went from CS5.5 to CS6 and now when I export files in InDesign to pdf they open and are totally blank. What am I doing wrong?

    Jeanne,
    I've brancehed this to a new discussion because I'm pretty sure your problem is differnt fromthe one inthe trhead where you posted originally.
    What's your OS? Are the PDFs opening automatically at the end of export, or are you opening them manually?
    Are your pages blank in ID if you switch to Preview mode?

  • Excel export contains a blank row for the Report Header

    Hi,
    I am getting a blank row as the first row in my SSRS report when exported to excel. I have already taken care of following things,
    1. I have hidden all of the Page Header items using Globals
    2. The position of Report Body Tablix is 0, that means there is no space between report header and Report Body.
    I have developed this Report in SSRS 2012, please let me know if any more details are required. I think even after hiding Header Items, excel creates a placeholder for page header. I can't remove header from my reports as it is needed to be published in
    pdf.
    Regards
    Mohit

    Hi Mohit,
    According to your description, you are getting a blank row as the first row in your excel report when you export the report to excel, you have hidden all the items in the Page Header by using the Globals, right?
    This blank row is for the page header, although you have hidden all the items in it, but it will still display when export report to excel. Because we can’t hidden the page Header directly. Normally, we can hidden all the items in the page Header, So in
    the design phase we can also see the blank area above the report body when preview.
    We have an alternative way by add the “SimplePageHeaders” setting in “RSReportserver.config” file, after configuration the page Header will not display in the first row of the worksheet but is rendered to the Excel page header. In Reporting Services, the
    “SimplePageHeaders” default value is “FALSE” and it indicates that the page header is rendered to the first row of the worksheet. In order to display the page header in the Header/Footer section of Excel, we need to set the “SimplePageHeaders” setting value
    to “TRUE”. I did a test on my local machine and here are my steps:
    Navigate to RSReportserver.config file: <drive:> Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\RSReportserver.config.
    Backup the RSReportserver.config file before modify it, open the RSReportserver.config file with Notepad format.
    Set the Excel rendering extension code like this:
    <Render>
    <Extension Name="EXCELOPENXML" Type="Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.ExcelOpenXmlRenderer,Microsoft.ReportingServices.ExcelRendering">
    <Configuration>
    <DeviceInfo>
    <SimplePageHeaders>TRUE</SimplePageHeaders>
    </DeviceInfo>
    </Configuration>
    </Extension>
    </Render>
      4.  Save the RSReportserver.config file.
    Note: Changing the rendering extension parameters only affects rendering operations on the Report Server.
    When I access to Report Manager and export the report(includes a page header) to Excel format, the blank row will disappear now.
    Similar thread for your reference:
    SimplePageHeader property in SSRS 2008 not working
    Removing 2 top blank rows when export to excel in ssrs 2008
    r2 report
    You can find more detail in these articles about the page header and page footer:
    Exporting to Microsoft Excel (Report Builder and SSRS)
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • What bapi return structure consists

    Hi experts,
        can anybody clarify my doubt regarding bapi's used for data transfer.
    when we r using bapi for data transfer how error transactions will be handled.
    what exactly return structure consists. can we get error transactions log in the return structure.
    plz reply me.
    Regards
    Trinadh.

    Moderator message - Please search before asking
    Please do not spam the forum with this sort of question
    post locked

  • Mapping Workbench Java Project Export Exception

    Hello,
    We're using TopLink Workbench 9.0.4.1 build 040128
    We are experiencing exceptions when we try to export our Mapping Workbench Project as a java project file. (We have never had this problem before).
    I fear we may have somehow corrupted the TopLink mapping project file(s) when we were last editing them. We can open the project file and all mappings and tables look clean. However, when we try to export the java project file we get an exception (see the stack trace below).
    Is there any way to recover our project file? We had made a lot of changes before noticing the problem with the java project generation. It would be a lot of work to go back to our last good back-up copy and apply the updates all over again.
    Here's the stack trace from the Workbench when trying to export the java project file:
    java.lang.NullPointerException
         at oracle.toplink.workbench.persistence.MWProjectToRuntimeProjectConverter.convertAggregatePathToFieldIntoTranslationDictionaries(MWProjectToRuntimeProjectConverter.java:189)
         at oracle.toplink.workbench.persistence.MWProjectToRuntimeProjectConverter.convertMappings(MWProjectToRuntimeProjectConverter.java:715)
         at oracle.toplink.workbench.persistence.MWProjectToRuntimeProjectConverter.convert(MWProjectToRuntimeProjectConverter.java:74)
         at oracle.toplink.workbench.model.MWProject.exportJavaSource(MWProject.java:885)
         at oracle.toplink.workbench.model.MWProject.exportJavaSource(MWProject.java:848)
         at oracle.toplink.workbench.ui.ProjectSourceGenerationCoordinator.exportProjectSource(ProjectSourceGenerationCoordinator.java:162)
         at oracle.toplink.workbench.ui.MainView.exportSelectedProjectsToJavaSource(MainView.java:616)
         at oracle.toplink.workbench.ui.ActionManager$50.actionPerformed(ActionManager.java:1395)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Are there many aggregate mappings in your project? Or do you know of any aggregate mappings or mappings in aggregate descriptors that have changed since you last exported your java source successfully. It appears that something in an aggregate mapping has become corrupted and I'm just wondering if you can narrow down where the problem might have occured. If this is possible, then try remapping those aggregate mappings and then generating the java source again.
    If it is not possible or this does not solve the problem, you will need to send this project and the class files in to support.
    Thanks,
    Karen Moore

Maybe you are looking for

  • Create EFT in XML Publisher

    I am trying to figure out how to create an EFT (Electronic File Transfer) file using XML Publisher. I have reviewed the XML Publisher User Guide but would like some sample code of a working template/data definition. Also, any help or insight that mig

  • Cisco WLC 2500 - 802.1x with Vasco Radius SMS OTP

    Hello folks, I have what seems to be a complex implementation with many things that need to be done on a customers network and I wanted to be pointed in the right direction. The current scenario is such, the customer has a Cisco WLC 2500 device that

  • Table manipulation

    Hi all, i need to do a load of stuff with my JTable, i am looking for answers just pointed in the right direction... 1. change font 2. change column and row size 3. make table transparent 4. change bg color of cells 5. dont allow user to change the s

  • Z-87 G45 No Sound with Windows 8

    Just built a new computer from scratch.  Z-87-G45 mobo gtx 670 ftw i-5 4670k 8gb ram windows 8 600w psu Its up and running perfectly, except for my audio.  The front panel is connected properly, headpones don't work in the jacks or in the back (green

  • My photoshop CC won't sync

    Im trying to back up all of my photoshop CC 2014 settings and it won't sync. I am connected to the internet and illustrator sync perfectly. Photoshop fails every-time it try's to sync. Can someone please give feedback on this error?