Progam name through sap job name ?

Hi All,
I am functional consultant. In my client system sap auto generate a file at night & saved this file on different non-sap server.
Now we are facing error, data that we are sending from sap is not matching to recieving server(showing less qty in non-sap server).
I have only sap job name. Can anybody tell me how to see the program name for the same or where I can see the data in sap that is transfering to non-sap.
Point will be awarded on prompt reply.
Thanks inadvance
Regards
San
Edited by: Sanjay  Nair on Oct 10, 2008 1:34 PM

Use to code SM37 , Give the job name and give username as * then execute . On the generated list choose the checkbox then click step you will get a a table like below....
No. Program name/command Program ty. Spool list Parameters     User    Lang.
1  XXXXXXXXXXXXXXXXXX     ABAP                 &0000000000009 USername EN
Where XXXXXXXX is the program name.

Similar Messages

  • Help Required Regarding - SAP Job names using R3 data flows

    We are calling a set of SAP Jobs using R3 data flows in data services. When ever a job fails we first kill the active SAP jobs by logging into SAP and then restarting the Jobs.
    There are about 100 odd SAP jobs that we call using these Data services Jobs so we wanted to kill the jobs using a reusable code on the SAP side by passing the Job name just before every R3 flows just incase its still in active status.
    So wanted to know if there are any short cuts to retrive the set of associated SAP job names because it will be a tedious process to hardcode the SAP job names and pass them as parameters for all the 100 + SAP job names in the custom defined resuable code.
    Any help or advice on this please !!

    The program is not meeting the expectations
    and the problem is due to reflection.Do we know this for certain?
    ... my application gets the class name, field name
    etc. from an XML file so i don't know their method names
    beforehand .
    Now since every class instance corresponds to a row
    in the database and i have to call get and set
    methods of each class instance so the performance
    keeps on degrading as the number of columns and rows increase .
    Can somebody suggest some improvement regarding this
    and regarding creating multiple instances of the same object Class.forName() will be using a hash already, so there is probably not much room for improvement.
    Class.newInstance() probably does not take significantly more processing than a simple "new Fubar();".
    Umpteen reflective method invokations (one per column) for each row/instance - Are you saying these are the problem?
    You can test this easy enough.
    If you comment out the reflective method invocations and leave the rest of your code untouched,
    does your application processing speed up significantly?

  • Unable to log on through SAP GUi

    Hello Gurus,
    Issue: Unable to logon through SAP GUI after giving the username and
    Password. When the user name and password is entered the system gets to the process mode but hangs in the same stage.
    When i check the R3trans -d the following is the result:
    This is r3trans version 6.13 (release 640 - 12.12.05 - 14:24:42).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE --- dbs_o
    ra_tnsname = 'B3Q'"
    r3trans finished (0012).
    It means the r3trans is not able to connect the DB. Please suggest a
    OSS note for this issue or solution for this issue asap. This
    is very urgent.
    We are using Nw04,BW3.5, BI3.53, EP6.0 & Oracle 9i. The following are
    the support pack details:
    Operating system Windows NT
    Machine type 4x Intel 8
    Database system ORACLE
    Release 9.2.0.4.0
    Kernel release 640
    Compilation NT 5.0 2
    Patch Level 109
    ABAP Load 1521
    CUA load 16
    Mode opt
    DB client lib. OCI_920_SHARE
    DB releases ORACLE 9.2.0..,
    DBSL version 640.00
    DBSL Patch Level 109
    SAP_ABA 640 0016 SAPKA64016 Cross-
    Application Component
    SAP_BASIS 640 0016 SAPKB64016 SAP Basis
    Component
    PI_BASIS 2005_1_640 0007 SAPKIPYJ67 Basis Plug-In
    (PI_BASIS) 2005_1_640
    SAP_BW 350 0016 SAPKW35016 Business
    Information Warehouse
    BI_CONT 353 0009 SAPKIBIFP9 Business
    Intelligence Content
    AOFTOOLS 400_640 0000 - Add-On
    Assembly Kit (AOFTOOLS 400_640)
    Enterprise Portal 6.0:
    J2EE Engine 6.40 PatchLevel 104329.313
    Portal 6.0.17.0.0
    Knowledge
    Management
    Collaboration 6.0.17.0.0 (NW04 SPS17)

    Hello Veer .
    Please try to do the following  ...
    <b>ORA-01017: Invalid username/password; logon denied</b>
    Message ORA-01017 can occur both in step 1a) and in step 1b) or 2). Depending on this, the problem can be corrected as follows:
    1a) log entries:  Logon as OPS$ user to get <sapowner>'s password
                      Connecting as /@<sid> on connection 0 ...
    ERROR => OCI-call 'olog' failed: rc = 1017
    ERROR => CONNECTfailed with sql error '1017'
    If you intend to use the standard password for <sapowner> anyway, you can ignore the error message at this point, as the OPS$ mechanism is not needed at all and the connect is carried out using <sapowner>/sap successfully afterwards. Note, however, that BR*TOOLS require a working OPS$ mechanism when executing via DB13!
               Otherwise, make sure that an appropriate OPS$ user is set up. To do this, proceed as follows:
    Check whether the parameter
    os_authent_prefix = ops$
    is set correctly in init<sid>.ora. If you have to make a change, restart the database afterwards.
    On Windows, make sure that the following parameter is set in sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    Determine which operating system user <os_user> wants to create the connection. If this involves a connect initiated out of the R/3 System (for example, work process connect, DB13 actions), user <sid>adm is used under UNIX and user sapservice<sid> under NT. If you manually called the program that executes the connect, the user you are using is decisive here.
    Use SVRMGRL to check whether the user OPS$<os_user> (or OPS$<domain>\ <os_user> for NT with Oracle >= 8.1.5) has been created at database level:
    SELECT * FROM DBA_USERS WHERE USERNAME = 'OPS$<os_user>';
    (for <os_user>, always use upper case)
    If the system does not return an entry, create the user:
    CREATE USER "OPS$<os_user>" DEFAULT TABLESPACE <user_tsp>
      TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
    Note that the name of the OPS$ user must be specified completely in uppercase letters (also the host and domain names in case of NT and W2K), since a logon as OPS$ user will not work if it is not:
      wrong:   CREATE USER "OPS$c11adm" DEFAULT TABLESPACE ...
              CREATE USER "OPS$sapdom\C11ADM" DEFAULT TABLESPACE ...
      correct: CREATE USER "OPS$C11ADM" DEFAULT TABLESPACE ...
               CREATE USER "OPS$SAPDOM\C11ADM" DEFAULT TABLESPACE ...
    Tablespace <user_tsp> is used when newly creating objects, when no explicit tablespace name is specified. In connection with R/3, this is almost never the case. Therefore, you can specify any tablespace. Proposal:
             R/3 <= 4.6D:  <user_tsp> = PSAPUSER1D
            R/3 >= 6.10:  <user_tsp> = PSAP<sid>USR
    Check whether the OPS$ user has sufficient authorizations. The following statement must at least return CONNECT and RESOURCE:
    SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS
      WHERE GRANTEE = 'OPS$<os_user>';
    If CONNECT and/or RESOURCE is missing, you can grant theseauthorizations as follows:
    GRANT CONNECT, RESOURCE TO "OPS$<os_user>";
    If all the settings described above have been made correctly on NT/ Windows 2000, but the error ORA-01017 is still displayed during the OPS$ Connect, the cause may be a start user set incorrectly for the SAP Service. Change to the services overview of the operating system and check the user who starts the service SAP<sid>_<instance_number>. If the user is not sapservice<sid>, enter sapservice<sid>. Other users (such as the local administrator) do not have an OPS$ user in the database, which leads to error ORA-01017. Check also whether the start user sapservice<sid> is a local user or a domain user. Domain users can be identified by the preceding domain name. Depending on this, the following OPS$ user should exist on database level:
    Domain user:    <domain>\sapservice<sid>
    OPS$ user:       OPS$<domain>\sapservice<sid>
    Local user:      sapservice<sid>
    OPS$ user:       OPS$<local_host>\sapservice<sid>
    1b) log entries:  Logon as OPS$ user to get <sapowner>'s password
                      Connecting as /@<sid> on connection 0 ...
                      Now I'm connected to ORACLE
                      Got <sapowner>'s password from table SAPUSER
                      Disconnecting from connection 0 ...
                      Now I'm disconnected from ORACLE
                      Try to connect with the password I got from OPS$-user
                      Connecting as <sapowner>/<pwd>@<sid> on connection 0
    ERROR => OCI-call 'olog' failed: rc = 1017
    ERROR => CONNECTfailed with sql error '1017'
               An ORA-01017 message at this point indicates an incorrect <sapowner> password in the SAPUSER table. In this situation, proceed as follows.
    Set the password consistently in SAPUSER and in the Oracle DDIC using the following BRCONNECT call (BRCONNECT >= 6.10):
    brconnect -u system/<password> -f chpass -o <sapowner> -p <password>
    Otherwise, change the password in the SAPUSER table:
    DELETE FROM "OPS$<sid>ADM".SAPUSER;
    INSERT INTO "OPS$<sid>ADM".SAPUSER VALUES ('<sapowner>', '<password>');
    Important: The SAPUSER table should only exist once in every system: for OPS$<sid>ADM. For this reason, only execute the above-mentioned statements for OPS$<sid>ADM - irrespective of the operating system user actually being used. All other OPS$ users can access the SAPUSER table using a synonym.
    If the connect still terminates in the same way, check once more the section "General checks".
    2) log entries:  Try to connect with default password
                    Connecting as <sapowner>/<pwd>@<sid> on connection 0
    ERROR => OCI-call 'olog' failed: rc = 1017
    ERROR => CONNECT failed with sql error '1017'
    If you want to use the standard password sap and do not need the OPS$ mechanism, reset the <sapowner> password to sap:
    ALTER USER <sapowner> IDENTIFIED BY sap;
    If you do not want to use the standard password, the error cannot be avoided at this point. Set up the OPS$ mechanism as described above instead.
    Regards
    Rahul
    Please Award points if help is useful  *****

  • ECC TO SRM-MDM CATALOG THROUGH SAP PI

    We have a scenario where we are sending data from ECC to SRM-MDM Catalog through SAP PI and data is coming from ECC through proxy and sending to SRM u2013MDM catlog through file adapter. In ESR part we have used SAP defined standard service interfaces (CatalogueUpdateNotification as sender interface and MDMInfoRecordDataTransmission as a receiver interface). The mapping used is also standard one.
    Now we have got requirement to send the data for vendor mat no, manufacturer field of info records from ECC to SRM-MDM catlog.  But we are unable to find out these two fields in standard interfaces/messages. Can anybody guide us how to add these fields in the current data types or is there any other standard interfaces we can use.
    Thanks in advance.

    Hi Shiv,
    Many thanks for your reply.
    Since we're not using XI / PI scenario and this is an upgrade from SRM 5.5 to SRM 7, Iu2019m using the same approach that was already used in SRM 5.5 with CCM 2.0.
    The idea is that the catalogue and all the records maintained need to be associated to a contract. So, I add the contract ID and the correspondent contract item in the import file, in addition to the supplier name, product ID, price information and so on. I mapped the contract ID with the field contract price.
    In relation to the price information fields, as I want it to be visible for any user that accesses the product catalogue, I tried different approaches:
    1.Using OCI Price information u2013 amount, currency, price base quantity and price base quantity UoM;
    2.Using OCI Price contract u2013 amount, currency, price base quantity and price base quantity UoM;
    The first approach didnu2019t work very well, as I was not able to see price information when accessing the catalogue. I could only see it once I transfer the items to the SC. In addition, this approach had one problem. The products were displayed but it was not possible to select the items one by one. To do that I needed to select all the items of the catalogue and after that the detail of the contract ID was displayed in every item, allowing me to choose the items that I want to select to my SC.
    The second approach was better as the information was visible when accessing the SC and I was able to select all the items, one by one, as it should be. The main problem of this approach was that Iu2019m getting errors in the SC when the materials have stock u2013 u201CInterface data contains errorsu201D. Or alternatively, if the items didnu2019t have stock, the SC was possible, but when I tried to create a PO from that SC, It simply does not work.
    So, can someone help me? Any ideas?
    Thanks in advance.
    Best regards,
    Andreia

  • Error Crystal report When viewed through SAP B1

    Dear Experts
    SAP B1 8.8 PL 16,SQL 2008
    I am facing error (Unable to retrive data from database)(Vendor code-156) while accessing Crystal report from client machine throgh SAP B1.I have imported Crystal report through manage layout.The crystal reported is in shared in SAP server B1 SHR folder.I am able to access data from crystal report when viewed otherwise.When accessed crsytal report through SAP b1 on SAP Server crystal report is working fine.
    Thanks & Regrds
    Saurabh Lamba

    Hi Saurabh Lamba,
    Go To Administration / System Initialisation / Authorisation / General Authorisation & Set Authorisation for user.
    If you have to Set Authorisation for user allready then follow this steps.
    1.Restore Database as Test Company.
    2.Export Report From Live Company.
    3.Import this Report in Test Company as different name.
    4.Export Report from Test Company have you Imported as deifferent name.
    5.Again Import this Report in Live company as different name
    I don't know what's the logic behind it.
    Thanks,
    Srujal Patel

  • Sticker printing through sap script

    I m priting specific stickers through sap script.
    An A4 size page contains 8 stickers, 4 in one line.
    No of stickers to be printed are generated dinamically.
    I have put 8 windows on the page. Now i want that if lets say the no of stickers to be printed are 5, then the program should not print the rest 3 stickers.
    So give some solution of hiding or unhiding the rest of the windows.

    call them in the loop..
    give the window name in layout as window1, window2,...window8.
    tkhen.. suppose u wnat 5 windows..
    do 5 times.
    v_num = sy-index.
    condence v_num.
    concatenate 'window' v_num to  v_window.
    call the window.
    enddo.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • How to Access oracle DB table through SAP..problem in code

    Hello Guys
             I have to Access oracle table through SAP and need to create a report.
    From Some source I got the following code .  But it's not working , I am not able to update the table as well not able to access the data from table.
    Can some one provide me the necessary help.
    REPORT  ZORACLE.
    INCLUDE ole2incl.
    DATA: con TYPE ole2_object,
    rec TYPE ole2_object.
    DATA SQL(1023).
    DATA: BEGIN OF SPL OCCURS 0,
    VAL(1023),
    END OF SPL.
    DATA: BEGIN OF I1 OCCURS 0,
    F1(10) ,
    F2 TYPE I,
    END OF I1.
    IF con-header IS INITIAL OR con-handle = -1.
    CREATE OBJECT con 'ADODB.Connection'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    CREATE OBJECT REC 'ADODB.Recordset'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    ENDIF.
    MDB connetion infomations ....
    break-point.
    CONCATENATE 'Provider=' '''OraOLEDB.Oracle''' ';'
    INTO SQL.
    CONCATENATE SQL 'Password=' '''prodx''' ';'
    INTO SQL.
    CONCATENATE SQL 'User ID=' '''prod''' ';'
    INTO SQL.
    CONCATENATE SQL 'Data Source=' '''sterlite''' ';'
    INTO SQL.
    CONCATENATE SQL 'Mode=' '''Share Deny None'''
    INTO SQL.
    MDB connection ...
    CALL METHOD OF CON 'Open'
    EXPORTING #1 = SQL.
    Query (insert) statement ...
    SQL = 'insert into ofusers values('.
    CONCATENATE SQL '''Atul''' ',' '''121''' ')' INTO SQL.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Query (select) statement ...
    SQL = 'select * from ofusers'.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Selecting MDB record into SAP internal table ...
    DO.
        CALL METHOD OF REC 'getstring' = SQL
        EXPORTING #1 = '2' "Do not modify!
        #2 = 1 "Do not modify!
        #3 = '|' "Do not modify!
        #4 = '|'. "Do not modify!
        IF sy-SUBRC EQ 0.
            REFRESH SPL. CLEAR SPL.
            SPLIT SQL AT '|' INTO TABLE SPL.
            LOOP AT SPL.
              CASE SY-TABIX.
                WHEN 1.
                  I1-F1 = SPL-VAL.
                WHEN OTHERS.
                  I1-F2 = SPL-VAL.
              ENDCASE.
            ENDLOOP.
              APPEND I1. CLEAR I1.
            ELSE.
              EXIT.
        ENDIF.
    ENDDO.
    Result writing ...
    LOOP AT I1.
      WRITE: AT /1(10) I1-F1,
      AT (10) I1-F2.
    ENDLOOP.
    connetion close & destroy
    FREE OBJECT con.
    FREE OBJECT rec.
    Thanks in Advance
    Swati Namdeo

    Hi swati,
    1. for this u will also require help of basis team.
    2. these are the steps.
    a) make an entry in DBCON
    b) make connection string
    (on the physical application server,
    so that it can connect to secondary database)
    (this will be done by basis team,
    in which, they will specify the
    IP address of the secondary database server,
    the DATABASE ID, and the port number)
    c) then using open sql / native sql,
    we can use the secondary database connection,
    just like normal.
    d) if we use open sql,
    then there must be Y/Z table on
    sap as well as secondary database,
    and the field names , their type all should be identical.
    regards,
    amit m.

  • Submit a SAP job and it is erroring out as "instance/client not found"

    I am trying to submit a SAP job and it is erroring out as "instance/client not found"
    as soon as I  enter the instance/client value and click on next  I am getting this error
    please help

    Hi,
    Then maybe there is a problem with another parameter, and the error is obscured by this error message.
    You did specify valid values for all other parameters ?
    Maybe you can try the following:
    - create a simple job in SAP, you do not have to execute it only save it
    - import this job using RSI_IMPORT_CCMS_JOBS and specify the exact job name
    - run the imported job (it will have the same name as in SAP) and see if this works
    - if this works, try your job again directly from CPS and compare your parameters with those on the imported job (especially which ones are filled or not filled, that sometimes is more important than the exact value chosen)
    Regards,
    Anton.

  • Trigger SAP job

    Hi Experts,
    I have a requirement to trigger SAP job whenever there is a new file in a network folder which is outside SAP. File name is like worklistYYYYMMDDHHMMSS.CSV. Timing of this file creation are unpredictable.
    Also, this new file should be passed to SAP job for running.
    Do you have any idea about possible solution? Can we user Event based trigger (SAPEVT command)?
    Please let me know the details.
    Many thanks,
    Apps

    Hi
    You can do it in this way.
    Creat a program in ABAP which picks up the file from Application Server
    Put all the reocrds in an internal table and post it in SAP.
    This program will be batch program and it will run once in every hr and
    it will store the last captured file name in a Z table so whenever it picks up new file it will
    compare the name old file and if they are not same delete the old file name and insert the new file name in the Z table.
    Your batch program can pick up the file name from this Z table.
    Hope it is useful.
    Regards
    Neha

  • How to Add Steps to an SAP Job

    Hi Gurus,
    I want to add two new Abap steps in an SAP Job
    Ex:  ZSAPPEW1 : SAP Job
    I had 7 Abap steps in this job
    I want to edit this job and add two more steps after 5th Abap Program /Step
    May I know how to do this without creating a new job ?
    Regards
    Sandeep

    Go to SM37 >> Select Job name >> Change mode >> STEP >> Create step (Add other steps)
    OR
    Create a new job with all steps and remove the old one.
    Regards,
    Nick Loy

  • Reg: Error in Mail sending through background job in SCOT

    Hello experts,
    I am trying to schedule a background job through SCOT so as to send the mails present in SOST.
    The job is running but it is giving error as "Invalid status  for recipient" in SOST.
    But when I am sending it directly from SOST it is delivered without any errors. The email address is maintained correctly and SMTP settings are also correct as while sending it directly from SOST it reaches the required recipient without any error.
    This error is observed only through background job. I am using program RSCONN01 with variant SAP&CONNECTINT in background job.
    Kindly suggest why I am getting the error "Invalid status  for recipient" in background job.
    Thanks & Regards
    Meraz
    +91 8894522860

    I am getting the exact same issue.
    were you able to fix this in the last 3 weeks?
    thanks.

  • How can I send purchase order through SAP mail ?

    How can I send purchase order through SAP mail ? Can any one explain whts the NACE settings?

    just  do it as  <b>Anji reddy</b> said to you   ...or else  ...  in the purchase  order trascation  ...print it  ... so that  it will generate the spool request  for that  purchase  order  ....
    so the   the belwo program is for sending <b>the Spool   Request  data   as  Email  to  any Email id  ...</b>
    The code below demonstrates how to retrieve a spool request and email it as a PDF document. Please note for the below program to process a spool request the program must be executed in background otherwise no spool request will be created. Once you have had a look at this there is an modified version of the program which works in both background and foreground. Also see transaction SCOT for SAPConnect administration.
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    *** Alternative way could be to submit another program and store spool
    *** id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
    *        to sap-spool
    *        spool parameters   %_print
    *        archive parameters %_print
    *        without spool dynpro
    *        and return.
    * Get spool id from program called above
    *  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    *  perform send_email using p_email2.
    ENDFORM.
    *       FORM send_email                                               *
    *  -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    * Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    *  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    * If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Girish

  • ECC = SNC ReplenishmentOrderNotification custom message through SAP PI

    Helllo,
    I have one issue during proxy call in SNC. We are implementing SNC system with our ECC 6.0 system for PO processing, PO Confirmation Processing. The interfaces used is the standard SNC PI package from SAP through SAP PI; however, we have extended PO IDOCs in ECC for some Z-fields and created a new message type in SAP PI and mapped them properly. The problem, when it reached SNC, I checked the XML message and it was as expected with the new Z-fields but when the inbound proxy is called, I got the following error:
    Error during proxy processing An exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither handled locally, nor declared in a RAISING clause The function call of /SCA/BIF_REPLORD_BO failed; a field may have been assigned to the parameter IS_REPLORD_NOTIF whose type is not compatible with this parameter
    it seems that the newly generated service interface is not reconginzing the new ReplenishmentOrderNotification message structure with the Z-fields
    How can we resolve this issue and make the inbound proxy reconginze the new message stucture?
    By the way, I found this Badi: BAdI for ReplenishmentOrderNotification_In? and I have no clue how it works if we need to implement it?
    Thank you,

    Hi Alan,
    Please check below threads.
    1. INTERFACE_REGISTRATION_ERROR (inbound ABAP proxy)
    2. ABAP ->INTERFACE_REGISTRATION_ERROR for outboud sync ABAP proxy
    3. INTERFACE_REGISTRATION_ERROR using File-to-File method
    Regards,
    Deepak

  • Alert set through timer job is not working in sharepoint 2010 as expected

    Hi,
    I create the standard sharepoint alerts through timer job.
    in my timer job, i loop through a list and based on the user value in the alert to field i create alert for the users and the condition for the alert are only when new items are created and something changes in the below view.
    all the properties are set fine. Email triggered on new items additions and on specific daily or weekly summary.
    The view filteration is not working at all:(
    But after the timer job ran and set the alert, if i open the alert settings on UI and without changing anything if i click ok , then the view filteration is happening and alerts are working fine.
    What is wrong here? is it a bug or anything am missing?
    Aruna
    try
    SPList Configlist = web.Lists.TryGetList("Configuration");
    foreach (SPListItem oItem in Configlist.Items)
    ProfilePicker = oItem["ProfilePicker"].ToString();
    ProfileViewer = oItem["ProfileViewer"].ToString();
    string MIS = oItem["MIS"].ToString();
    SPList list = web.Lists.TryGetList(ProfileViewer);
    SPList ProfileList = web.Lists[ProfilePicker];
    foreach (SPListItem oItem in ProfileList.Items)
    frequency = oItem["Frequenzy"].ToString();
    created = (DateTime)oItem["Created"];
    string createdDate = created.ToString();
    createdDate = DateTime.Parse(createdDate).ToShortDateString();
    DateTime today = DateTime.Today.Date;
    string dateonly = today.ToString(); ;
    dateonly = DateTime.Parse(dateonly).ToShortDateString();
    SPFieldUserValue fieldValue = null;
    SPFieldUser UserColumn = (SPFieldUser)oItem.Fields.GetField("Alert_x0020_owner");
    fieldValue = UserColumn.GetFieldValue(oItem["Alert_x0020_owner"].ToString()) as SPFieldUserValue;
    if (fieldValue != null)
    alertowner = fieldValue.User;
    alert = alertowner.ToString();
    //if (createdDate == dateonly)
    SPUser user = web.EnsureUser(alert);
    SPAlert newAlert = user.Alerts.Add();
    newAlert.AlertType = SPAlertType.List;
    newAlert.List = list;
    newAlert.DeliveryChannels = SPAlertDeliveryChannels.Email;
    newAlert.EventType = SPEventType.Add;
    if (frequency == "Daily")
    createDailyAlert(newAlert, list, user);
    else
    createWeeklyAlert(newAlert, list, user);
    catch (Exception ex)
    // Danfoss.Sharepoint.Logger.DanfossLogger.LogToOperations(ex, "Exception occurred in setting the profile alert", 0, EventSeverity.Error, DanfossExceptionCategory.General);
    private static void createDailyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My Daily Profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Daily;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Daily Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Daily Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Daily")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    private static void createWeeklyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My weekly profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Weekly;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Weekly Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Weekly Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Weekly")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    This is my code. alerts are not sending based on the view:(

    Hi sathyaav,
    I followed the example and made a test in my environment, it works like a charm.
    I suggest you check if you have inputed the valid site URL when you create the project solution.
    If you deployed succeed in the Central Administrator Site using Visual Studio, then the job named "Simple Job Definition" will appear in the job definition list.
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Invoice not generated through Batch Job

    Hello
    I am facing a Problem in Batch Job. When the delivery is created through VL01n transaction manually, the Invoice for this delivery is created automatically. However for one of the delivery the Invoice was not created automatically through Batch Job.
    Can some one help me how to go further on this problem? I have checked the Batch Job and found that it is schedule daily, However the Delviery was created after this schedule time. So ideally this delivery should have been considered for automatic generation of Invoice in the next schedule run of the Batch Job. However this has not happened.
    Any views on this
    Regards
    Screams

    Hello,
    Please check the billing date and the billing date which is in the variant. in the variant there could be that the billing date might have been specified from and to, in any case billing date for the document is not past the variant billing date it will pick up.

Maybe you are looking for

  • Email client missing

    Hey in my nokia there was an inbuilt email client..... Now it has dissapeared i think because i updated it....now i want it back....pls any one help me...

  • Packages

    Suppose I have the following classes in two directory structures as follows: C:\MyDocuments\edu\stockton\spring\class1.java C:\MyDocuments\edu\stockton\spring\class2.java C:\Java\edu\stockton\spring\class3.java C:\Java\edu\stockton\spring\class4.java

  • Short dump when '1 BOX PACK' clicked on VL02N, in ECC 6 system

    Hi I am getting a short dump "'DYNPRO_MSG_IN_HELP' "when i click '1 box pack' button in VL02N transaction during our upgrade system from 4.6C to ECC 6.0. When i go through the old SAP note - 401823, it says to add entries in VFBS transaction for all

  • Imovie 11 - use photos in trailer?

    Does anyone know if photos can be used instead of movie clips in the trailer drop zones? I'm trying everything - maybe not possible? Thanks for any input!

  • Unable to move between libraries and events

    For the last month everything on FCPX 10.1 has worked without a hitch.  As of today, i am unable to switch between libraries or even events within those libraries.  For example, i'm editing a sweet 16 event.  one event is "prep"  the other event is "