Problem - Two spools

Hi,
I have two smartforms.
  Smartform 1
  Smartform 2
Loop table.
   Add a page to spool 1 using smarform 1.
   Add a page to spool 2 using smarform 2.
endloop.
How can I achive this? I can´t use two loops.
Thanks.

What do you mean by "add a page"? write the whole smart form or only part of it?
If it's only a part of it, then you need to first divide it into several smart forms.
Then you can write the whole smart form to a spool. So that you write to 2 different spools, choose print parameters according to Note 85318 appending documents to existing spool requests, for example use tdsuffix2 to differentiate them.
Don't forget to open and close each time (print parameters no_open=space, no_close=space) because the 2 smart forms must go to different spools.
First time you open the spool, force to create a new one (print parameter tdnewid='X'), but do not at the next calls (tdnewid=space).
tdnewid = 'X'
LOOP AT ...
  call smart form 1 (tdsuffix2="...1")
  call smart form 2 (tdsuffix2="...2")
  tdnewid = space
ENDLOOP

Similar Messages

  • Two spool getting generated for a single SAP script

    Hi ABAPers,
    I have a SAPscript development. This is a PO form for India. When I do a "Trial printout" in ME9K I see that two spools are generated. This is my first problem as till last week only one spool was getting generated. Only spool should be generated.
    My second problem is that, the second spool which is generated has texts shown in some different language than English (my form only exists in language EN which is the orginal one too). When I debugged this whole thing, on the second run of the debugger (i.e. when the second spool is generated), when the control goes to a text in one of the windows, that text is shown in some other language (in debug mode also). Please note that the standard text is a Global standard text and it exists in around 6 languages.
    I guess if only one spool is generated then my second problem would be solved. But then why are 2 spools generated in the first place?
    If anyone has came across similar kind of problem please help. Thanks in advance.
    regards,
    Prakhar

    Hi,
       Check this..
    1. Go to txn. NACE... select application "EF"... then click on "Condition Records" button
    2. Select your Output Types...(ex. NEU)....
    3. Go to Change condtion Record Screen. Select ur condtion then click on "communication" button..
    4. Under Print Output Check the field "Number of Message" if it is 2 then delete it.
    Regards
    GK.

  • PREC: two spools are created

    We are having a problem when we run tcode PREC in 6.0 version.
    When we run it in background, we see that two spools are created but in
    4.6C version we only had one. Besides, we don´t see the trip number nor the
    emplyee number in the second spool.
    Currently this is only happening when "invalid event" error is
    populated but we don´t know if there are another errors that bring
    about the same.
    So, the questions are:
    Why two spools are being generated?
    what other errors could cause the two spools to be created?
    what is the second spool for?
    Is there a posibility to show all the information in one spool?

    Hello Emiliano,
    This is not an error.
    If you run the RPRTEC00 not in background mode, you will get      
    the error for the Rejected Trip in the first screen. If you press the    
    back button you will get the additional information "Invalid event       
    (status 2)" in the second screen. This is the reason why in the job      
    it created  two spools. Nevertheless the "Invalid Event" message will    
    not help with the error because the important one is in the first        
    screen already, the rejected trips.                                                                               
    This is a standard behaviour rather than an error.  
    Regards,
    Raynard

  • Submit results with two spool request

    Hi
    I using the following submit code in my abap program.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    *  DESTINATION           = 'LOCL'
    LIST_NAME             = 'TEST'
    LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
    IMMEDIATELY           = ' '
    LINE_SIZE              = 1023
    NO_DIALOG             = 'X'
    IMPORTING OUT_PARAMETERS        = PARAMS
    VALID                 = VALID.
    SUBMIT (pgnam) USING SELECTION-SET vrint
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    SPOOL PARAMETERS PARAMS AND RETURN.
    This is working fine in my development system. But when i test this in testing server (QAS) it returns two spool one with 0 pages and second one with correct output. Can anyone help me with this?
    points will be rewarded for useful answers.
    thanks

    REPORT demo NO STANDARD PAGE HEADING.
    DATA: spfli_wa TYPE spfli,
          sflight_wa TYPE sflight.
    DATA: print_parameters TYPE pri_params,
          valid_flag       TYPE c LENGTH 1.
    START-OF-SELECTION.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        IMPORTING
          out_parameters       = print_parameters
          valid                = valid_flag
        EXCEPTIONS
          invalid_print_params = 2
          OTHERS               = 4.
      IF valid_flag = 'X' AND sy-subrc = 0.
        SELECT carrid connid
               FROM spfli
               INTO CORRESPONDING FIELDS OF spfli_wa.
          WRITE: / spfli_wa-carrid, spfli_wa-connid.
          HIDE:    spfli_wa-carrid, spfli_wa-connid.
        ENDSELECT.
      ELSE.
      ENDIF.
    AT LINE-SELECTION.
      NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
      SELECT *
             FROM sflight
             INTO sflight_wa
             WHERE carrid = spfli_wa-carrid AND
                   connid = spfli_wa-connid.
        WRITE: / sflight_wa-carrid, sflight_wa-connid,
                 sflight_wa-fldate ...
      ENDSELECT.
      NEW-PAGE PRINT OFF.

  • Problem in spooling a file

    Hello ,
    I am having some problem in spooling a file i am using a single script that connect to different user to fetch a data i am using html to spool a file.
    whenever it connect to different user it show message "connected " in spool file .
    Is their any method to remove this message coming in spool file .
    with regards
    Vinesh

    I am using oracle 9i it is not working there .
    Command which i am using is given below.
    set markup html on;
    spool on;
    set feed off;
    spool C:\Temp\vinesh.xls;
    select EMPLOYEE_ID,FIRST_NAME from employees
    where rownum<2;
    set markup html off ;
    spool off;
    conn dotsoft/abcd1212@dot
    set markup html on;
    spool on;
    set feed off;
    spool C:\Temp\vinesh.xls APPEND;
    select unique_id_no EMPLOYEE_ID,customer_name FIRST_NAME
    from working_lines where rownum<2;
    set markup html off ;
    spool off;
    it is only working for 1st connection showing error for 2nd connection.
    with regards
    Vinesh Gupta

  • SFTP MGET of large files fails - connection closed - problem with spool file

    I have a new SFTP job to get files from an FTP Server.  The files are large (80mg, 150mg).  I can get smaller files from the ftp site with no issue, but when attempting the larger files the job completes abnormally after 2 min 1 sec. each time.  I can see the file is created on our local file system with 0 bytes, then when the FTP job fails, the 0 byte file is deleted.
    Is there a limit to how large an ftp file can be in Tidal?  How long an ftp job can run?
    The error in the job audit is Problem with spool file for job XXXX_SFTPGet and an exit code of 127 (whatever that is).
    In the log, the error is that the connection was closed.  I have checked with the ftp host and their logs show that we are disconnecting unexpectedly also.
    Below is an excerpt from the log
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.055 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=12
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.055 : Transmit 44 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.055 : Remote window size decreased to 130808
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.071 : RepeatCallback received 84 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.071 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.071 : Received message (type=105,len=37)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.071 : AddMessage(12) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Reply : Name=SSH_FXP_ATTRS,Type=105,RequestID=12
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=13
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.071 : Transmit 56 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.071 : Remote window size decreased to 130752
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.087 : RepeatCallback received 52 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.087 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.087 : Received message (type=102,len=10)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.087 : AddMessage(13) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=13
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Send : Name=SSH_FXP_READ,Type=5,RequestID=14
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.087 : Transmit 26 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.087 : Remote window size decreased to 130726
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.118 : RepeatCallback received 0 bytes
    DEBUG [SFTPChannelReceiver] 6 Feb 2015 14:17:33.118 : Connection closed:  (code=0)
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : Disconnected unexpectedly ( [errorcode=0])
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : EnterpriseDT.Net.Ftp.Ssh.SFTPException:  [errorcode=0]
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.CheckState()
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.GetMessage(Int32 requestId)

    I believe there is a limitation on FTP and what you are seeing is a timeout built into the 3rd party application that tidal uses (I feel like it was hardcoded and it would be a big deal to change but this was before Cisco purchased tidal)  there may have been a tagent.ini setting that tweaks that but I can't find any details.
    We wound up purchasing our own FTP software (ipswitch MOVEit Central & DMZ) because we also had the need to host as well as Get/Put to other FTP sites. It now does all our FTP and internal file delivery activity (we use it's api and call from tidal if we need to trigger inside a workflow)

  • PREC: logic between the two spools

    When we run it PREC in background we see that two spools are created when we get the "invalid event" error in version 6.0.
    how can we match the error in the first spool (trip and personnel
    number) with the error in the second spool (error description)?
    are there other errors that cause two spool to be created instead of one?

    Hello Emiliano,
    Here is my answer to your query:
    First, if you run the RPRTEC00 not in background mode, you will get the error for the Rejected Trip in the first screen. If you press the back button you will get the additional information "Invalid event  (status 2)" in the second screen. This is the reason why in the job    it created  two spools. Nevertheless the "Invalid Event" message will not help with the error because the important one is in the first screen already, the rejected trips.                                                                               
    This is a standard behaviour rather than an error.                                                                               
    Regards,                                                    
    Raynard

  • Two spools into one

    Hello Experts,
    I have developed one report,it has two variants , for which two spools generated and 2 mail float automatically for two spools after that.
    My requirement :Is two spools can be combined in one file ,so that only one mail float.
    Aastha

    Hello,
    You can read the spool numbers as logic given below:
    CALL FUNCTION 'BP_JOB_READ'
            EXPORTING
              job_read_jobcount     = g_jcount
              job_read_jobname      = g_jbname
              job_read_opcode       = l_opcode
            TABLES
              job_read_steplist     = l_t_steps
            EXCEPTIONS
              invalid_opcode        = 1
              job_doesnt_exist      = 2
              job_doesnt_have_steps = 3
              OTHERS                = 4.
          IF sy-subrc = 0.
            CLEAR g_t_spool.
            LOOP AT l_t_steps ASSIGNING <fs_steps> WHERE NOT ( listident IS INITIAL ).
              g_wa_spool-listident  = <fs_steps>-listident.
              APPEND g_wa_spool TO g_t_spool.
            ENDLOOP.
          ENDIF.
    After reading, just to display the spools use the following logic:
        LOOP AT g_t_spool INTO g_wa_spool.
          g_spool1 = g_wa_spool-listident.
          CALL FUNCTION 'COM_SE_SPOOL_DISPLAY'
            EXPORTING
              iv_spool_no = g_spool1.
        ENDLOOP.
    But since you dont want to display, but mail to the user, you will have to build logic around the spool file, taking it into some internal table.
    Regards,
    Mansi.

  • Plantage d'Illustrator CS5.1... le fameux probleme du spooler...

    Bonjour à tous...
    Il y à de quoi perdre les pedales des fois !
    Nous avons migrés deux ordis de la CS2 à la CS5.5.
    Tous s'est bien déroulé pendant une semaine, et d'un coup on à eut droit au probleme de spooler : impossible d'enregistrer les fichiers, plantage d'illustrator à chaque fois.
    Apres maintes recherches sur le web, il y a eut la solution de redemarrer le spooler. ça n'a rien changé. Par contre un constat : avec le spooler desactivé, tout marche, sauf qu'on peux pas imprimer, et on a beaucoup besoin d'imprimer ici...
    Bref, je trouve une autre solution : supprimer le dossier de preferences d'illustrator.
    super, ça marche sur les 2 machines !!!
    suaf que... ça a marché une semaine a peine....
    ce midi, en pleine utilisation, le probleme de la sauvegarde impossible est revenu, rebelotte, plus possible d'enregistrer, ni meme d'ouvrir un fichier, meme plantage systematique.
    la suppression du dossier de prefs n'y fait rien cette fois...
    QUE FAIRE ???
    ce probleme est connu depuis 2007 au moins, a voir les resultats des recherches sur les differents forums du net, et vraisemblablement il n'est pas correctement résolu...
    Si quelqu'un a une idée... ce serait bienvenu !
    merci !

    houra !
    j'ai la solution !!!
    il m'a suffit de changer d'imprimante par defaut dans windows, car l'actuelle est en panne donc eteinte...
    donc bon a savoir pour d'autres... imprimante eteinte : illustrator pas content !!

  • Printer problem in Spool..

    Hi Experts,
                I have a problem with spool creation.After click on Print Icon i have given the printer name XX . but in the spool , I am seeing another printer name YY in Spool attributes. the name which is entered is not captured in spool attributes.Is the printer in spool attribute is a common one for all users? How to change the same?
    Regards,
    Sreeja

    hi,
    check in SPAD transaction which printer is default assigned..
    and try to remove default printer and execute what is picking..
    Prabhu

  • Have been using firefox for years but now having many problems two days ago could not acess any web pages without a firefox message saying page could not be ver

    Went on the internet on Friday but a box appeared saying firefox could not verify web page and somebody could be trying to impersinate the web page this was my home page it gave me two options the first was get me out of here or that I understood the risks and to continue I clicked the latter and my home page came up this box continued to appear on each occasion I tried to acess any web pages but when I tried to acess Facebook the box only gave me the option of get me out of here it also did this when I tried to acess Mozilla Firefox to see whether there was a problem with the browser I tried to reinstall the browser but the problem persisted I finally got round the problem by reinstalling my computer to an earlier time before I did this I also have the option for Google chrome on my computer and this browser worked fine Facebook etc I prefere Firefox but although the warning box hasn't materialised since I reset my computer Firefox has become unstable where it has frozen on a web page and the only way I can get out is to start the task manager and end the programme even though the task manager is saying that the page is still working correctly but after I have ended the running of the programme it will not reload the firefox browser but again google chrome is fine I have to restart the computer to fix this problem any ideas thanks.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    Check the date and time and time zone in the clock on your computer: (double) click the clock icon on the Windows Taskbar.
    Check out why the site is untrusted and click "Technical Details" to expand this section.
    If the certificate is not trusted because no issuer chain was provided (sec_error_unknown_issuer) then see if you can install this intermediate certificate from another source.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the <b>issuer of the certificate</b>.
    You can see more Details like intermediate certificates that are used in the Details pane.
    If <b>"I Understand the Risks"</b> is missing then this page may be opened in an (i)frame and in that case try the right-click context menu and use "This Frame: Open Frame in New Tab".
    *Note that some firewalls monitor (secure) connections and that programs like Sendori or FiddlerRoot can intercept connections and send their own certificate instead of the website's certificate.
    *Note that it is not recommended to add a permanent exception in cases like this, so only use it to inspect the certificate.

  • Problem in spool report

    Hi All,
    I have executed one report(Z report) in Production by Background, that has generated Spool report.
    My problem is some fields are cut-off(missing) from that spool report.
    Please provide the solution ASP.
    Regards,
    DSK.

    Hi DS
    Do one thing: Configure your text editor as follws:
    Go to Utilities->Settings->Downwards-Compatible Line Length(72) .
    Hope you can away from the spool request now.
    Have a look on the OSS note:
    <b>
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=534487&nlang=EN&smpsrv=https%3a%2f%2fwebsmp201%2esap-ag%2ede</b>
    Summary
    Symptom
    A list that includes more than 255 columns in the background is supposed to be issued. Instead of broad list lines being distributed on several printed lines for every 255 columns, only a single truncated printed line appears.
    Other terms
    Lists, print, 255 columns
    Reason and Prerequisites
    A Support Package which allows the printing of broad lists was imported. This creates a broad line of print with more than 255 columns in the spool. Generally, this is desired.However, the problem occurs if no corresponding format is defined because the default format X_65_255 truncates the line correspondingly at the print output.
    Solution
    1.) Define a format which can output the required number of printing columns.
    2.) Using the attached correction, the number of columns in the print dialog can be changed in this special case.If a column figure of 255 is now entered, the old behavior is active again.The correction is only effective if you imported note 501826 beforehand.
    Header Data
    Release Status: Released for Customer
    Released on: 13.06.2003  07:44:06
    Priority: Correction with medium priority
    Category: Program error
    Primary Component: BC-ABA-LI List Processing
    Releases
    Software
    Component Release From
    Release To
    Release And
    subsequent
    SAP_BASIS 46 46B 46B  
    SAP_BASIS 46C 46C 46D  
    Highest Implemented Support Package
    Support
    Packages Release Package
    Name
    SAP_BASIS 46B SAPKB46B44
    SAP_BASIS 46B SAPKB46B48
    SAP_BASIS 46C SAPKB46C36
    SAP_BASIS 46C SAPKB46C40
    Related Notes
    586914 - Workaround for printing signature data via CJ00 or DSAL
    Print Selected Notes (PDF) 
    Regards,
    Sree
    Message was edited by:
            sree ram

  • Network problem - two Macs running Leopard won't connect or share

    We've just bought a refurbed Mac book Pro since our HP notebook is so bloody unreliable and I suspect is about to cark it through overheating/inadequate cooling. The only problem is that networking it with our G5 is turning into a real nightmare, and embarrassingly both the HP and an old desktop PC can not only see and share with each other they can also see and be seen by both Macs and use the printer connected to the G5, and absolutely everything connects to the internet and shows up in the DHCP list on the router. Even more annoying was that the Macs connected initially this morning when we got the Macbook Pro out of the box, but after we'd done the initial round of software updates (10.5.2 was installed on the MBP) we've had nothing but trouble. Quite often they'd be in the shared list in the Finder window but wouldn't connect when clicked. Other times they wouldn't be there at all. We've even tried connecting the two over firewire, which worked for the G5 but not the MBP although the MBP could see the folders on the external hard drive we use for Time Machine backups of the G5.
    File sharing is on for both Macs (and printer sharing for the G5 obviously), AFP is enabled, firewall settings have been moved to Allow All... everything looks right but it doesn't work right. Right now I've managed to get the G5 to connect to the MBP using the Go>Connect to Server method mentioned elsewhere here, but it's one way only. It didn't work when we tried it on the MBP.
    The network is part cabled, part wifi. We've got a Motorola Surfboard cable modem/gateway/wireless router, both notebooks are connecting wirelessly, both desktops are cabled. If it makes any difference both Macs are on 10.5.5, the old desktop is Win2K (please don't laugh) and the HP notebook is Vista.
    Any suggestions?

    Well, it all seems to work now though I can't explain why and have no idea if it would work for others generally. But what we did, having reinstalled 10.5.2 and got the MacBook Pro back to exactly how it was when it arrived, was to install one update at a time checking that the two Mac could still communicate after each stage and with regular backups to be extra safe. The order we did the updates in was:
    Airport Utility
    Remote Desktop Client
    iTunes
    Front Row
    Mac OS X Combined
    Migration and DVD/CD Sharing
    Java
    Airport Extreme
    QuickTime
    QuickTime H.264 Compatibility
    Security Update
    Safari
    Maybe the order doesn't make a difference, I really wouldn't know. But then it doesn't make sense to me that updating one item at a time would make a difference either. However, we now have the network working properly with the same network settings used before when it was hit and miss at best. Glynn, maybe it's worth giving it a try on yours though without a clue why it's now working here I couldn't call it a solution as such.

  • Problem: two fact tables and one conformed dimension

    Hi everyone!
    I need to solve this situation:
    I have two fact tables, let's say F1 and F2, that are both linked to D1, my conformed dimension
    I just need to select fields from D1 but I know that, when querying, OBIEE links it to a fact table anyway..how does it choose the fact table? That is, if I only want fields from D1, does the system queries also from F1 or F2? Is it a random choice?
    Is there a way to "force" this choice, telling the system for example to choose only from F1?
    Is there a workaround to solve this situation? Remember, I only need fields from D1.
    Thanks!!

    The solution of your problem is "Implict Fact Column"
    Go to presentation layer and double click on your subject area. then you will see Implict fact column option. click on set. give corresponding fact column there( in your case give F1 fact column)
    references: http://oracle-bi.siebelunleashed.com/articles/implicit-fact-column/
    Thanks
    GSR
    Edited by: GSR on Mar 20, 2012 3:22 PM

  • Caching problem two

    Hi again,
    In the ESS you evaluate the belonging employee record in HR via sy-unane and IT0105.
    Problem now.
    My user is connected to record number one. The user of a collegue two record number two.
    We have created a iview with following RFC function.
    We both start the iview with our own users. Be both recive the same values. But we are conected to different employee records and this records have different abcenses.
    When we start the function in the backend everything is fine. Different output.
    The function in a few words:
    User (via sy-uname) checks in INTOTYPE 0105 subtype ESS which personnal number belongs to user.
    With this personal number the function evaluates all abcenses and stores it in a table of the function.
    This table should be shown in the Iview as output.
    FUNCTION zp_get_absences_from_pernr_new.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(BEGDA) LIKE  PRELP-BEGDA
    *"     VALUE(ENDDA) LIKE  PRELP-BEGDA
    *"  TABLES
    *"      ABSENCES STRUCTURE  ZPXX_ABSENCES OPTIONAL
      DATA: lwa_2001 LIKE p2001,
              lt_2001  LIKE TABLE OF lwa_2001.
      TABLES : t554t.
      DATA: p_usrid        LIKE  p0105-usrid,
            p_usrty        LIKE  p0105-usrty,
            usr_pernr    LIKE  p0105-pernr,
            pernr        TYPE prelp-pernr.
      p_usrid = sy-uname.
      p_usrty = 'ESS'.
      TABLES : pa0105.
      SELECT SINGLE * FROM pa0105
      WHERE usrty = p_usrty
      AND usrid EQ p_usrid
      AND begda LE sy-datum
      AND endda GE sy-datum.
      IF sy-subrc = 0.
        pernr = pa0105-pernr.
      ELSE.
        CLEAR pernr.
      ENDIF.
      CALL FUNCTION 'HR_READ_INFOTYPE'
             EXPORTING
             TCLAS           = 'A'
                  pernr           = pernr
                  infty           = '2001'
                  begda           = begda
                  endda           = endda
             TABLES
                  infty_tab       = lt_2001
           EXCEPTIONS
                infty_not_found = 1
                OTHERS          = 2
      IF sy-subrc = 0.
        LOOP AT lt_2001 INTO lwa_2001.
          absences-pernr = pernr.
          absences-begda = lwa_2001-begda.
          absences-endda = lwa_2001-endda.
          absences-awart = lwa_2001-awart.
          SELECT SINGLE * FROM t554t
          WHERE sprsl = sy-langu
          AND moabw = '01' " muß noch geändert werden.
          AND awart = lwa_2001-awart.
          absences-atext = t554t-atext.
          APPEND absences.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.

    Hi,
    The backend system knows which user to run the function on. However, the model you created in Visual Composer gets only two inout fields begda and endda. It does not get an input field about the user name and obiously it does not send it to the backend. As a result all users get the same resutls.
    Since in VC GA version you can not refer to the user, the only way you can achieve such a task is by adding a new virtual field to the form on which the user will type his id. This field should be mapped to a parametr of the user in the back end.
    Regards, Eyal

Maybe you are looking for

  • Problem with refcursor in 11g

    Hello, I have a problem with refcursor in a project migrated from 10 to 11g. I found this thread from a few years ago that talks about the same problem. It has no final answer - is it ok to comment the st.close(); in callStoredFunction in the AMImpl.

  • How do I print the file name of a PDF file?

    How do I print the file name of a PDF file?

  • Get FWM 00001 when SessionMgr do Logon()

    I was trying to open the report in CRS using OpenDocument when press the submit button. Unfortunately, an error was return [Transport error: Communication failure.(FWM 00001)] while the SessionMgr try to do Logon(). I have already checked the network

  • Delete schema based xml fails

    I am attempting to delete xml files through the following command: delete from (select 1 from resource_view where UNDER_PATH(res, '/home/user1/forms', 1) = 1 order by depth(1) desc); /home/user1/forms contains over 200,000 schema-based xml documents

  • Approval Decision Report

    Hi All, On version 9 PL 07, we have created an approval stage with two users (authorizers) but only 1 no. of approval required. As soon as a document is sent for approval, in the approval decision report, the users are getting two lines items (I thin