ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM

Hello ABAP Profs,
sorry I am BW.
<b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
I want to import a table into a Function Module, change it and export it again.
How do I have to define the Import- and Export- Parameters in the FM ?
The table looks looks this:
DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
/bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
Thanks a lot
Martin Sautter

Hi Clemens,
<u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
<u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
bases on Rowtype ZVPSHUB_ROW.
<u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
FUNCTION ZVP_SHUB_TAB_LOAD.
""Lokale Schnittstelle:
*"  CHANGING
*"     VALUE(SHUB_TAB) TYPE  ZVPSHUB_TAB
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab          TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab          TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine i called the FM
CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
    CHANGING
      shub_tab = shub_tab.
and it works ..
Thank You
Martin Sautter

Similar Messages

  • How to pass a value to the export parameter for a method (public instance)?

    Hello,
      I am trying ABAP OO newly. How to pass a value to the export parameter for a method (public instance) called in a report? This *export parameter has a reference type of structure.
    Thanks in advance,
    Ranjini

    Hi,
    "class definition
    class lcl... definition.
      public section.
        method m1 imporitng par type ref to data.  "now you can pass any reference to the method, but this way you have to maintain this reference dynamically inside the method (you can't be sure what that reference is really "pointing" at)
    endclass.
    "in program
    data: r_lcl type ref to lcl...
    create object r_lcl.
    call method r_lcl
      exporting
         par    =  "pass any reference variable here
    Regards
    Marcin

  • Multiple values for Commodity Code/Import code number for  Foreign Trade

    Hi  Experts,
    Is it possible to enter the multiple values for Commodity Code/Import code number for  Foreign Trade field for plant/country specific data in transaction MM02 using any BADI/User Exit ?  If yes, suggest the name of the BADI/User Exit
    Thanks,
    Narayan

    how can one material in one plant have 2 commodity codes? This is not logical.

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • How to import/export value for ekko-netwr

    Hi friends,
    amount value 'ekko-netwr'  from incude LV61AA43 should pass to include LV61AA43 for this iam using import/export paramters but there is no parameter id for netwr . How can i pass this amout to this rountine.
    Thank u ,
    prasad.

    hi,
    A simple example of ABAP memory is using the EXPORT/IMPORT statements.
    Here in this program, I get the data, export it to memory,
    clear out the internal table in my progam, then reimport the data into it and write out the data.
    You probably wounldn't do this in a normal program,
    but this is how you can pass data from program a to program b when A Submits program B.
    report zxy_0002 .
    data: it001 type table of t001 with header line.
    select * into table it001 from t001.
    export it001 = it001 to memory id 'ZXY_TEST'.
    clear it001. refresh it001.
    import it001 = it001 from memory id 'ZXY_TEST'.
    loop at it001.
    write:/ it001-bukrs, it001-butxt.
    endloop.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access.
    You can use SAP memory either to pass data from one program to another within a session,
    or to pass data from one session to another.
    Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
    These parameters can be set either for a particular user
    or for a particular program using the SET PARAMETER statement.
    Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
    The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access
    using the EXPORT and IMPORT statements.
    Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling,
    the data needs to be placed in ABAP memory before the call is made.
    The internal session of the called program then replaces that of the calling program.
    The program called can then read from the ABAP memory.
    If control is then returned to the program which made the initial call, the same process operates in reverse.
    SAP memory
    The SAP memory, otherwise known as the global memory,
    is available to a user during the entire duration of a terminal session.
    Its contents are retained across transaction boundaries as well as external and internal sessions.
    The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
    ABAP/4 memory
    The contents of the ABAP/4 memory are retained only during the lifetime of an external session
    (see also Organization of Modularization Units).
    You can retain or pass data across internal sessions.
    The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Set
    http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
    GET
    http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
    EXPORT
    http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
    Other Imp Help
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    Thanks & Regards
    ilesh 24x7

  • Badi without export parameter for messages

    Hi Guru's
    I am using a HR related badi for one validation. As per my requirement, In BADI "HRECM00_CONSISTENCY" i need to perform validations.
    If some mismatch in the condition, then i will pass error message and warning messages.
    But in BADI there is no export parameter to give the error message to Portal.
    This messages should be displayed in HR MSS tab in compensation tool managed. I have one parameter in Import with  "TYPE REF"(message handler). I am not sure whether that field will help or not.
    Please clarify this.
    If it is not could you please suggest any alternate way to populate the message to portal.
    Thanks & Regards,
    Ganesh R K

    Hello Ganesh,
    try to call this FM to Added Messages.
    call function 'HR_ECM_ADD_MESSAGE'
          exporting
            message_handler = message_handler
            msgty           = 'E'
            msgid           = 'messageid'
            msgno           = 'Message No'
            msgv1           = 'Prabhu' .
    regards
    Prabhu

  • Attunity connectors for Oracle in Import Export Wizard in SQL Server 2008 R2

    Is there a way we can see the Attunity connectors drivers in the Import/Export Wizard (64 bit) for SQL Server 2008 R2?
    Although I made it work for SSIS, I would need these drivers in the Import/Export wizard so as to automate it for numerous number of tables which I want to migrate.
    Can the Attunity connectors for Oracle be used in the Import/Export wizard? If so please let me know.
    Regards,
    Ashutosh.
    Ashutosh.

    I have 100 tables to migrate. Creating a data flow for each table is tedious and that's why I was looking out for a way to do it through import export wizard so that I don't have to create a separate data source and destination for each table in the Data
    flow Task.
    Is there a way to loop through all tables and transfer data in SSIS without having multiple sources and destinations created for each table? This also involves a bit of transformation as well.
    Regards,
    Ashutosh.

  • Import/Export-Tools for XML on Oracle-Lite

    We have to import/export XML-Format on the Oracle-Lite-Database.
    -Are there any tools available supporting Import and Export of XML-Data ?
    -Can someone give us a recomendation how to perform XML-Imports/Exports if there is
    no "out of the box-tool" available ?
    Thanks.

    So try. It is called Oracle XML-SQL utility and it set of classes for direct XML manipulation from/to database with HUGE amount of features. You can use it from JAVA and PL/SQL (via Java Stored Procedures). It is realy great.

  • The never-ending search for right 7D import/export settings

    Hey all,
    When it comes to technical specs, I'm still learning when it comes to HDSLR footage.
    So I'm STILL looking for the right settings for my video to look smooth and crisp. It's gotten better as I've experimented with a few different settings.... but by the time I export out of FCP7 it's still not even as sharp as it looks on the lcd of the 7D. At times it looks like crap. So, I need a tad bit of help. I'm sure I'm still doing something(s) terribly wrong.
    So, here's a run-down of my settings from beginning to end.
    IN CAMERA
    Shooting 720p 60fps
    IMPORT
    Bringing onto external with CF card reader
    CONVERT
    Converting 7D movie files with MPEG streamclip
    For compression, I choose Apple ProRes 422 HQ, set quality at 100%, frame size at 1280x720 and I un-check interlaced Scaling
    IMPORT
    I import these transcoded files into FCP7
    EXPORT
    For best quality, I:
    Export to Quicktime move --> ProRes HQ 1280x720 60p
    For HD YouTube upload, I:
    Export to QuickTime Conversion:
    Video Settings --> H.264
    Key Frames every --> 24 frames
    Data rate restrict to --> 3500 kb/sec
    Optimize for --> download
    Size --> 1280x720 HD
    Prepare for Internet Streaming --> Fast start
    So, what newbie mistake am I making here? What should I change?

    That's because using Cmd+J for doing slow motion on 720p60 is the wrong way to go about it.
    Log & Transfer your 720p60 clips as ProRes 422. Open the .mov files in Cinema Tools and conform them to 720p30 or 720p24.

  • New firefox does not have import export facility for bookmaks how can I do it

    I have got firefox 4 and it seems it does no longer have the import or export feature for the bookmarks so what can I do

    Hit the '''Alt''' to reveal the Menu Bar. <br />
    Bookmarks > '''Show All Bookmarks''' -> Import & Backup - Export HTML... and Import HTML...

  • Import/Export Settings for Canon T4i Video

    Hey folks,
    I'm new to Premiere and loving it, but I'm wondering what the best sequence settings, as well as export settings, will be for video captured from my Canon Rebel T4i camera.
    I prefer to shoot either in 1080p with 24 fps, or 720p at 60 fps––what settings within premiere should I use when setting up my project, and what are some good export options for Youtube/Vimeo?
    thanks!

    FAQ: How do I choose the right sequence settings?
    FAQ: How do I export a movie for YouTube, Vimeo, iPad, iPhone, or Apple TV?

  • FDF import/export not for every PDF available

    Hello,
    I am using Adobe Reader X 10.1.2 and I have used it to create corrections on PDFs via comment functionality. To avoid big data amounts I want to use the FDF export/import. This was already possible on several PDF documents, but is not possible on every PDF document. What kind of conditions are necessary to allow the FDF import/export?
    Regards
    Dieter

    Hello,
    I only found one functionable, where export is available and there is a menu Extensions available too. I have seen, that this document was created by Acrobat Distiller.
    The idea is, if there is one original PDF, where several user have to make corrections, that every user has just to supply his correction-FDF, and in the end we still have the untouched PDF (which can be big) and many FDFs as correction files, which include all the comments.
    Regards
    Dieter

  • Dump while executing class method whose exporting parameter  of type table

    hi,
    i am getting dump after executing a method in which i want to export an internal table which will hold all the states name along with its code on the basis of the country name which is my importing parameter.
    for the above i am using importing parameter named as country of type too5u-land1 and the exporting parameter named as itab of type table and below is my code for the requirement.
    method PROCESS.
      select BLAND BEZEI from T005U
             INTO TABLE ITAB WHERE
             LAND1 = COUNTRY.
    endmethod.

    Hi,
      Please check the below code
    parameters country type land1.
    *Refer the class which we are using like below
    data: a type ref to ZCL_TX_SERVICE_01.
    data itab type ycountry.
    *ycountry is a table type defined in dictionary with fields BLAND and BEZEI
    data wa like line of itab.
    *If we are using instance method we need  to create the instance like below
    create object a.
    *In the method process define exporting parameter itab as type ycountry which is a table type already defined
    CALL METHOD a->PROCESS
      EXPORTING
        COUNTRY = country
      IMPORTING
        ITAB    = itab.
    loop at itab into wa.
    write:/ wa-bland.
    endloop.
    Regards
    Dande

  • RFC / BAPI import & export parameter structure

    Hi,
    Is there a way to get the import & export parameters structure from remote system rather than creating them in calling system?
    I have WD4A in CRM system and want to call RFC on R/3 system. Since the R/3 dictionary objects do not exist in CRM, I have to create these in CRM before creating context node and attribute. Is there a way to use RFC without creating these structures?
    Thanks,

    Hello Ravindra,
    yes you can copy DDIC structures from one system to another.
    Option a).  See the many blogs on SAPLINK and the website
                      http://groups.google.com/group/saplink/
                and http://code.google.com/p/saplink/
    Option b) in SE80 right click on object and select include in transport.
                  Release Transport.
                  Use TMS in other system to import this transport.
    Please note, to call an RFC there is no need to declare the structure in the dictionary.
    You dont even need to create the function in the local system.
    So you may be over engineering the issue.
    eg
    data: being of ls_some_stru,
                         f1 type xxx,
                         f2 type xxxx
                         f3 type xxxx,
          end of ls_some_stru.
          call function 'XYZ_FUNCTION' destination 'OVERTHERE'
                  exporting is_stru = ls_stru.
    the structures used in XYZ_FUNCTION need not exist in local dictionary, nor does
    the function need to exist in the local system.
    regards
    Phil.

  • Exporting parameter of type table in Method of a Class

    Hi Experts,
    I want to pass an internal table from my method in ABAP class to a workflow.
    For thi spurpose i have cretaed a parameter of type table in the method.
    My problem is that i am not able to bind this to a workflow/task  container.
    I can see all the other parameters of the method in thw workflow while binding except for the parameter of type table ( i.e internal table ).
    Any idea ?
    Thanks,
    Radhika.

    Assuming that you are trying to export the internal table from class method to task conatiner.
    I have cretaed a Structure 'zemails' in se11
    Already you have created a Structure in the SE11 , why don't you just create one Table Type of ZEMAILS in SE11. Once you hvae created in DDIC then in the class signature declare the ltmails of type the tabale type that you create. and then in the task conatiner also try to declare the container element with the same name and same table type.
    In the class method declare the lt_mails as Exporting. save and actiavte. And one more thing if that element is not present in the Task conatiner then as soon as you try to open in the change mode and click on the binding button of the task it will prompt you asking whether you want to trnasfer the mssing elements if you clcik Yes then the same element which you have declared in the class will created with the same type. but make sure in the task conatiner you delcare the lt_mails as IMport export element.

Maybe you are looking for

  • FIFO - Goods Issue to Purchase relation

    Hello Experts, My client maintains the Inventory in FIFO model. They wants to know the corresponding purchase (GR PO/Invoice) of the Item issued (delivery/transfer) from a wharehouse. From whare I can generate this info? If any one is having a query

  • SSL Errors - Sometimes

    Hello, Sometimes when I visit our online order form I get the SSL errors "This website does not supply identity information" and "The connection to this website is not fully secure (images)." However, if I reload the page, the errors disappear and th

  • Finder issue-Font always bold in list view

    In icon view and column view, the font comes out perfectly normally, but when I switch to list view, the font is bold!!! For some reason, it bugs the heck out of me! Anyone have any suggestions?

  • Suppression of table helptext in Headstart help.htm

    I am using a Headstart tool (I think version HSUSTART rev 6.5.3.3) to create an application-help.html file on the basis of help-items in the repository. The customer has provided me with new texts which they only want to see on the forms level. When

  • Convert .cpp to .vi

    Hi,           Is there a way to convert written text-based codes like .cpp into .vi? Thanks.