Synchronizing persistent tmux loginctl session ID with new session

Hey all. Does anyone else have the issue with a persistent tmux session losing it's 'active' session status with loginctl after restarting the window manager (monsterwm in this case, logging in automatically on VT1 per the wiki)? This causes issues with udisks mounting priviliges. I'd think it'd cause issues with pulseaudio but it doesn't (and I don't understand why).
So, to reproduce:
1. Fresh reboot and login
2. Open terminal. $XDG_SESSION_ID will be 1
3. Open tmux instance. $XDG_SESSION_ID will be 1
4. Restart the window manager
5. Open terminal. $XDG_SESSION_ID = 3. loginctl session-status active=yes
6. Reattach tmux session. XDG_SESSION_ID =1. loginctl session-status active=no
Is there some easy way to keep these synchronized so I don't have permissions issues?
Thanks!
Scott

No, it has nothing to do with host names, CNAME, DNS or anything.
The session ID is sent to the server from the browser in either a cookie header or as part of the "extra info" part of a URL with the request. If there is no session ID in either place, the server creates a new session. If there is a session ID, then it gets the session object (if it's not expired). Then it sends the session ID back to the browser with the response to that request (either as a cookie or encoded into the URLs in the page, which you have to do explicitly do for each URL). Click on a link, then the process starts again. The first time you go to a site, you have no session ID. The server just makes a new one.
The only thing that domain names have any affect on is cookies. Cuz cookies are name/value data associated with a domain name of the server (amongst other things). The browser, for security reasons, only sends cookies in requests to servers that set the cookie in the first place. The server can't get cookies that it didn't set.
So if you have a server running on your local machine, you can access that server in 3 ways:
1) localhost
2) network name
3) domain name
The browser can know quite easily that 1 and 2 are the same thing, and send cookies for either interchangably (not that it has to, but it seems you are seeing this happen, so...). But the browser will probably not make any assumption about 3's relation to 1 or 2. The association is generally to domain name, not necessarily IP address.
And it's really a moot point anyway. You should not typically be accessing a server from those 3 different means within the same session. Someone connecting to your server isn't going to use anything but #3 anyway, the other 2 (definitely #1 and #2 only works on the same LAN) wouldn't make much sense. So there's not going to be this issue at all. The session ID itself has no relation whatsoever to a client's domain name.

