Call transaction in new session (but only one)

Dear all,
as a hotspot functionality I would like to open a new transaction in a new session. For that reason, I use the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
However I would like to restrict the new tasks in a way that only one session is used (no matter how often the user clicks the hotspot. Kind of like the ABAP Help in the workbench.
I checked the class CL_IMC_MODE to see if it could work as a new internal session but the new mode dumped when I pressed the back button and according to the dump Statements that closes the internal mode unexpectedly like LEAVE are not allowed. Since I call standard transactions (like VA03) I can hardly prevent that. Did I miss something or do you have any other idea how I could solve my problem?
Thank you for any input.
Christian

Hi Christian,
Here is a sample code that takes in a sales order number, displays the document number as hotspot and when the user clicks on the hotspot, it opens a new window for displaying the order. No matter how many times the user clicks on the hotspot, it will only display one window for VA03. I hope this solves your problem.
REPORT ztest.
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: ls_vbak LIKE vbak.
DATA: BEGIN OF i_rfc_spagpa OCCURS 0.
        INCLUDE STRUCTURE rfc_spagpa.
DATA: END OF i_rfc_spagpa.
DATA: v_mode LIKE sy-index.
START-OF-SELECTION.
  SELECT SINGLE * FROM vbak
                  INTO ls_vbak
                 WHERE vbeln = p_vbeln.
  IF sy-subrc <> 0.
*-- error.
  ENDIF.
  WRITE:/ ls_vbak-vbeln HOTSPOT,
          ls_vbak-vkorg.
AT LINE-SELECTION.
  CASE sy-ucomm.
    WHEN 'PICK'.
*-- Delete the previous session and then call VA03 in a new session
      CALL FUNCTION 'TH_DELETE_MODE'
           EXPORTING
                mode = v_mode.
      CLEAR: i_rfc_spagpa, i_rfc_spagpa[].
      i_rfc_spagpa-parid = 'AUN'.
      i_rfc_spagpa-parval = p_vbeln.
      APPEND i_rfc_spagpa.
      CLEAR i_rfc_spagpa.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
        EXPORTING
          tcode                         = 'VA03'
          skip_screen                   = 'X'
          mode_val                      = 'A'
          update_val                    = 'A'
*       IMPORTING
*         SUBRC                         =
       TABLES
*         USING_TAB                     =
          spagpa_tab                    = i_rfc_spagpa
*         MESS_TAB                      =
        EXCEPTIONS
          call_transaction_denied       = 1
          tcode_invalid                 = 2
          OTHERS                        = 3 .
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    WHEN OTHERS.
  ENDCASE.

Similar Messages

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts,
    I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using transaction launcher and button is clicked no new session or new window is being opened. Our requirement is FPL9 transaction will be opened in new session / window inside Interaction Center also.
    Please help me how to open a new session or window  in interaction center on push botton click.
    Thanks in advance.
    Regards,
    Arnab

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Call transaction in new session with the value at hotspot

    Hi all,
    As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
    Please suggest any other way to implement this.
    Thanks

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Want to only keep New podcasts, but certain ones, like " meditations", I

    Hello,
    I wonder if anyone else would like to do this. At work I'm a tester, so I usually find conditions in the software that no one else can. I sync up my podcasts every 3 days or so, when I feel like I have time in the morning. I set the iPod to delete the played ones and copy in the new ones. I only want to keep New podcasts, but certain ones, like " meditations", I listen to often but I don't want them deleted "these are short 5 minute meditations which are a nice weay to start my 1 hour commute". I noticed that there was a "Do Not Auto Delete" selection in iTunes. Even if this is set, the Meditations podcast are deleted from my iPod. The only way that I can get them back on is to "Mark as New" in iTunes. Do I have to mark them as new everytime that I sync, it would make sense that the "Do Not Auto Delete" would not delete the podcasts you select. This is a minor inconvenience, but I hate it when I forget to "Mark as New" and then my Meditations are not on my iPod, bummer. Thanks in advance.

    Read here >   About iTunes Store authorization and deauthorization"

  • My ipod classic is connected to a new computer, but only sync 241 songs, out 1825.  How can I fix this?

    My ipod classic (80 GB, from 2006) is connected to a new computer, but only sync 241 songs, out 1825.  I have restored several times.  How can I fix this?  my old computer is damaged and the new one run on Windows 8.
    joseruiz1

    I ran into this same problem earlier with my new iPod classic 160 gb. Turns out it could be your files show in iTunes but they aren't connected to the location those music tracks are actually located.
    Does this make any sense?
    You basically have to make sure iTunes is picking your songs from the right music folder via your preferences.
    Option 1: If your iTunes is completely wiped blank and your music is stored in a safe place, backed up, etc. You can do the following:
    Step A. Preferences > iTunes Media Folder Location > choose folder
    **** please be sure to pick a location that is new or different from where you ACTUALLY stored your music to prevent your files from deleting itself as it updates****
    For example, if you stored your music on your Desktop then you wouldn't choose your music folder to be the one in Desktop. You choose the folder where you want your music to go such as C:\My Music or in Mac, you choose the music folder.
    Step B. Once you choose the folder where all your music is stored and you check the box that says "Keep iTunes Media Folder organized" and "Copy Files to iTunes Media when adding to library."
    Step C. This is the part that will make sense. Drag the folder on desktop that houses all your music into iTunes. Because you checked the box "Copy Files to iTunes Media when adding to library," iTunes will copy all the backup music you dragged into the folder location you designated it in "Preferences > iTunes Media Folder Location > choose folder."
    ---- once all that is done, your itunes will have ALL your music tracks linked to the right location on your computer and your iPod will sync with as many or all of the music you desire.
    Hope this helps.
    -Kayla

  • I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if I

    I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if If I change the start time on one it will change it on all of them.

    In your library, right-click the song you want to edit.
    select "get info".
    go to "options" and select the start and stop times for your first section of the song.
    click "OK".
    Find the shortened version of the song in your library. It may take a minute for it to show up. right click it again and select "create (????) version". (the ???? is different for different formats).
    The library will spit out a new, second version of the song which you can rename. I suggest you use the original title and add a 1 to the end.
    Now you can go back to the other version and repeat the process with a different  start/stop time.
    Once you are done editing, you can burn all of your versions to a disk, just make sure your interval time is zero so there are no gaps between edits.
    To keep the orginal song on your library, just go back to the original and put the start/stop times back to the original settings.

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • I down loaded a 3 Part audiobook but only one part plays on my ipod touch. All parts did play when first downloaded. Whats gone wrong?

    I down loaded a 3 Part audiobook but only one part plays on my ipod touch. All parts did play when first downloaded. Whats gone wrong?

    I would either say that the iOS is correpted due to a software glitch or y have have a hardware problem like bad memory locations that are corrupting the iOS.
    - Restore from backup via iTunes. This will install a fresh copy of the iOS. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.   This will elimate corruptin in the backup causing the problem.          
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar

  • The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.

    Hello. I added custom http response headers to my SP site web config file as follows: 
    <httpProtocol>
          <customHeaders>
                 <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
          <add name="Access-Control-Allow-Origin" value="*" />
          <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
          </customHeaders>
        </httpProtocol>
    When I try to call any web service, i get these headers two times each: 
    HTTP/1.1 200 OK
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Expires: Sat, 01 Mar 2014 19:11:37 GMT
    Last-Modified: Sun, 16 Mar 2014 19:11:37 GMT
    ETag: "3"
    X-SharePointHealthScore: 0
    SPClientServiceRequestDuration: 20
    SPRequestGuid: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    request-id: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    X-FRAME-OPTIONS: SAMEORIGIN
    Persistent-Auth: true
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    MicrosoftSharePointTeamServices: 15.0.0.4569
    Date: Sun, 16 Mar 2014 19:11:37 GMT
    and that gives me error from ajax: The 'Access-Control-Allow-Origin'
    header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.
    The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
     Origin 'null' is therefore not allowed access.
    Any idea???

    Hi Ann,
    Please check whether there are duplicate custom headers in your code.
    Similar issue for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/b79b75f4-b46b-46ae-ae29-17a352b6b90b/custom-http-response-headers-for-sp-2013-shown-2-times?forum=sharepointdevelopment 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I am trying to transfer my movies (mp4 files) to my IPad, but they are not showing up on the IPad. I have 13 movies showing on my IPad that they are in ICloud. I've sync'd the movies I want to the IPad, but only one is showing under the "movies" folder. ?

    I have been trying to transfer some different movies from my PC to my IPad, but they are not showing in the "movie" folder. I have sync'd the movies (these are mp4 files) that I wanted transfered, but only one is showing in the folder. There are 13 other movies in the folder that have the ICloud symbol in the corner of their picture. I understand that I can pull those movies from ICloud any time I want to watch them, but I want to watch the ones that I've just sync'd with my IPad. How do I find them? After I checked the movies I wanted, I "applied" them and watched it sync and copy the wanted movies to my IPad. Now what?  Thanks.

    There are some good programs that you could use to convert the format, Handbrake or Mpegstreamclip are two good free ones. Convert them to MP4 and then try importing them again.

  • How can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    how can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    No you do not need separate Apple ID's in order to use 3 devices with one Apple ID. I use 4 devices to Message and FaceTime and all use the same Apple ID. You do need to add additional email addresses for the other devices.
    Look at this very informative video for the instructions.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • HT3819 I am moving back home to live ,currently I have ipad2 ,4s iPhone ,wife 4s and daughter iPhone 5 ,pad 4th gen and iPod touch ..all different iTunes account s but only one invoice which is mine ...can we share and if so how ?

    I am moving back home to live ,currently I have ipad2 ,4s iPhone ,wife 4s and daughter iPhone 5 ,pad 4th gen and iPod touch ..all different iTunes account s but only one invoice which is mine ...can we share and if so how ?

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • HT1349 How do I set up a separate icloud account? Both my wife and I have an iPhone 4s and an iPad, but only one Mac. We are tired of our "stuff" getting mixed up together when we sync.

    How do I set up a separate icloud account? Both my wife and I have an iPhone 4s and an iPad (1 and 3), but only one Mac. We are tired of our "stuff" getting mixed up together when we sync. Thanks much

    You don't need separate iCloud accounts if you want to simply sync unique content to each device using iTunes. I have three iDevices using one ID and one iTunes library and each device has it's own content on it. You need to set up the sync configuration for each device. This is what I recommend.
    First turn off auto sync in iTunes. Launch iTunes on the Mac and go to iTunes>Preferences>Devices>Prevent iPods, iPhones and iPads from automatically syncing. Click OK and then quit iTunes.
    Connect one of your devices to the Mac and launch iTunes.
    Click on the device name on the left side under the devices heading.
    Click on a tab in iTunes - Apps for instance.
    Click on the Apps that you want to sync to that device.
    Make sure that the Sync Apps heading is checked.
    Follow the same procedure for all of the other tabs in iTunes ..... Music, Photos, Movies and so on.
    After you have finished making all of your selections, click on Apply in the lower right corner of iTunes.
    When you are done, eject the first device and do the same thing with the other device. iTunes will now remember the sync configuration on each device.
    You can change that configuration any time that you like by following the steps outlined above.
    If you want to continue to auto sync, turn it back on in the iTunes preferences as described above.

  • Home sharing is turned on on both of my computers but only one computer is showing the icon.

    I have both of my computers turned on and home sharing is turned on on both computers as well but only one computer is showing the icon so I can't share.  I have tried turning off the home share and turning it back on but nothing changed.
    Any suggestions?

    Hi there nc999!
    I have an article here for you that will help you troubleshoot this issue with Home Sharing:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • My email says I have four new emails, but only have three marked as unread?

    My email says I have four new emails, but only have three marked as unread? I've tried turning "badge app icon" off and on, as well as deactivating and reactivating account and still having same problems.

    Hang on...
    You can only authorise the songs you purchase from the iTunes Store to play on five computers.
    You can download and install iTunes (the iTunes programme) onto as many computers as you wish.
    Two different things.
    Assuming therefore, that your problem is that you have authorised five computers, but now no longer have some of them, you need to de-authorise all your computers and then re-authorise the computers you still have.
    To de-authorise your computers, go to your account in the iTunes Store and look for the Deauthorise All button.

Maybe you are looking for

  • Problem with Billing Engine after upgrade from CRM 5.0 to CRM 7.0

    Hello together, The system  of our customer has been upgraded from CRM 5.0 to CRM 7.0. After that some problems occurred regarded the billing. In the Billing Due List a dump occurs when clicking on an item and then on conditions Dump message: No func

  • Crystal 2008 visual studio components

    Good Afternoon All, I have a licensed copy of visual studio.net 2005. I have a licensed copy of crystal 11 r 2. I have a licensed copy of crystal reports basic 2008 (came with SAP Business One as we are a partner). My version of visual studio has cry

  • Using CRMXIF_ORDER_SAVE to update configurations

    Dear All,   We are using the function module CRMXIF_ORDER_SAVE from the XIF interface of CRM in order to update configurations in several Order Contracts in CRM. After run we see the configuration correctly in the IPC configuration screen when displa

  • Oracle Spatial Index Advisor

    Have tried to use subject and got an error when adding the table to analyze. Error: Server object could not be created: server object could not be initialized: Non supported character set: oracle-character-set-171. What's issue of this error? Does an

  • CC2014 mp4/h.264 file error

    Just updated to CC2014 and now premiere can not play any mp4/h.264 file only showing a green image. Even if you export a working clip thats a different format from premiere as h.264 and import it back in, it will only show up green. Media Encoder 201