How is it that in an FM an EXPORT  parameter is passed by value?

Q]      How is it that in an FM an EXPORT  parameter is passed by value?

Hi,
You can specify the types of interface parameters in function modules in the same way as the parameter interfaces of subroutines. Since function modules can be used anywhere in the system, their interfaces can only contain references to data types that are declared systemwide. These are the elementary ABAP data types, the systemwide generic types, such as ANY TABLE, and types defined in the ABAP Dictionary. You cannot use LIKE to refer to data types declared in the main program.
Import parameters correspond to the formal input parameter of subroutines.  They pass data from the calling program to the function module.
Export parameters correspond to the formal output parameters of subroutines.  They pass data from the function module back to the calling program (which his not possible in subroutines)
To pass data back to the calling program, the function module needs an export parameter with the type of an internal table.
Regards,
Bhaskar

Similar Messages

  • How could Ecatt support a FM which has export parameter data type as any

    Hi,
    I have created a FM which has export parameter data type as 'Type ref to data'.
    The actual paremeter value for this export parameter is a dynamically generated internal table, which does not have a abap dictionary data type.
    Could I use the 'FUN' ecatt command to test this FM?  How could I get this reference export parameter?
    Thanks a lot in advance!

    Hi,
    Wouldn't it be enough if you define parameter in test data container as reference to table type with structure of type c(1000)  (or more/less characters depending on how much data you need to pass)?
    I'm not 100% sure if filling this table with data will work (this is reference after all) but if this is an issue than create 2 parameters: 1 of table type and second of reference type. Then inside your script before FUN use ABAP...ENDABAP to assign your table parameter to reference parameter and use second one as input for FUN command.
    I think that either first or second solution should work.
    Best regards
    Marcin Cholewczuk

  • How to call a rtf template from another rtf template by passing a value

    Hi Gurus,
    Its about calling a rtf template from another rtf template by passing a value.
    My requirement is like:
    I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database database.
    My approach is something like; get a partnumber from quote report pass it to another rtf template which uses the partnumber and get the data from table using DataSource. When user pull a quote report from siebel this new rtf template should attach to the quote at the end.
    I've gone through all available blogs about sub-reports and white papers from Oracle they are not much helpful since I need step-by-step.
    http://www.adivaconsulting.com/adiva-blog/item/36-working-with-rtf-sub-templates.html
    bip-subtemplate-1-132933.pdf
    I'm using 10g obiee integrated with Siebel.
    Just started learning BIP.
    Thanks in advance.
    Edited by: 911927 on Apr 2, 2013 8:56 AM
    Edited by: 911927 on Apr 2, 2013 8:57 AM

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • How to open a url in new page/tab from Answers passing a value to the url in OBIEE10g

    Hello All,
    I'm trying to create an answer, A column "request id" would have a url with request id attached to end of url to open a web page. I did get the answer working, I need to open the webpage in a new page rather than in the same obiee answer. We are on OBIEE10g(10.1.2.3) on Windows 2003 R2.
    Can anyone give me some information to achieve this ?
    Thanks,
    Vijay

    Hello Srini, Vinod,
    I guess there might some set-up issue here. Here is my link
    <a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    If I give the above link I would get syntax error.
    Then I change to add single quotes on the above link
    '<a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>'
    Output looks like
    273221"><a href="https://ifa.dev.com/inspectionformsweb/formviewer.aspx?formid=273221" target=_new>273221</a>
    On the number when I click it does not go to the link rather gives me a HTTP 404 not found
    http://scaobieedev:9704/analytics/%3Ca%20href=
    Please advice.
    Thanks,
    Vijay

  • How to export data in export parameter

    Hi,
    I have written the below code.Now i want to export data into an export parameter which is a structure.
    tables: t005t  , t005.
    data: BEGIN OF ty_countrylist occurs 100,
            landx like t005t-landx,
            intca like t005-intca,
            END OF ty_countrylist.
    SELECT t005tlandx t005intca   into CORRESPONDING FIELDS OF TABLE ty_countrylist
      from T005t
      INNER JOIN t005 on ( t005tland1 = t005land1 ).
    Can some one suggest how can that be done. The export parameter is a structure with two elments.
    T_EX_COUNTRY---1)LANDX- LANDX[CHAR(15)] and 2) ISOCODE- INTCA[CHAR(2)].
    I have tried creating internal table and work areas but it didnt work.

    P605837 wrote:>
    > Hi Tahir,
    >
    > Even this didnt work.Its giving me an error "T_EX_Country has already been declared".
    >
    > My main motive is to extract country names and thier ISO codes from the table and put them in an export parameter.Now the export parameter that i have created is a structure which has two elements.
    > One for Country names which is Char(15) and another for ISO codes which is Char(2). That is why i have written those two lines of code. That is, i am trying to put the fetched data into an internal table and then reading the internal table into a work area and finally then that work area is appended to the export parameter.
    >
    > Basically me requirement is to put the data that is fetced from the table into my export parameter so that i can access that data for further processing.
    Hello,
    What is the functionality of your FM?
    I see there are no import parameters to the FM, only export.
    Also ZCONTRY is a structure. Then you have to create a Table Type for ZCONTRY in SE11 to use T_EX_COUNTRY as a table.
    Else declare T_EX_COUNTRY as tables parameters.
    T_EX_COUNTRY     LIKE     T005T
    FUNCTION Z_COUNTRYLIST_GET.
    *"*"Local Interface:
    *"  TABLES
    *"      T_EX_COUNTRY STRUCTURE  T005T
    ENDFUNCTION.
    Can you plz clarify?
    Suhas
    Edited by: Suhas Saha on Feb 4, 2009 10:41 AM

  • I have an apple iphone 4 that I want to download audio books from my library onto it.  I cannot figure out how to do that.  The iphone does not show up on my mac laptop as a connected device.  Does this kind of download have to run through itunes?  Thanks

    I have an apple iphone 4 that I want to download audio books from my library onto.  I cannot figure out how to do that.  The iphone does not show up on my mac laptop as a connected device.  Does this kind of download have to run through itunes?  Thanks

    Yes it is done through iTunes. The iPhone will never show up in Finder as a device. The following is general information on iTunes sync: http://support.apple.com/kb/HT1386 and the following is a previous discussion where the post by Andreas Junge helped others that had a problem syncing audiobooks: https://discussions.apple.com/message/20052732#20052732

  • My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    My transparency does not work on my iPhone and I was wondering how I fix that? It worked when I first downloaded ios7 but not now.

    Hello wilsontot_too,
    Thank you for the details of the issue you are experiencing on your iPhone.  It sounds like you are not noticing transparency on your iPhone.  It may be that you have "Increase Contrast" turned on in your iPhone settings.
    I recommend verifying that Increase Contrast is turned off in Settings>General>Accessibility.
    iPhone User Guide - Large, bold, and high-contrast text
    http://help.apple.com/iphone/7/#/iph73b89c6
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT1386 I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.

    I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.  When I open iTunes it has a button that say "Back Up iPhone", but I'm not sure what that does.  When I go into the sync options it say I have another user account and asks me if I want to merge of replace. I'm assuming it's trying to tell me I have an older iTunes Library, but don't know that.  Geez, maybe people over 60 shouldn't have iPhones, iTunes just bafles me.

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I want to implement facebook kind of Likes rating, how to achieve that?

    Hi,
    I want to implement facebook kind of Likes for resources in my document library, how to achieve that and how to display the count in my custom webpart in my home page?
    Thanks
    Jessica

    Hi Jessica,
    You can find those option under Rating Settings under Library settings, you can select whether you need to give star rating or Like/Unlike fashion.
    Thanks, Shakir | Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

    I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

    connect, then in SystemPreferences/Displays you can set the two as you want.

  • I want to set up the Time Machine and I would love to use the Time  Capsule but since I already have a wireless router I need suggestions on  what other external disks Apple could recommend to use with the Time Machine and  how to configure that disk

    I want to set up the Time Machine and I would love to use the Time
    Capsule but since I already have a wireless router I need suggestions on
    what other
    external disks Apple could recommend to use with the Time Machine and
    how to configure that disk.
    A complication that I need to resolve is the fact that I am using Vmware
    Fusion to be able to use Windows on my Mac. Now it seems that Time
    Machine is not backing up my files
    on that virtual Windows without additional configuration and my question
    is whether you can advise me here or whether this is only a matter for
    the Fusion virtual machine.

    If you want to use Time Capsule you can.. you simply bridge it and plug it into the existing router.. wireless can be either turned off or used to reinforce the existing wireless.. eg use 5ghz in the TC which is much faster than your 2.4ghz.
    You can also use a NAS.. many brands available but the top brands are synology, qnap and netgear readynas  series. These will all do Time Machine backups although how well always depends on Apple sticking to a standard. There are cheaper ones.. I bought a single disk zyxel which was rebadged and sold through my local supermarket. It actually works very well for TM at least on Snow Leopard. Major changes were made in Lion and again ML so do not instantly think it will work on later versions. I haven't tried it yet with those versions.
    Any external drive can be plugged into the mac. Use the one with the fastest connection or cheapest price according to your budget. USB2 drives are cheap and plentiful. But no where near as fast as USB3 or FW800. So just pick whichever suits the ports on your Mac. Interesting Apple finally moved to USB3 on their latest computers.
    TM should exclude the VM partition file.. it is useless backing it up from Mac OS side.. and will slow TM as it needs to backup that partition everyday for no purpose.. TM cannot see the files inside it to backup just the changes.
    You need to backup windows from windows. Use MSbackup to external drive.. if you have pro or ultimate versions you can backup to network drive. But MSbackup is a dog.. at least until the latest version it cannot restore the partition without first loading windows. There are about a zillion backup software versions for windows.. look up reviews and buy one which works for you. I use a free one Macrium Reflect which does full disk backups and is easy to restore.. to do incremental backups though you have to pay for it.

  • How to get that the invoice has been printed or not?

    Hi Experts,
    I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
    Regards,
    SURYA

    Hi Surya,
    Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
    select from z table.
    if sy-subrc eq 0.
      call "SMARTFORM_COPY"
    else.
    While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
    and after you call the smartform,
    call "SMARTFORM_ORIG"
    exporting...
    Importing...
    job_output_info = w_job_output_info
    exceptions...
    If sy-subrc eq 0.
      if w_job_output_info EQ 'X'.
        update the Z table.
      else.
        do not update the z table
      endif.
    endif. 
    endif.
    Regards,
    Chen

  • OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF. then 2.  need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that

    OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF; then 2. I need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that??
    I had been saving as a PDF and then reducing the size of the PDF by printing it as a PDF with a degree of image compression. I write manuals with a LOT of screen captures and line art that needs to be clear. So it is a balancing act between image clarity and PDF size. The PDFs on the web need to be smaller - sure you can undertsand.
    Anyway, when I print the PDF again, I lose both my destinations and bookmarks.
    Anyone know of any way to avoid that?

    Control the images by creating a custom PDF Job Options and then selecting it in the PDF Job Options drop-down of the PDF setup dialog box (File > Save as PDF...)
    Create the custom PDF Job Options file with Distiller. If you do not have Distiller, open the Printing Preferences of the Adobe PDF printer. Start with the Smallest File Size Job Options settings and Edit.

  • I can't update my apps, was asked to change from US store to Lebanese store. How to do that?

    I can't update my apps, was asked to change from US store to Lebanese store. How to do that?

    Follow this procedure:
    1. Go to Settings > iTunes &amp; App Stores > Apple ID.
    2. Tap your Apple ID.
    3. Tap View Apple ID.
    4. Enter your password.
    5. Go to Country/Region in the popup window to change to the desired store.
    See also: http://support.apple.com/kb/HT1311

  • Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done?

    Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done? His phone was stollen once last month need to get this done ASAP to prevent future headaches. Ty

    You can not change the date of birth on the account. Apple makes that clear up front when the account is created.
    The only way to "fix" this is going to be for him to create a new account with the correct information. Any apps purchased with the old one will need to be re-purchased with the new account. They can not be transferred.