Similar Messages

  • Scope of global & pl/sql variable in open_form with new session

    Hi,
    What will be the scope of the Oracle forms global variable & variable declared in a pl/sql pckage, if the value in these variable is updated from the Oracle Form GUI, if the form is opend by using the open_form method with new session or Active session.
    My requirement is , I developed one application with custom user login name & password - not the Oracle username & password.
    But I need to track the user actions on the forms - Inser/Update/Delete action, for this i included user_name as one of the column in the base table, and from the form, initialise this field with login user name.
    I implemented this in the trigger of the base table. But for delete, I am not getting the user name who deleted, only getting the user who created this record, because :NEW is not in scope for after delete trigger. So for the delte, I created a variabe in a PL/SQL package, and created two procedure to set & get the user name to that variable, and from the Form, before delete by using the set method I assign the current login user name to the variable, and in the trigger by using the get() get the user name from the variable, So far this is working fine, my doubt is What will be the value in the variable, if two different user made delete action from at a same time, Whether first user name will be replace with second one, or this variable will be in different session, If I opened the forms by using SESSION parameter. Also can I use Oralce Forms global varaible instead of the PL/SQL varibale.
    Thank in advance.

    Thanks Andreas,
    I did the same way. But my doubt is All the user login will be in different session, I mean, Whether the vairable used to store the user name will be in different session to each Oracle Forms user, it wont overwrite one user name with the next login user name.
    -- Copied from you old message:
    <<On the forms-side after the login, call PK_USER.PR_SET_USER(THE_USER_TAKEN_FROM_SOMEWHERE);
    In your db-triggers where you actually use something like USER, use PK_USER.FK_GET_USER instead>>
    Thanks
    Rizly

  • Virtual char's not working with new session

    This is a weird one...
    I've managed to build virtual char's and key figures in BW 3.5. It is working fine with my first query, but when I start a new session of BEx Analyser (or WAD) the values are suddenly empty.
    I've found that if I reactivate the cube it works again, but only for the first session. With the next session the values are empty again.
    Any thoughts?

    burkey7669 wrote:
    I put it in the freezer( an online solution),
    No intelligetent person puts electronics in the freezer.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  If none of this resolves, then the device should be taken to Apple for evaluation.
    If Apple determines the device has suffered a hardware failure, they will either replace under warranty (if under warranty) or offer an Out of Warranty replacement.
    So what exactly is the problem?  They offered an Out of Warranty replacement for the defective device.

  • Globals and Open_Form with new session

    How are Globals treated when calling Open_Form with the SESSION parameter? Are they session specific?
    I am trying to pass information between two forms within different sessions. Would parameters allow me to do this? Is there a way of passing globals between forms in different sessions?
    thanks in advance
    n

    Sorry but global variables are specific to session and do not span over multiple sessions. U could use parameter forms instead.

  • How to trim a range of clips in a session to a new session?

    It seems that I've done this before but I can't, for the life of me, remember how, and I don't know what keywords to use to find it in the forums, so I'll just ask.  I'm using 3.0 now but have used 1.5 and 2.0 in the past.  I've recorded a band to an 8-track session that's nearly 2 hours long, consisting of many different songs.  I want to select some of the tracks in the range of a single song and create a new session, in a new directory, containing only those sections of the tracks in it.  Everything I do ends up saving the complete 2-hour long tracks, taking forever to save and eating up disk space.  I could go into detail about all of the things I've tried, but I betting it's a simple answer - if somebody can help.  Thanks!

    Hi,
    In Tiger it is the same as the comma and dashes thing I listed for some routers.
    You can also click the Edit button in that pic I posted and look at which ports are listed (they will be greyed out on the Preset ones)
    Windows Sharing should list the SMB ports and the Printing ports.
    EDIT:
    Actually on this page where I listed how to set up iChat - SMB is a separate line.
    (Printing sharing may also list the Windows Print Sharing port)
    If those don't cover the Windows app you want to communicate with you will have to make your own Entry Like the Edit link I just inserted)
    10:37 PM      Friday; May 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to link Form session number with Database session

    Hello all,
    We have some FRM-93000 errors in our application.log
    oracle\FRHome_1\j2ee\OC4J_BI_Forms\ap
    plication-deployments\formsapp\OC4J_BI_Forms_default_island_1\application.log
    The Session numer (in this case 348), is it possible to link this with the database session number, we want to know which users are experiencing these problems.
    07/07/26 15:33:20 formsweb: Forms session <348> aborted: unable to communicate w
    ith runtime process.
    07/07/26 15:33:20 formsweb: Forms session <348> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Thanks in advance
    Michiel.

    Is it possible to link with V$session. This will give the users connected to the database at that time/.
    Rajesh ALex

  • Session logoff with new target url using BSP_MODEL template

    Hi,
    I implemented the session management pages as used in ITSM. However I had some problems when calling the application in a popup (somehow the deletion of the session appears also after the 2nd start of the app deleting all my created models)
    So I decided to try the slightly different pages from BSP_MODEL. Et voila problem solved.
    However I have this button with:
    onClientClick = "parent.exitBSPApplication( '<%= l_url %>');"
    So a new problem because this is not used in the BSP_MODEL default.htm.
    What did I do
    1. I added a parameter to the script like in ITSM
    function exitBSPApplication(newTargetUrl)
    2. Copied 2 lines from the ITSM script
    document.getElementById("FRAMESETID").onunload = null;
    window.setTimeout('{document.location.href="'newTargetUrl'";}', 750);
    This would do the trick I thought. However pressing the button results in going to the new target url, but sadly does not close the session.
    I already tried to delete the 'and application->counter = 0' but this is not working either.
    Any suggestions?
    Greetings,
    Vincent

    Vincent,
    It is important not to look directly at all the subtle different bits of code. Rather understand the big picture. Our test programs, for example ITSM and/or BSP_MODEL have different versions of the general principle. This just reflects different goals we wanted to achieve, etc.
    The minimum you need is a frameset with onUnload hooked, and then load you application inside this. You can even delete all of that loading stuff. Just fluff.
    With this, if the window (only IE!) is closed, the onunload will still terminate the session.
    The button is just to demonstrate an example of how to do this when you want an explicit logoff button in your application.
    One last important aspect: if you restart the same application, then they share the same cookie, and things go wrong! Effectively you can kill the new instance instead of the old one.
    Coming to TechEd?

  • Compare Old Value (Session State) with New Value on Submit.

    Hi all,
    Is there an easy way to do comparison of Old Value (Session State Value) with the New Value?
    is there an API for that? like what we have in PLSQL Trigger :NEW & :OLD
    Thanks before
    -Joel

    There is only one version of session state available for examination at any point during page rendering or processing, the current version. Can you explain more about what you need?
    Scott

  • FCHR - Online Cashed Check - Creates Batch session ending with ERR session

    My user is using the transaction FCHR - Online cashed checks to clear the payment document which we have made check payment and creates clearing document automatically in the bank GL account. In my case, the batch input session is creating with name ending with "ERR" and needs to process foreground in SM35 to create the clearing document. Most of time FCHR creates clearing document automatically and some times it is creating batch input session with user name ending with ERR. Can anyone provide me the reason for creating batch input session sometimes.
    Thanks in advance.

    Do you mean FCKR?  FCKR will generate a bach session with ERR when FCKR is unable to post the clearing at the time it is ran.  There is a check box at the bottom of the transaction called "Print posting log".  The posting log should give the errors that occur during posting.  Make sure this check box is checked when FCKR is run and review the log generated for errors.
    Regards,
    Shannon

  • After typing master password in session can I force typing master password again without ending current session and starting new session?

    Sometimes after using the master password to access an account during a given firefox session I would like to "revoke" this ability for automatic access (i.e. require typing the master password again) without having to end the current session and restart firefox.
    While it is nice to only have to type the master password once per session, there are times when after starting some action I would like to leave the browser unattended for a short time but prevent others from accessing sensitive information at other sites if they do not know my master password. Note this is not the same as "locking the browser." Presently the only way I know to force this is to kill the current session and restart the browser but this is not very satisfactory if I actually want to stay connected (authorized) at a particular site. I would hope that adding a button on the security tab to "require master password for current session" would be a simple fix to implement? Thank you for your attention.

    While waiting for a response to this question, I stumbled upon a partial (good workaround) answer to my question in the form of a Firefox addon, Master Password Timeout [https://addons.mozilla.org/en-US/firefox/addon/master-password-timeout/ ]. Among other things it adds "Logout Master Password" as an option under the Firefox "Tools" menu which then gives the functionality I was looking for.
    It seems to me though that this is a basic security option that would be good for a general Firefox user to be aware of since leaving a browser open unattended with no master password required could easily lead to trouble. Before finding this addon I was not aware that Firefox 4 had a 30 minute default timeout for the master password. At least in my case I have left Firefox going overnight on home computers and have not had to retype the master password the next morning... so somehow I missed having this "default" set when I upgraded to Firefox 4.

  • Open_form in new session and packages

    I have form A opened. Form A , calls some stored packages X and set some variable Y in the package.
    Now form A calls form B, with session mode. Will the value of variable X.Y be available in form B.
    Basically the question is when you open a new form (using open_form , session mode) what happens to the package variable ( stored packages).
    Thanking you

    Variables for stored packages are not visible accross session. Having said that you can try two things, first is as advised by the person earlier.
    Secondly, you can write value to a temporary table and read it from there. You can save value in the table using current session id. And when you launch new form with new session pass current id as parameter. New session form can then locate the value from the temporary table.
    Best of luck!

  • Calling new session

    hi Friends,
    i am using the FM ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST' for calling new session FK03 tcode and Skip the frist screen, i have passed 2 parameters lifnr(LIF) and bukrs(BUK).This Values coming with NEW session, but in FK03 frist screen check box are there for Address data, it is asking Select at least one processing option,
    how to select the processing option. please give me solution.
    Thanks,
    santha

    Hi, you will need to do a partial BDC here.  Please test out the example below. 
    report zrich_0001.
    data: messtab like bdcmsgcoll occurs 0 with header line,
          bdcdata like bdcdata occurs 20 with header line,
          mode(1) type c value 'E'.
    parameters: p_lifnr type rf02k-lifnr,
                p_bukrs type rf02k-bukrs.
    perform bdc_dynpro      using 'SAPMF02K' '0106'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-D0610'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                            p_lifnr.
    perform bdc_field       using 'RF02K-BUKRS'
                            p_bukrs.
    * These are the checkboxes
    perform bdc_field       using 'RF02K-D0110'
                                  'X'.
    perform bdc_field       using 'RF02K-D0120'
                                  'X'.
    perform bdc_field       using 'RF02K-D0130'
                                  'X'.
    perform bdc_field       using 'WRF02K-D0380'
                                  'X'.
    perform bdc_field       using 'RF02K-D0210'
                                  'X'.
    perform bdc_field       using 'RF02K-D0215'
                                  'X'.
    perform bdc_field       using 'RF02K-D0220'
                                  'X'.
    perform bdc_field       using 'RF02K-D0610'
                                  'X'.
    call function 'ABAP4_CALL_TRANSACTION'
      starting new task 'TEST'
               exporting
                 tcode                         = 'FK03'
                 mode_val                      = mode
                 update_val                    = 'S'
               tables
                 using_tab                     = bdcdata
    *                mess_tab                      = messtab
               exceptions
                 call_transaction_denied       = 1
                 tcode_invalid                 = 2
                 others                        = 3.
    *      Form  BDC_DYNPRO
    form bdc_dynpro using  program dynpro.
      clear bdcdata.
      bdcdata-program = program.
      bdcdata-dynpro = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *      Form  BDC_FIELD
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • No session found with status "New" or "Error"

    Hi,
    I put the statement after the CLOSE GROUP to process the BDC automatically:
      SUBMIT RSBDCSUB AND RETURN
             EXPORTING LIST TO MEMORY
             WITH MAPPE = SESSION.
             WITH VON = SY-DATUM
             WITH BIS = L_NEXT_DAY
             WITH Z_VERARB = 'X'
             WITH FEHLER = ' '.
    And when I ran it I got an error that says
    <i>No session found with status "New" or "Error"</i>
    When I go to SM35, I see the session in the 'New' tab.  How can I get this to process completely without manual intervention or first thing first no error from running the program?
    Thanks,
    Will

    Hi Rob,
    I will try the COMMIT. I think because I processing mutltiple GS01 transaction in one program.
    Hi Sudheer,
    I am actually usinng the INCLUDE that was given to me when I did the recording.  Here is the complete code from the include.
    ***INCLUDE BDCRECX1.
    for programs doing a data transfer by creating a batch-input session
    and
    for programs doing a data transfer by CALL TRANSACTION USING
    SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS SESSION RADIOBUTTON GROUP CTU.  "create session
      SELECTION-SCREEN COMMENT 3(20) TEXT-S07 FOR FIELD SESSION.
      selection-screen position 45.
      PARAMETERS CTU RADIOBUTTON GROUP  CTU.     "call transaction
      SELECTION-SCREEN COMMENT 48(20) TEXT-S08 FOR FIELD CTU.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S01 FOR FIELD GROUP.
      selection-screen position 25.
      PARAMETERS GROUP(12).                      "group name of session
      SELECTION-SCREEN COMMENT 48(20) TEXT-S05 FOR FIELD CTUMODE.
      selection-screen position 70.
      PARAMETERS CTUMODE LIKE CTU_PARAMS-DISMODE DEFAULT 'N'.
                                          "A: show all dynpros
                                          "E: show dynpro on error only
                                          "N: do not display dynpro
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S02 FOR FIELD USER.
      selection-screen position 25.
      PARAMETERS: USER(12) DEFAULT SY-UNAME.     "user for session in batch
      SELECTION-SCREEN COMMENT 48(20) TEXT-S06 FOR FIELD CUPDATE.
      selection-screen position 70.
      PARAMETERS CUPDATE LIKE CTU_PARAMS-UPDMODE DEFAULT 'L'.
                                          "S: synchronously
                                          "A: asynchronously
                                          "L: local
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S03 FOR FIELD KEEP.
      selection-screen position 25.
      PARAMETERS: KEEP AS CHECKBOX.       "' ' = delete session if finished
                                          "'X' = keep   session if finished
      SELECTION-SCREEN COMMENT 48(20) TEXT-S09 FOR FIELD E_GROUP.
      selection-screen position 70.
      parameters E_GROUP(12).             "group name of error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S04 FOR FIELD HOLDDATE.
      selection-screen position 25.
      PARAMETERS: HOLDDATE LIKE SY-DATUM.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S02 FOR FIELD E_USER.
      selection-screen position 70.
      PARAMETERS: E_USER(12) DEFAULT SY-UNAME.    "user for error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S03 FOR FIELD E_KEEP.
      selection-screen position 70.
      PARAMETERS: E_KEEP AS CHECKBOX.     "' ' = delete session if finished
                                          "'X' = keep   session if finished
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S04 FOR FIELD E_HDATE.
      selection-screen position 70.
      PARAMETERS: E_HDATE LIKE SY-DATUM.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) TEXT-S10 FOR FIELD NODATA.
      PARAMETERS: NODATA DEFAULT '/' LOWER CASE.          "nodata
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) FOR FIELD SMALLLOG.
      PARAMETERS: SMALLLOG as checkbox.  "' ' = log all transactions
                                         "'X' = no transaction logging
    SELECTION-SCREEN END OF LINE.
      data definition
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
          message texts
    TABLES: T100.
      at selection screen                                                *
    AT SELECTION-SCREEN.
    group and user must be filled for create session
      IF SESSION = 'X' AND
         GROUP = SPACE OR USER = SPACE.
        MESSAGE E613(MS).
      ENDIF.
      open dataset                                                       *
    FORM OPEN_DATASET USING P_DATASET.
      OPEN DATASET P_DATASET
                   FOR INPUT IN TEXT MODE
                   ENCODING DEFAULT.
      IF SY-SUBRC <> 0.
        WRITE: / TEXT-E00, SY-SUBRC.
        STOP.
      ENDIF.
    ENDFORM.
      close dataset                                                      *
    FORM CLOSE_DATASET USING P_DATASET.
      CLOSE DATASET P_DATASET.
    ENDFORM.
      create batchinput session                                          *
      (not for call transaction using...)                                *
    FORM OPEN_GROUP.
      IF SESSION = 'X'.
        SKIP.
        WRITE: /(20) 'Create group'(I01), GROUP.
        SKIP.
      open batchinput group
        CALL FUNCTION 'BDC_OPEN_GROUP'
             EXPORTING  CLIENT   = SY-MANDT
                        GROUP    = GROUP
                        USER     = USER
                        KEEP     = KEEP
                        HOLDDATE = HOLDDATE.
        WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ENDIF.
    ENDFORM.
      end batchinput session                                             *
      (call transaction using...: error session)                         *
    FORM CLOSE_GROUP.
      IF SESSION = 'X'.
      close batchinput group
        CALL FUNCTION 'BDC_CLOSE_GROUP'.
        WRITE: /(30) 'BDC_CLOSE_GROUP'(I04),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ELSE.
        IF E_GROUP_OPENED = 'X'.
          CALL FUNCTION 'BDC_CLOSE_GROUP'.
          WRITE: /.
          WRITE: /(30) 'Fehlermappe wurde erzeugt'(I06).
          E_GROUP_OPENED = ' '.
        ENDIF.
      ENDIF.
    ENDFORM.
           Start new transaction according to parameters                 *
    FORM BDC_TRANSACTION USING TCODE.
      DATA: L_MSTRING(480).
      DATA: L_SUBRC LIKE SY-SUBRC.
    batch input session
      IF SESSION = 'X'.
        CALL FUNCTION 'BDC_INSERT'
             EXPORTING TCODE     = TCODE
             TABLES    DYNPROTAB = BDCDATA.
        IF SMALLLOG <> 'X'.
          WRITE: / 'BDC_INSERT'(I03),
                   TCODE,
                   'returncode:'(I05),
                   SY-SUBRC,
                   'RECORD:',
                   SY-INDEX.
        ENDIF.
    call transaction using
      ELSE.
        REFRESH MESSTAB.
        CALL TRANSACTION TCODE USING BDCDATA
                         MODE   CTUMODE
                         UPDATE CUPDATE
                         MESSAGES INTO MESSTAB.
        L_SUBRC = SY-SUBRC.
        IF SMALLLOG <> 'X'.
          WRITE: / 'CALL_TRANSACTION',
                   TCODE,
                   'returncode:'(I05),
                   L_SUBRC,
                   'RECORD:',
                   SY-INDEX.
          LOOP AT MESSTAB.
            SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                      AND   ARBGB = MESSTAB-MSGID
                                      AND   MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              L_MSTRING = T100-TEXT.
              IF L_MSTRING CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ENDIF.
              CONDENSE L_MSTRING.
              WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
          ENDLOOP.
          SKIP.
        ENDIF.
    Erzeugen fehlermappe ************************************************
        IF L_SUBRC <> 0 AND E_GROUP <> SPACE.
          IF E_GROUP_OPENED = ' '.
            CALL FUNCTION 'BDC_OPEN_GROUP'
                 EXPORTING  CLIENT   = SY-MANDT
                            GROUP    = E_GROUP
                            USER     = E_USER
                            KEEP     = E_KEEP
                            HOLDDATE = E_HDATE.
             E_GROUP_OPENED = 'X'.
          ENDIF.
          CALL FUNCTION 'BDC_INSERT'
               EXPORTING TCODE     = TCODE
               TABLES    DYNPROTAB = BDCDATA.
        ENDIF.
      ENDIF.
      REFRESH BDCDATA.
    ENDFORM.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> NODATA.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.
    Thanks
    Will
    I awarded points to everyone. Thanks so much.
    Message was edited by:
            Will Ferrell

  • Bi publisher with new public session not working. Bug?

    Hello,
    I've got a problem with a bi publisher report I want to open from a url. I have a page 1 which is public, and I want to give the user following url to download the document:
       MYURL/pls/apex/f?p=MYAPP:1::PRINT_REPORT=MYREPORT:::MYVAR:1
    This gives me an empty page.
    When I first generate a new session by just going to page 1:
       MYURL/pls/apex/f?p=MYAPP:1 (which generates MYURL/pls/apex/f?p=MYAPP:1:1855219487679317)
    And then use the original url with the new session, it downloads the document:
       MYURL/pls/apex/f?p=MYAPP:1:1855219487679317:PRINT_REPORT=MYREPORT:::MYVAR:1
    Is this a know problem and is there a workaround?
    Regards, Jan

    Jan,
    This appears to be a bug. As a workaround, you can provide users with a link to a different public page and have that page do a before-header branch to your page 1, specifying the PRINT_REPORT=MYREPORT request value and the session item names/values in the branch definition. For example the link your users could use (to public page 2) might be:
    ..f?p=MYAPP:2
    Scott

  • 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>

Maybe you are looking for

  • Error while trying to install Crystal Reports 2008 SP3

    Has anyone else come across this error before when running the SP3 update installer; Crystal Reports 2008 SP3 Update is not allowed to install because a patch with a higher version was detected. The installation then terminates.  There has been nothi

  • Trouble accessing photos in iPhoto

    For most of my older photos (1  yrs) I can no longer open and edit them in iphoto.  The image is visible in thumbnail in iphoto but won't open, won't copy, etc.  Help!  It's very odd. I can literally see the thumbnail of the photo and then can't view

  • Google Voice vs Skype Need to Make Decsion ASAP

    I need to make a decsion on if I should use google voice for my new business or skype. The lack of ability to talk directly with a human about my questions is  also frustrating. i need to order business cards and finish print materials asap so someon

  • VBScript Installation

    Hi there when i try to install I tunes 7 i get this message about VBScript not being installed. so i went to the microsoft website to get it but when i try and install it i get the following error "error registering the OCX C:\WINDOWS\system32\jscrip

  • Detect browser closing

    In my company, we have a requirement to display a message to the user whenever they close the browser while in the EP. Is there any config or hacks (javascript, etc) to detect the browser closing to display a message box? Thanks.