Has anyone used the FORMAT_MESSAGE function module in ECC 6.0 ??

We've upgraded to ECC 6.0 and now I have a BDC program using FORMAT_MESSAGE function module that has a problem.  The number after the & (&1, &2, &3, &4) in the function mod isn't replaced, it stays as a literal and only the & is replaced with a valid value which it then passes back to the program.
Anyone else have this problem?  Any ideas how to fix?
thanks
lz

Hi,
try like this....
*&      Form  CALL_TRANSACTION
*       text
*  -->  p1        text
*  <--  p2        text
FORM call_transaction .
  CALL TRANSACTION '<Y......>' USING it_bdcdata
                             MESSAGES INTO messtab
                             MODE 'N'
                             UPDATE 'S'.
  LOOP AT messtab.
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        id        = messtab-msgid
        lang      = sy-langu
        no        = messtab-msgnr
        v1        = messtab-msgv1
        v2        = messtab-msgv2
        v3        = messtab-msgv3
        v4        = messtab-msgv4
      IMPORTING
        msg       = msg_txt
      EXCEPTIONS
        not_found = 1
        OTHERS    = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    IF messtab-msgtyp EQ 'E'.
      WRITE:/ icon_checked AS ICON, 10 msg_txt.
      WRITE: 5 i_tab-wb_book COLOR 6.
*    ELSEIF messtab-msgtyp EQ 'S'.
*      WRITE:/10 msg_txt COLOR 6.
*    ELSEIF messtab-msgtyp EQ 'W'.
*      WRITE:/10 msg_txt COLOR 3.
*    ELSE.
*      WRITE:/10 msg_txt COLOR 4.
    ENDIF.
    CLEAR msg_txt.
  ENDLOOP.
  REFRESH:it_bdcdata,messtab.
ENDFORM.                    " CALL_TRANSACTION
Arunima