Maybe you are looking for

  • Synchronize By Audio No Longer Works After 7.2 Update

    After installing the Premiere Pro CC 7.2 update, the synchronize by audio no longer works correctly.  When you highlight the clips and sync by audio it acts like it's doing something but then puts the clips nowhere near close being a match (usually o

  • Thinkpad Yoga wakes up on its own after going to sleep blaming lid if wifi was enabled

    Recently I've noticed that my Thinkpad Yoga (20CD00B1US) keeps waking up on its own. powercfg lastwake returns Wake History Count - 1 Wake History [0] Wake Source Count - 1 Wake Source [0] Type: Device Instance Path: ACPI\PNP0C0D\2&daba3ff&2 Friendly

  • Link between Appropritation Request and its Workflow log.

    Hello All, I am very new to the workflow related work. We have configured a workflow for the approval of Appropriation request. For printing of Appropriation request we have developed a smart form where we need to show the status of the respective wo

  • How to run tools from a java archive (jar file)

    I used to run Multivalent from http://multivalent.sourceforge.net/ but am now getting error messages like this: Exception in thread "main" java.lang.NoClassDefFoundError: tools/pdf/Impose This happens even when I'm in the directory containing the jar

  • Security Method?  Saving downloaded PDF's

    I have credit card accounts which I access on Safari. Each month I download the statements as .pdf files. When I view some of these downloads on Preview, I can save them using a Save-As command. But for files downloaded from other sides, the Save-As