How to Send SAP User to Spool Job instead of SAPService SID

Dear Gurus,
I have to print data using access method C (or L) via print server that runs on win 2008.
SAP AS runs on win 2003.
It works fine, but user which appears in print job is SAPService<SID>. We need here sap user who actually initiated printing. It can be obtained easily by chaning access method to G. However, this solution is not acceptable.
Thank you in advance,
Nenad

Problem solved on OS level by introducing anonymous log on.
Cheers.

Similar Messages

  • How To send SAP SCRIPT AS an email.

    Hi,
    Any one knows how to send sap script output to users in the form of an email.
    Is there any other way to send it apart from sending the script output to spool and converting the spool to PDF and send that PDF to user?
    It would it helpful for me if u can let me know any peace of code as an example for the same.
    Message was edited by: Narasimha

    Hi,
    This may be too late but here is a really easy way
    Here is a snippet of code that will help you out.
    You can use the OPEN_FORM of the SAPscript to have a device type of MAIL instead of PRINTER
          Form  OPEN_FORM
          Open SAPscript form to send to user
    FORM OPEN_FORM .
    *--- Set recipient
      GW_COMM_VALUES-ADSMTP-SMTP_ADDR = '[email protected]'.
    *--- Set NAST details as these will not currently be set....
      CLEAR GW_SNAST.
      GW_SNAST-ANZAL = 1.
      GW_TITLE = 'Mail Header Title'.
      MOVE GW_TITLE TO GW_SNAST-TDCOVTITLE.
    *--- Set sender and recipient details
      CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
        EXPORTING
          PI_COMM_TYPE              = 'INT'
          PI_COMM_VALUES            = GW_COMM_VALUES
          PI_REPID                  = SY-REPID
          PI_SNAST                  = GW_SNAST
          PI_MAIL_SENDER            = SY-UNAME
        IMPORTING
          PE_ITCPO                  = GW_ITCPO
          PE_MAIL_RECIPIENT         = GW_RECIPIENT
          PE_MAIL_SENDER            = GW_SENDER
        EXCEPTIONS
          COMM_TYPE_NOT_SUPPORTED   = 1
          RECIPIENT_CREATION_FAILED = 2
          SENDER_CREATION_FAILED    = 3
          OTHERS                    = 4.
    *--- Open SAPscript in MAIL mode for e-mailing
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE                      = 'MAIL'
          DIALOG                      = 'X'
          FORM                        = SapScript Form Name
          LANGUAGE                    = SY-LANGU
          OPTIONS                     = GW_ITCPO
          MAIL_SENDER                 = GW_SENDER
          MAIL_RECIPIENT              = GW_RECIPIENT
        EXCEPTIONS
          CANCELED                    = 1
          DEVICE                      = 2
          FORM                        = 3
          OPTIONS                     = 4
          UNCLOSED                    = 5
          MAIL_OPTIONS                = 6
          ARCHIVE_ERROR               = 7
          INVALID_FAX_NUMBER          = 8
          MORE_PARAMS_NEEDED_IN_BATCH = 9
          SPOOL_ERROR                 = 10
          CODEPAGE                    = 11
          OTHERS                      = 12.
    When you have finished your SAPscript and call function CLOSE_FORM make sure you do a COMMI WORK after the call of this function.
    You should then see the mail created in SOST.
    Kind regards
    Colin

  • How to send Sap Mails

    How to send SAP Mails to the Customer or vendor when Sales Order or Purchase order rises and How to Use the T-code : NACE by uisng that transaction code how send mails

    Hi,
    Go through this
    In NACE t-code we have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
    If suppose data can be read from EDI then we should go for condition records.
    So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
    Go to the Transaction NACE.
    choose the related sub module.. like billing or shipping
    doubel click on Output Types
    Choose the Output Type for which whcih you wanted your script to trigger
    Then select the Output Type and double click on Processing Routine
    Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
    Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
    You should know the Output type for each document;
    like
    for sales order it is BAoo for Purchase order it is NEU for delivery it is LD00
    for Invoice it is RD00.
    and the application for each document:
    for PO it is EF
    for Sales doc's it is V1
    delivery it is V2
    billing Doc's it is V3.
    Select the Application from NACE and click on output types.
    select the right output type and click on the processing routines on the left hand side.
    it displays the Medium(print,Fax,Mail, edi etc), Output type, Program and the Script form or Smart form.
    Regards
    Ravi

  • How to send a user defined parameter to a web form?

    Hi,
    I4m looking for a solution how to send a user defined parameter to a web form when I start the form from a html-page.
    I think that it should work to add the parameter to the URL.
    Example: I added myparam=myvalue at the end oft the URL
    http://my.server.com:7777/f60cgi?form=myform.fmx&userid=scott/tiger@mydb&otherparams=useSDI=NO&lookAndFeel=generic&colorScheme=teal&myparam=myvalue
    How can I fetch the parameter myparam in forms?

    You have the user the otherParams parameter, which you can specify in the formsweb.cfg file, or override on the url. e.g. http://myhost/servlet/f690servlet?config=myApp&otherParams=myParam=myValue
    In the Forms Builder, in the Navigator window, there is a node called Parameters. Create one in there, and then you can refer to it like a block variable. e.g. if :myparam = 'myvalue' then...
    At runtime, Forms will match up any parameters on the command with parameters defined in your form, and populate them for you. You don't have to do anything.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How does workflow retrieve users under position/job when sending email

    Dear All:
    This question is after my thread before: 'How does workflow retrieve users under an org. unit when sending email", my further question would be how to get users under a position/job.
    I find the evaluation path 'WF_ORGUS' that is delivered by SAP, and I am wondering whether it will cover all my cases: to retrieve users under an org. type including org. unit, position and job.
    Thanks in advance!
    Haifeng Hu

    Hello,
    Okay, I misunderstood. You don't get to specify the evaluation path - if you fill in a Position then SAP fetches the users in that position. It works, so I haven't thought about it any further. Any reason you want to know exactly how it is done?
    regards
    Rick Bakker
    hanabi technology

  • HOW TO SEND SAP INBOX TRANSACTION  AS A LINK TO OUTLOOK MAIL IN WORKFLOW

    Hi ,
    I hav a reqirement following.
    Thing is I need to send SAP INBOX transation as  a link to outlook  mail...
    once clicking tat link user enter to SAP inbox for further option is task complete/edit....
    Please tel the step achive this....
    REPLAY ASAP
    Advance thanks

    Hi to all,
    Thanks the lot Guys for u r quick response....
    Now i am working on tat based on u r suggestions....
    Once again THANKS For u  r response.
    Warm Regards,
    Ragavendran.K

  • How to lock sap users in os level

    Dear consultants,
    how to lock the sap users in OS level.please tell me any one.

    Hi Pradeep,
    The table is usr02. The command is as below:
    update <schema>.usr02 set uflag=128;
    in case you need to mention any particular user to be locked, mention in the where clause.
    Before using this command, use the select statement to check the current status of the users.
    Regards,
    Meenu Hans

  • How to let SAP user use SSO to access Application in DMZ?

    Hi All,
    Our J2EE application is running on a system in DMZ which can not be connected with LDAP. So I am wondering if it's possible to let SAP user use SSO to access our application.
    After talking with my colleague I think the only way is to import SSO public key to our WebAS and create user in UME and then assign user to the corresponding public key, but anybody know where to download SSP verification file or is it allowed to download and import into another system at all?
    Regards,
    Bin

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How to send an ALV to Spool

    Dear all,
    Could you please help, my requirement is to send an ALV report as a PDF attachement to a list of email address. My plan is to send the ALV to spool and read it from there and email it. However I have a problem in as much as the ALV is not being sent to spool, furthermore I also get print dialog popup when running the report. Can you please help, i am using CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY and  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' I have browsed here and there are several questions on this topic but they do not address the issue of sending the file to the spool. The partial code is below
    DATA:i_t001 TYPE t001 OCCURS 0,
         pdf    LIKE tline OCCURS 0,
         g_spool   TYPE tsp01-rqident,
         g_program TYPE sy-repid VALUE sy-repid.
    TYPE-POOLS:slis.
    DATA: w_print TYPE slis_print_alv,
          w_print_ctrl TYPE alv_s_pctl.
    PARAMETERS: p_file TYPE string.
    INITIALIZATION.
      p_file = 'H:\TEST_gh.pdf'.
    START-OF-SELECTION.
      rp-def-time-period.
      help1 = behrs DIV 24.
      bdate = ldate - help1.
      help1 = behrs MOD 24.
      help2 = ltime(2) - help1.
      IF help2 LT 0.
        bdate = bdate - 1.
        btime = ltime.
        btime(2) = 24 + help2.
      ELSE.
        btime = ltime.
        btime(2) = help2.
      ENDIF.
      pn-begps = ldate - 1.
      pn-endps = ldate.
    GET pernr.
      loop at p0007 where begda le ldate and endda ge ldate.  "
      endloop.                                              
    * überprüft Arbeitszeitplanregel
    * CHECK schkz.
      CHECK p0007-schkz IN schkz.
      CHECK p0007-zterf IN zterf.        
      CALL FUNCTION 'HR_SEL_STAT_CHECK'
           EXPORTING
                get_pernr    =  pernr-pernr
                get_ldate    =  ldate
                get_bdate    =  bdate
                get_btime    =  btime
                get_psp_flag =  psp_flag
                get_ltime    =  ltime
    *    IMPORTING
    *         NO_PERMIT    =
           TABLES
                get_p0000    =  p0000
                get_p0001    =  p0001
                get_p0002    =  p0002
                get_p0050    =  p0050
                get_p0007    =  p0007
                data_tab     =  data_tab.
    *   End-of-Selection                                                   *
    END-OF-SELECTION.
      loop at data_tab into ls_data_tab.
        ls_data_tab-total_records = '1'.
        ls_data_tab-kostl = p0001-kostl.
        Append ls_data_tab to lt_data_tab.
      endloop.
      DESCRIBE TABLE data_tab LINES lines.
      CALL FUNCTION 'HR_GET_ERROR_LIST'
        TABLES
          error      = errors
          errortexts = errortexts
        EXCEPTIONS
          no_errors  = 1
          OTHERS     = 2.
      IF lines EQ 0 AND sy-subrc EQ 1.
        MESSAGE i050.
        STOP.
      ENDIF.
      LOOP AT errors.
        READ TABLE data_tab WITH KEY errors-pernr.
        IF sy-subrc EQ 0.
          DELETE data_tab INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
      g_repid = sy-repid.
    * fill field catalog for output
      PERFORM fill_fcat USING  fcat
                               g_repid.
    * Listheader
      PERFORM fill_header USING header_alv_wa
                                header_alv.
      FIELD-SYMBOLS <lwa_fcat> like line of fcat.
      LOOP AT fcat ASSIGNING <lwa_fcat>.
        IF <lwa_fcat>-fieldname = 'TOTAL_RECORDS'.
          <lwa_fcat>-do_sum    = 'X'.
        ENDIF.
      ENDLOOP.
    *Right, sort the table and produce sub totals
      wa_sort-spos      = 18.
      wa_sort-fieldname = 'KOSTL'.
      wa_sort-up        = 'X'.
      wa_sort-subtot    = 'X'.
      append wa_sort to it_sort.
    * Layout for REUSE_ALV_GRID_DISPLAY
      s_layout-colwidth_optimize = 'X'.
      s_layout-zebra             = 'X'.
      s_layout-no_author         = 'X'.
    w_print-print = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = g_repid
        "      i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command = 'USER_COMMAND'  
          i_callback_top_of_page  = 'TOP_OF_PAGE'
          is_layout               = s_layout           
          it_fieldcat             = fcat
          it_sort                 = it_sort
          i_save                  = 'A'                       
          i_structure_name        = MY_STRUCTURE'
          is_print                = w_print
        TABLES
          t_outtab                = lt_data_tab
        EXCEPTIONS
          program_error           = 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.
      ELSE.
    ***=====================================================================*
        g_spool = sy-spono.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid = g_spool
          TABLES
            pdf         = pdf.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              filename = p_file
              filetype = 'BIN'
            TABLES
              data_tab = pdf.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
              EXPORTING
                i_callback_program      = g_repid
              "      i_callback_pf_status_set = 'SET_PF_STATUS'
                i_callback_user_command = 'USER_COMMAND'  
                i_callback_top_of_page  = 'TOP_OF_PAGE'
                is_layout               = s_layout           
                it_fieldcat             = fcat
                it_sort                 = it_sort
                i_save                  = 'A'                 
                i_structure_name        = MY_STRUCTURE'
              TABLES
                t_outtab                = lt_data_tab
              EXCEPTIONS
                program_error           = 1.
                ENDIF.
          endif.
        endif.

    Hi Andy ,
    write this code before calling "CONVERT_ABAPSPOOLJOB_2_PDF"
    CALL FUNCTION 'SET_PRINT_PARAMETERS'
         EXPORTING
           destination = 'LOCL' " Printer
           layout      = 'X_65_512/2' "Format "X_65_255
           line_count  = '65' "Line Count
           line_size   = '1024'. "Line Size
    Regards ,
    Yogendra Bhaskar

  • How to send a list to spool?

    Dear Friend,
    I made a banking payment system program,right now i have to send directly a list of document to spool,how can I do it?
    I got one function module also,but i don't knoe the number of parameters should be pass...........
    so pleases suggest me best way to ccomlish my Requirment
    Thanks & Regards
    Ricky

    Hi Ricky,
    Check the below code.It creates spool on execution.
    Go through this piece of code and try to implement it for your requirement.
    REPORT  ZTEST.                              .
    tables: usr01.
    perform send_report_to_spool.
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary

  • How to connect SAP user to a webdynpro and how to pass parameters ?

    Hello,
    I have two technical questions :
    1) How to recognize user from Portal and to get his pernr from SAP Backend (SSO to configure with SAP R/3 ?, use a bapi to get the pernr with the name and firstname of the portal user ?)
    2) How to open a new window in a webdynpro application (one view and you click on a row of a table, i have to open a new window (frame in my browser))
    Thanks a lot for your answers
    Cheers
    Aurelien

    Hi
    For ur Second Question if u want a popup Window this is how u do it.
    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows(<<Window Name u have defined while creating component>>);
               IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
               wdContext.currentVnControllerDetailsElement().setVaWindowInst(window);
               window.setWindowPosition(WDWindowPos.CENTER);
               window.setWindowSize(700,400);
               window.open();
    Here vaWindowInst is of type IWDWondow . This u can have in Java NAtive type
    com.sap.tc.webdynpro.services.session.api.IWDWindow
    If it is External Window Then i shall give u the code for the same.
    get Back

  • How to send a report for particular job chain every hour regarding the job

    Hi Gerben/Anton
    We are running one jobchain for all billing jobs . Is any chance is there to send a report automatically to certain pupils for every one hour regarding the job status(excel format ) .
    Coudl you please help on this it should be good if i get any reply on this .
    Thanks
    Ramkumar

    Hi Ram,
    I need your help on getting mail alert with  log file.
    here is how i have provide the parameter valure for job definition: system_mail_sent.
    Step1 with one job1 and step2 with one job1
    In step2 , i have included the job definition to send mail. with below parameter.
    Relative Job: Step 1, Job 1
    Job File: step 1, job 1: step 1/log.txt
    Please let me  know if the above method is correct or not.
    NOTE: mail server and from address are configured.
    Thanks,
    Karthik

  • How to send sap generated invoice numbers using rffoedi1 program

    Hi all
    we are generating PEXR2002 IDocs using RFFOEDI1 program . The program is populating the invoice number field in IDoc with the value from reference number field in MIRO screen. Is there any way that we can populate the SAP generated invoice number also in the IDoc.

    Hi Steve,
    Have you tried the user-exits or BADi available.
    Regards,
    Atish

  • Problem while sending SAP SCRIPT to Spool

    Hi Gurus,
    I got the requirement that when I select Total in USD the script is not going to SPOOL.
    But when I use any other Currency the script is going to spool.
    Please help me for this.
    Thanks and Regards,
    Ashwin.

    Hi,
    I have checked  the driver program but i dint fine any thing which is related to currency.
    can u plz help me out.
    thanks and regards,
    Ashwin

  • How to send values from a "Report Column" instead of a "Page Item" ?

    Hi there,
    Here's my case: Two pages A and B.
    Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.
    I'm a bit lost cause I don't know how to transfer/send this value to the second page.
    Do you have any clue ?
    Thanks again for your time !
    BR
    Ulrich

    Ulrich,
    Maybe I have misunderstood your requirements, from those I assumed that Page 4 was already being populated with a Department ID. So my plan was to look-up the Manager ID via the known Department ID
    Here's my case: Two pages A and B.Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.>
    Have you verified that you have the :P4_DEPARTMENT_ID in session?
    Does your SQL run in SQL Commands when provided a Department ID?
    Have you tried altering when the Computation fires? I recommended to start with After Regions, try some other firing points.
    Jeff

Maybe you are looking for

  • Indiviual Vendor Aging Report

    Hi all, is there any T-Code will give me the aging report for my vendors individually? waiting for your replies, thanks in advance.

  • ISupplier - Setting up the Development Environment with JDeveloper 9.0.3

    Hi friends, Can you please tell me the steps involved in setting up the development environment for iSupplier Module with JDeveloper in my PC. Please give me the details about what are the files to be downloaded from Apps, folder structure for develo

  • ITunew 5.0 re-syncs everything every time

    Hi everyone. This is probably a stupid question but...I've done a search through the forums and haven't seen this listed anywhere. When using iTunes 4.9 this wasn't a problem. Here's the deal: Usually, I get updated podcasts when opening up iTunes, a

  • Unattended instalation of 10g Client with response file

    Hello, I want to create a response File for an unattended installation, because installing 10g on 150 clients by hand is just to much work... I tried to create a rsp.-file with the record option, no dice. I managed to install the client runtime, but

  • Is 802.11b/g faster then 802.11g

    The wireless network I have at my house has two Powerbook G4s (Both with Airport Extreme Cards) connected to it and I am wondering if Switching to 802.11g is faster then 802.11b/g. I dont have any computers connecting that need 802.11b. Thnx