Similar Messages

  • Has anyone used the QuickUSB module (Bitswise Systems) to interface to a USB Camera via IMAQ for USB?

    Has anyone used the QuickUSB module made by Bitwise Systems with LabVIEW for image acquisition.   I have a USB camera and I'm trying to use the IMAQ for USB controls to no avail.   Any input is appreciated. 

    Are you using the NI-IMAQ for USB functions or are you calling the QuickUSB libraries from LabVIEW?  Unless the USB camera is DirectShow compliant, then it will not work with the NI-IMAQ for USB driver.  You can use the Code Interface Node in LabVIEW to call external dll's, and it looks like from QuickUSB's website that is the best way to go.  Hope this helps.
    Jason N 

  • Using the MSG_* Function Modules

    Hello,
    I want to use the MSG_* function modules (e.g. MSG_OPEN, MSG_ACTION ...) and the MAC_MSG_* macros in my own programs, but they are not documented. Are there any docs about it?
    Regards
    Stefan

    Hi,
    Check this link
    http://wwwcs.uni-paderborn.de/cs/heiss/lehre/pg/intern/docs/bc_xbp_45.pdf
    Also see Re: Read Application Log
    Thanks & Regards,
    Judith.

  • Has anyone used the Nokia 2700 as a modem with the Macbook 10.6.7

    I have managed to sync my Nokia 2700 classic GSM handset to my Macbook through iSync. How can I use the phone as a modem if I have a 3G mobile service?
    Many thanks in advance,
    Dileep

    louisfromleonia wrote:
    Has anyone used the macbook air superdrive connected to a macbook pro - with a source DVD,via usb as a destination drive for burning DVDs?
    I don't use the Apple SuperDrive but an LG GP08NU6W. works great! You can get one here:
    http://www.amazon.com/LG-Electronics-GP08NU6W-External-Drive/dp/B003D1DESS
    I got the white one.

  • Has anyone used The Safe Mac --removing adware app?

    Has anyone used The Safe Mac---removing adware app ?

    I have used this app from Safe Mac sit and to make this short it was the perfect solution to the adware attacks on my browsers ie-Safari and Google Chrome as well as Firefox    No problemshttp://www.thesafemac.com/mmg/ works great and I highly recomend

  • Has anyone used the program 'MacKeeper' and what is your take on it?

    Has anyone used the program 'MacKeeper' and what is your take on it?

    Do not install MacKeeper (and how to uninstall it if you have):
    https://discussions.apple.com/docs/DOC-6221
    (Please note that references to the original developers, Zeobit, also now refer to Kromtech Alliance Corp, who acquired MacKeeper and PCKeeper from ZeoBit LLC in early 2013.)

  • Has anyone used the mackeeper program by zeobit

    has anyone used the mackeeper program by zeobits

    Read the user tip below.
    https://discussions.apple.com/docs/DOC-3036

  • Has anyone used the mackeeper software?

    Has anyone used the mackeeper software?

    Short answer:  I don't recommend it, but it's not "a scam" or malware, per se.  If you use it, you may have some real performance issues.
    Me:  I was an actual MacKeeper user (paid version) for about two years.  What follows is my experience and conclusions.  I am not a paid reviewer, nor tech professional.  I am an educator with about 15 years of experience using Macs.  I am what most people would call a "prosumer," in that I know a good deal about my systerm, but am not a techie, anti-utility software zealot, etc.  I have no affiliation with Zeobit (manufacturer of MacKeeper) nor any of its competitors.
    I bought MacKeeper in 2011, and then upgraded last year.  I used it to remove junk files and duplicates, and experimented with the anti-virus software.  I didn't use most of the other features.
    The problem:  I am running a 2009 15" Macbook Pro 2.8GHZ Core 2 Duo, 4GB RAM, 512GB HDD.  Over the past year, it has been having major performance issues.  Slowdowns, hangups, applications quitting and more were all becoming the norm.  I deleted duplicate files and ran MacKeeper a few times a month.  I also ran permissions repairs regularly (disk utility).  I looked for the cause of the slowdowns everywhere, from too many user accounts being open, to resource hogs.  I decided that MacKeeper's Anti-Virus software was just taking up too much RAM and CPU, so I disabled it.  I continued experiencing slowdowns and started monitoring my available RAM with a freeware app called Memory Clean.  It often reported that I had less than 500MB available, even with very light usage, application wise.  After "cleaning" memory, I could get my available RAM to about 1.5GB, max.  I struggled with these issues for a year or more, and was about ready to concede defeat and buy a new machine.  I figured my MBP was over four years old, and perhaps running Mountain Lion and normal wear/tear were just too much.
    This morning, I noticed that the biggest resource hog on my system was a process called "MacKeeper Helper." The process relaunches even when it is forced to quit.  It was consuming over 100MB of RAM and up to 99 percent of my CPU at times!  I also noticed a process called "anti-virus" that also could not be quit, and was consuming over 100MB of RAM itself.  I started researching how to kill these processes, and was introduced the the Great Online MacKeeper Controversy.  Here is what I learned:
    Some in the Mac community have pure hatred for this product (and some hate all like it).
    There were numerous user reports of it slowing down systems
    Zeobit seemed to be guilty of questionable ethics, particularly in its advertising.
    There was no way to stop MacKeeper Helper and Anti-Virus processes from running with deleting the entire application.
    I wasn't the only one annoyed by MacKeeper's system pop-ups, trying to sell me something I already bought.
    The software got good professional reviews, even from well-respected publications (e.g. MacWorld)
    It is often confused with Mac Defender, which WAS malware.  They two are not associated.
    The Decision:  After researching ways of fully uninstalling MacKeeper (and considering whether or not I should), I decided to try the uninstall instructions from the manufacturer.  It said that it would remove ALL traces of the application.  I also didn't want to get into too much Terminal work and manually deleting things, as some users suggested doing.  I followed the process (close app, drag to trash, enter password, click "uninstall").  I then ran a permissions repair and restarted.
    The Results:  I have been MacKeeper-free for about an hour as I write this. Put simply, my problems appear to be completely solved. MacKeeper Helper and Anti-Virus are gone.  Available RAM is now up to 2.75GB.  I have experienced no slowdowns or app crashes.  Even bootup appeared to be considerably faster.  Launching iPhoto with thousands of images now takes a few seconds instead of minutes.  Everything feels faster.  It's like I have my Mac back!  I was ready to admit defeat and dish out another $2500+ that I didn't have.  I now think that won't be necessary!
    What Should Yo Do? You'll find a lot of controversy out there between professional reviews, ethically dubious paid reviews, Zeobit's own defense through public statements, and Mac users themselves.  Some users like it, and swear up and down they are real people.  Others are extremely angry and hate the product with the passion of 1,000 burning suns.   All I can do is tell you my experience and make the following statement:
    The bottom line is that I would not install MacKeeper/buy MacKeeper on my Mac.  After investigating my own system's problems (which made iit nearly unusable) and concluding that MacKeeper might be the issue, I uninstalled it. Magically, all my issues went away.  So...I report, you decide.  Best of luck.

  • Has anyone used the Speck See Thru Case and scratched the MacBook Pro?

    Has anyone used the Speck See Thru Case and scratched his/her MacBook Pro?

    Read this thread: https://discussions.apple.com/message/8769665#8769665

  • Has anyone used the ATTO ExpressSAS R644 in a Mac Pro?

    Any thoughts on your experience if so?

    louisfromleonia wrote:
    Has anyone used the macbook air superdrive connected to a macbook pro - with a source DVD,via usb as a destination drive for burning DVDs?
    I don't use the Apple SuperDrive but an LG GP08NU6W. works great! You can get one here:
    http://www.amazon.com/LG-Electronics-GP08NU6W-External-Drive/dp/B003D1DESS
    I got the white one.

  • Has anyone used the Essbase XTD Spreadsheet Services?

    Is the Essbase Spreadsheet Services an additional cost above and beyond the spreadsheet add-in?Has anyone used this product in addition to or in place of the existing spreadsheet add-in?What have you found are the added benefits of this product? Any lost functionality or issues with using this over the current spreadsheet add-in.If we upgrade to Essbase 6.5 is this the 'new' spreadsheet add-in or is it optional?Thanks!Lisa

    To try to answer the questions in order:Q: Is the Essbase Spreadsheet Services an additional cost above and beyond the spreadsheet add-in? A: I believe ESS is licensed separately - I don't know if this has or will change in the future, so yes it does cost above and beyond Essbase.Q: Has anyone used this product in addition to or in place of the existing spreadsheet add-in? A: I used it during the beta, and I work with it from time to time, but I have not implemented it in production anywhere as of yet.Q:What have you found are the added benefits of this product? Any lost functionality or issues with using this over the current spreadsheet add-in. A: The main benefits are that you can now connect to your Essbase servers (via Essbase Enterprise Services) over HTTP, which means you don't need TCP connectivity. You could have users around the world and as long as they can see the web server running the service, they can connect.Another benefit is you don't need to install the Essbase runtime on the user's PC. The "add in" can be a CAB file that self installs when the user hits a page you set up. A nice bonus in a large widely dispersed user community.As far as functionality goes, I believe the will be parallel (the beta did not have EIS drill through). The major downer is performance - it is slower than the normal add-in with larger reports.Q: If we upgrade to Essbase 6.5 is this the 'new' spreadsheet add-in or is it optional? A: No - the normal add-in is still the default. ESS requires additional software/configurations (particulary EES, Java App Server) to be used.Regards,Jade-----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Has anyone used FuncCompErrorException in functional companion?

    I am trying to use FuncCompErrorException class in my Functional Companion code of type AutoConfigure.
    Has anyone used it? If so, can you give additional info.
    Thanks

    Rowdy is correct:
    The Linux version has been released - so it should work ... but it has been released for the Chinese localization only!
    Regards,
    Frank
    BTW: IBM has done some demo for a Linux fair last year with only Server Tools + DB (US demo DB on DB2) running on the Linux server + Windows clients.
    Such a configuration is not released + maybe not fully supported by the licensing mechnaism (remember that the "Installation" / "Software Order" is bound to Operating system + DB system), but apparently it worked...

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • Has anyone used the appscript modual for python rather than streight AS?

    I just discovered appscript and so far I like what I see. has anyone used it?
    Does it just wrap around actual applescript commands which it then sends to osascript with a system call or does it use the message system directly? Is there anything that it has not yet implemented that might cause problems?
    To me it seems to be a perfect solution to the clutter that AS seems to be... at least from someone coming from more traditional languages.

    In startMovie, you need to register the xtra
    on startMovie
    axRegister(serial code here)
    end
    Then, on your Record Button, something like this:
    on mouseUp me
    --start recording session - using 400k as maximum here
    errOpen=axOpenRecorder(400000)
    --see if there is an error
    put errOpen
    --save the new audio as a file
    errRecord=axRecordSoundToFile("soundName","c:\path\to\soundfile.wav")
    --see if there is an error
    put errRecord
    end
    then make sure you close the recorder in stopMovie
    on stopMovie
    axCloseRecorder()
    end
    You can also make a Stop Recording button that has code like
    this:
    on mouseUp me
    errStop=axStopRecording()
    put errStop
    end

  • Has anyone used the new 5K retina iMac with Lightroom

    Has anyone  used Lightroom with the new 5K Imac. If so any problems ?

    Just bought one - arrives next week. From what i can tell it's should be the fastest mac for lightroom. Processor speed is most vital. Doesn't really use all the mac pro multiple cores as I understand 4 is plenty (correct me pls?) and 16Gb ram should hopefully do it. Getting a raid thunderbolt 2 drive for image storage which will daisy chain with my eizo monitor. Choose 3tb internal fusion as I understand full SSD doesn't really help too much. 2GB graphics plenty unless you're doing video maybe?.
    Only issue is I have a series of archive 3TB firewire 800 drives which are daisy chained. the questions is how will these work with an adapter but this remains to be seen....

Maybe you are looking for