Handling Export Parameters

Hi Friends,
How to handle the export parameters from a BAPI? When i import a BAPI as a model the context has got two interfaces - BAPI_xxx_Input and BAPI_xxx_Output. The BAPI_xxx_Input has got both the import parameters and the tables parameters under output.I have created a service controller for this model and created a model node corresponding to BAPI_xxx_Input. So I am recieving the TABLES under the same node after wdContext.currentBapi_xxx_Input.modelObject().execute().
This is ok with the TABLES and i am getting the return values. But When i try to bind the Export parameters (Structures) i end up with an error. So i had to create a model node corresponding to the BAPI_xxx_Output and bound all the export parameters. But i am not getting any values for the export parameters.
Theres no execute method under wdContext.currentBapi_xxx_Output.modelObject()
How to go about it? Thanks in advance.
Nathan.

Got it solved

Similar Messages

  • Handling the search help exporting parameters.

    Hi all,
    I am using a search help for an input field.My requirement is that on the selection of a row in the displayed result for search help two other fields needs to be populated in the UI , which actually are the exporting parametrs of the search help.I mean to say how to handle the exporting parameters of a search help so as to populate other input fields in the UI.

    This is possible with the DDic Search help.  From the online help:
    If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
    If the context node is not mapped to the structure, the data element's input help can be used if there is one.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

  • Web Service Export Parameters missing when consumed by Visual Studio 2005

    Hi,
    I am using Visual Studio 2005 (2.0 framework) to consume bespoke SAP Web Services (SAP 4.7) however some of the export parameters are missing. I have tested the SAP web services with various XML tools and they all work perfectly.
    Is there anything I can do to enable Visual Studio to genarate the correct proxy?
    Many thanks for any tips.
    Billy

    This isn't going to work as well as I had thought.
    That is correct that the Name and Value fields come back as XmlNode arrays. Each XmlNode array contains two XmlNode objects (or one if you received a null value from the db). One object contains the atrributes and one contains the value. I had planned on going into the ColumnValueType Value field and pulling the text of the 2nd XmlNode object.
    Now here is the problem:
    For every column you select you get a ColumnValueType object. Rather than being contained in some type of "Row" parent object, each column sits in the root of your results. For example, in the query I am using I am asking for the AlertingName and DnOrPattern columns of the NumPlan table. My results come back like this (simplified):
    AlertingName
    John Doe
    DnOrPattern
    1234
    With the data in this format, I can't just do a foreach loop and iterate over the ColumnValueType objects.

  • Export Parameters in Parameterized Message Mapping does not work.

    Hello, XI-Gurus!
    I have a question: how to use an EXPORT parameter in Parameterized Message Mapping? seems it does not work...
    (I use XI / PI 7.1)
    For example, I have a follow scenario: a large message comes to XI from one BS (message contains a lot of rows), then this large message splits to some small messages (something about 1000 rows in one small message), and send small messaeg one by one from XI to second BS. So, after receive step I use a transformation step with Parameterized Message Mapping to get a total amount of rows in large message (it needs for making condition for loop in IP, for example). I want to use an EXPORT parameter to pass this number from Parameterized Message Mapping to Integration Process. How can I do it?
    Of course, I know the way to how to make this scenario without any parameterizing, but I want to use exactly "Parameterized Message Mapping" like it writes in this help:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm
    This topic contains something about procedure how to use an EXPORT parameter, but this procedure does not work. I don't understand how to write this UserDefined Function, which I can set any export parameters.
    I read this blog:
    /people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
    this blog has NO solutions about EXPORT parameters. about IMPORT parameters - everything OK.
    Some topics about how to use export parameters in MM in this forum marked as "answered", but this is not true.
    How to export parameters from Message Mapping
    Export parameter REALLY work in message mapping???????
    Export parameter in Message mapping UDF
    WBR,
    Vsevolod

    Hi Rudolf,
    It still does not works.
    Great thanks for all your answers! If your advice works on your PI-server, it means that my problem not in UDF.
    Step by step:
    1) I create in "Signature" tab two parameters: FILE_NAME, FILE_TYPE (of course, they both Export and xsd:string type)
    2) Then, I goes to "Functions" tab and create new function "testUDF" with one argument var1.
    3) In body of this UDF insert 2 strings:
       getOutputParameters.setString("FILE_NAME" , "Order");
       getOutputParameters.setString("FILE_TYPE" , "PDF");
    4) in "Definition" tab I bind function "Local.testUDF" with one field in my input message and goes to "Test" tab for testing.
    5) And then I have a message window "Problems While Testing":
    Source text of object Message Mapping: mm_ParamMap | urn:****.*.:****:TEST has syntax errors:
    Function testUDF, Line 1:
    cannot find symbol
    symbol  : variable getOutputParameters
    location: class com.sap.xi.tf._mm_ParamMap_
    getOutputParameters.setString("FILE_NAME" , "Order");
    ^
    Function testUDF, Line 2:
    cannot find symbol
    symbol  : variable getOutputParameters
    location: class com.sap.xi.tf._mm_ParamMap_
    getOutputParameters.setString("FILE_TYPE" , "PDF");
    ^
    Note: /usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb1562570ca9e11deb3fe00237d301cd6/source/com/sap/xi/tf/_mm_ParamMap_.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details. Note: /usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb1562570ca9e11deb3fe00237d301cd6/source/com/sap/xi/tf/_mm_ParamMap_.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Look at this notes, first writes that I use a deprecated API, second - about unchecked or unsafe operations.
    And I have no idea what's wrong... Can you help me?
    Thanks!
    WBR,
    Vsevolod

  • Table in import and export parameters

    Hi,
    this is a general doubt. can we pass an internal table in import/export parameters of FMs. I know there are table parameters, but can this be done in import export parameters.
    Regards,
    Vijay

    Hi vijay,
    1. if we pass thru TABLES,
      then we can pass an internal table,
      WITH HEADER LINE
    2. But if we use import/export,
       it has to be a TABLE TYPE
       defined in the data dictionary.
      (This table type will not have any header line).
    regards,
    amit m.

  • Difference between Import and Export parameters in Function Module

    Hi All,
    I am unclear about the import and export parameters, when i create a function module. Can anyone explain abt this. However when i call the function module in any program the import parameters in Function module are displayed as exporting in program amd the export parameters as importing.
    Any help on this would be appericiated.
    Shejal.

    HI,
    Import parameter in FM is the value u provide to FM for processing.
    export is the value u get from FM after processing.
    when u call a FM in a progam the import parameter will appear as Export bcos u r giving value to the FM.
    and u r getting value from FM in import parameter(bcos u r importing).
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • Import and export parameters of an FM are passed by value---why?

    Q]      By default the import and export parameters of an FM are passed by value---what is  the advantage of this system?

    Hi,
    Import and export parameters are, by default, passed by value. However, they can also be passed by reference. Tables parameters can only be passed by reference.
    Pass by reference means, passing the address itself rather than passing the value.
    I guess passing by value is easier and advantageous

  • Import and export parameters.

    Hi Experts,
    If I am using import n export parameters for getting data from a different program into my main program, do i have to declare the variables again in the second program.
    For ex:
    The main report has the following piece of code:
    data: int1 type I,
            int 2 type I.
    export: int1 to memory id 'mem1',
               int2 to memory id 'mem2'.
    submit report 'call_report' and return.
    The call_report has the following piece of code:
    import: int1 from memory id 'mem1',
               int2 from memory id 'mem2'.
    So if I am not declaring int1 n int2 explicitly in this report, i get the syntax error that they r not defined.
    My confusion is that when v r exporting int1 n int2 from the main report, then y is the explicit declaration required?
    Is ther no other way out than decalring int1 n int2 in the call_report.
    I will reward all the helpful answers.
    Thanks,
    Ajay.

    Hi Ajay,
    With EXPORT u r not exporting the variable and its definition but the content(data) of the variable u r exporting. So if u want to get the content in another program then u have to declare the variables of same type in the calling program also. Similarly with IMPORT u are not downloading the attributes of the field but only the content of variable u exported earlier.
    Another point to remember is u have declare the variable in the second report with the same name and type as of first report.
    Also check below piece of code which is similar to ur req
    First report
    REPORT Z75694_TEST .
    DATA: i_data TYPE i VALUE '1111'.
    EXPORT i_data TO MEMORY ID 'VINOD'.
    CHECK sy-subrc IS INITIAL.
    WRITE: 'Exported'.
    SUBMIT Z75694 AND RETURN.
    Second report
    REPORT z75694.
    DATA i_data TYPE i.
    IMPORT i_data FROM MEMORY ID 'VINOD'.
    WRITE:/ i_data.
    It is working fine.
    Hope this clarified ur doubt.
    Thanks,
    Vinod.
    Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:35 AM
    Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:44 AM

  • Export parameters for iDVD compatibility

    Hi everybody,
    I export some keynote presentation with sound capture to quicktime.
    When I collected several of those exports, I'd love to create a DVD with iDVD.
    When I drop the generated quicktime movies onto iDVD, iDVD will re-encode them to a proper iDVD format for burning.
    I noticed that when I use Share->Transfer to... -> iDVD, Keynote generates a quicktime movie that is included in iDVD but that does NOT require a new encoding of the movie.
    My question is: Which Keynote quicktime export parameters should I use in Keynote to prevent re-encoding in iDVD? (codec, format, speed, throughput, etc. are they all important?)
    Many thanks for your help.

    Hi,
    Check the below code
    PERFORM get_materialbatch CHANGING i_mchb.
    FORM get_materialbatch  CHANGING fp_i_mchb TYPE ty_tab_mchb
    The values that are changed will get updated in the i_mchb..
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 3:13 PM

  • How to store export parameters in eCATT?

    Hi all,
    I am quite new to eCATT. My VA01 recording receives different variants from an Excel-file and now I'm trying to chain VA01 with VA02.
    My VA01 test script creates 5 sales orders. An export parameter is generated only from the fifth sales order number. VA02 gets this export parameter as import parameter and everything works fine. But is it possible to store <b>all</b> sales order numbers and use them as export parameters? I would like to use several sales order numbers as import parameters in VA02. Now only the fifth sales order number is exported to VA02 transaction via REF commands. Could these export parameters be downloaded e.g. to an Excel file so that VA02 could upload them from there and use them as its import parameters?
    I would really appreciate the help!
    Regards,
    Linda

    HI Linda,
    Create an export variable and in the parameter reference give the field reference of the field like this VBELN[], then this forms a structure parameter...
    Then place all your recorded SAPGUI/TCD with in Message/EndMessage Block, and make a rule as an expected message, something like this...
    MODE                    MSGID           MSGNR    MSGV1
    'E'               '/DBM/COMMON'     467     E_VBELN     
    MSGID & MSGNR might differ in your case use them accordingly, also check the previous log and make sure that the order number is MSGV1, if it is in MSGV2, place the variable E_VBELN in the MSGV2 field of the message Rule.
    This should generally fetch you all the order numbers...
    But in some situations it didnt work in my case, so here is the second solution...
    MESSAGE ( MSG_1 ).
    SAPGUI/TCD RECORDING
    ENDMESSAGE ( E_MSG_1 ).
    DO ( &TFILL ).
    IF ( E_MSG_1[&LPC]-MSGID = '/DBM/COMMON' AND E_MSG_1[&LPC]-MSGNR = 467 ).
         E_VBELN[V_COUNT]-TABLE_LINE = E_MSG_1[&LPC]-MSGV1.( V_COUNT Should also be declared, but as a local variable)
         V_COUNT = V_COUNT + 1.
    ENDIF.
    ENDDO.
    This was you will get all the order numbers in one variable, which you can access in any script while looping the varable based on its length..
    Check and modify accordingly.
    Hope this helps..
    Best regards,
    Harsha
    PS: award points if this answer helps solve your issue.

  • Problem passing an export parameters in rfc call using the function control

    Hello,
    I use SAP Remoute Function Control (wdtfuncs.ocx) in my C++ application. I can execute remote functions, if they don´t need any export parameters:
    CSAPFunctions m_Functions;
    CFunction f;
    f.m_lpDispatch = m_Functions.Add("RFC_CREATE_DOCUMENT_MASTER");
    f.Call();
    How can I set the export parameters?
    Any help appreciated.
    regards,
    Vladimir

    check out this thread
    Re: Sample code in ASP to connect SAP?
    Regards
    Raja

  • RFC export parameters missing

    Hi all,
    My scenario is SAP 4.6 RFC to XI 3.0 to SAP 4.6 RFC...I created function Z_SEND_PCARD_PAYMENTS in 4.6 with export and table parameters....Imported this into XI...Setup messages, interface mappings, etc...When I execute RFC (async) using dest XI and look at XML monitor....I see only my table parameters....My RFC export parameters do not show in the payload....
    Thanks,
    Wiley

    Hi,
    import parameters in the RFC
    are EXPORTING (not export)
    parameters in the calling program
    >>>Setup messages, interface mappings, etc...
    did you define messages in XI for request RFC or response?
    (it should be for request)
    EXPORTING parameters from your abap report are
    import parameters in th RFC and these are request RFC messages in the XI repository
    at least that's how it works for me:)
    Regards,
    michal

  • Changing Export parameters

    Is there a way to customize the export parameters instead of selecting from just a few choices, like medium, large, high def, .... can we change the medium to be better quality?

    Export using QuickTime. You will have a lot of choices.

  • Batch Loader Command Execute Export Parameters() not in Documentation

    Hello,
    I'm trying to use the Batch Loader Command Execute Export Parameters() command to export my shared library into a text file and do not see the any detailed references in the epma doc, although the doc does mention Export. We're on 11.1.1.3.
    I tried to use something similar to the Import, but it is still not correct.
    Execute Import Parameters(importtype, profilename, filename,waitforcompletion) Values('flatfile', 'Comma', '.\AppFiles\CommaApp.ads','true');
    Has anyone any ideas on the required parameters to use? Many thanks.
    regards.
    Edited by: cg on Feb 29, 2012 6:14 AM

    John, thank you for your reply. Is there a way to automate the file generator to generate the ads file every night? Or by use of some other command?
    Also, Export is mentioned in the doc, but perhaps that was added but never implemented for this version.

  • How to retrieve export parameters using startrfc?

    When using the standard SAP client program <b>startrfc</b> to  remotely call an ABAP function in SAP, is it possible to retrieve the export parameters?
    The startrfc program only seems to allow you to send an import parameter (using the –E option)  and to send/retrieve a table, using the –T option.
    For example, the function BAPI_USER_EXISTENCE_CHECK exports the parameter RETURN of type BAPIRET2. How can you retrieve this export parameter using the startrfc program?

    HI Linda,
    Create an export variable and in the parameter reference give the field reference of the field like this VBELN[], then this forms a structure parameter...
    Then place all your recorded SAPGUI/TCD with in Message/EndMessage Block, and make a rule as an expected message, something like this...
    MODE                    MSGID           MSGNR    MSGV1
    'E'               '/DBM/COMMON'     467     E_VBELN     
    MSGID & MSGNR might differ in your case use them accordingly, also check the previous log and make sure that the order number is MSGV1, if it is in MSGV2, place the variable E_VBELN in the MSGV2 field of the message Rule.
    This should generally fetch you all the order numbers...
    But in some situations it didnt work in my case, so here is the second solution...
    MESSAGE ( MSG_1 ).
    SAPGUI/TCD RECORDING
    ENDMESSAGE ( E_MSG_1 ).
    DO ( &TFILL ).
    IF ( E_MSG_1[&LPC]-MSGID = '/DBM/COMMON' AND E_MSG_1[&LPC]-MSGNR = 467 ).
         E_VBELN[V_COUNT]-TABLE_LINE = E_MSG_1[&LPC]-MSGV1.( V_COUNT Should also be declared, but as a local variable)
         V_COUNT = V_COUNT + 1.
    ENDIF.
    ENDDO.
    This was you will get all the order numbers in one variable, which you can access in any script while looping the varable based on its length..
    Check and modify accordingly.
    Hope this helps..
    Best regards,
    Harsha
    PS: award points if this answer helps solve your issue.

Maybe you are looking for