Write SM37 log using custom program as copy of RSPROCESS type REQUDEL

Hi,
I have created a custom version of RSPROCESS program for deleting overlapping requests from a cube.
The program works well but during the execution it doesn't write the log in transaction SM37, but only in the SLG1.
I'd like to have the SM37 log.
In detail che function modules of RSPROCESS included in my custom program are:
RSSM_START_DELETE_STORNO
RSSM_PROCESS_REQUDEL
APPL_LOG_WRITE_HEADER
BAL_DB_LOGNUMBER_GET
APPL_LOG_WRITE_MESSAGES
APPL_LOG_WRITE_DB
Any idea?

No, I executed the program in a process chain step.
To be honest, the first part of the program is a custom of RSPROCESS variant DTP_LOAD.
This section works well and i can see the log in the SM37.
After loading is complete, the same programm executes the RSOPROCESS variant REQUDEL, but for this activity i don't see the log. If you execute the standard step of the chain for deleting overlapping request you can see the job log in the SM37, i 'd like to obtain the same result.

Similar Messages

  • Updating logs of output message of a delivery using custom program

    Hi Experts,
    I have a requirement where in i need to create processing logs for a output message type of a delivery using custom program. So basically for a delivey a output type will be triggered , furhter i will develop a custom program which i will run from se38 and update logs. I even need to update teh status of the output message type.
    Any inputs on this would be very useful.
    Thanks & Regards
    Dipak,

    many possible ways...
    1. create a report which queries table NAST for required output type and run the report in background for every 2 mins or 5 mins.
    2. you can write it in the driver program for the output message.

  • How to See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello Jibin,
    Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
    Here is the guide:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
    If they use the Logging Framework you would be able to access the logs through NWA.
    Regards,
    Ventsi Tsachev
    Technology Development Support (J2EE Engine)
    SAP Labs, Palo Alto, Ca (USA)

  • See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello,
    Via NWA I am not sure it is possible without logviewer, but via Portal you can if you are able to create an application with help of NWDS which will read log from OS level (need to provide path for default trace in your application) show on frontend.
    Then deploy this on portal.
    Regards,
    Abhay

  • Re: Payment order Reversal using custom program

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

  • Printing Purchase Order from ME9F using custom program and smartform

    I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE.
    However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the checkbox). When I try to put back the standard program in NACE, it does not show an 'X' but a check which indicates that the printing was successful.
    Do you know why this happens? What did I miss?
    Here's my call to my smartform from my custom driver program:
        " Change Smartform ZP_MMSF_P01_PURCHASE_ORDER
        " to internal Function module name
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
            EXPORTING
                FORMNAME   = 'ZP_MMSF_P01_PURCHASE_ORDER'
            IMPORTING
                FM_NAME    = fmname
        wa_cparam-no_dialog = 'X'.
        wa_output-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
        CALL FUNCTION fmname
            EXPORTING
                control_parameters         = wa_cparam
                output_options             = wa_output
                i_data                     = i_data
                wa_lookup                  = wa_data_lookup
                goods_amt                  = goods_amt
                discount_amt               = discount_amt
                vat                        = vat
                total_amt                  = total_amt
                total_amt_inwords          = total_amt_inwords

    Vijaya,
    I have this problem though,
    Whenever I try to provide values for CONTROL_PARAMETERS and OUTPUT_OPTIONS to the sapscript call in your code, the PO printing (even the preview) does not proceed. I do this because I wanted to suppress the printer dialog.
    here is a fragment of the code:
    " code I added
    LS_COMPOSER_PARAM-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
    LS_COMPOSER_PARAM-bcs_langu = sy-langu.
    LS_CONTROL_PARAM-preview = 'X'.
    LS_CONTROL_PARAM-no_open = 'X'.
    LS_CONTROL_PARAM-no_close = 'X'.
    LS_CONTROL_PARAM-device = 'PRINTER'.
    LS_CONTROL_PARAM-no_dialog = 'X'.
    DO NAST_ANZAL TIMES.
    *--In case of repetition only one time archiving
    * if sy-index > 1 and nast-tdarmod = 3.
    * nast_tdarmod = nast-tdarmod.
    * nast-tdarmod = 1.
    * ls_composer_param-tdarmod = 1.
    * endif.
    IF SY-INDEX NE 1 AND REPEAT IS INITIAL.
    REPEAT = 'X'.
    ENDIF.
    CALL FUNCTION LF_FM_NAME
    EXPORTING
    ARCHIVE_INDEX = TOA_DARA
    ARCHIVE_PARAMETERS = ARC_PARAMS
    CONTROL_PARAMETERS = LS_CONTROL_PARAM
    MAIL_RECIPIENT = LS_RECIPIENT
    MAIL_SENDER = LS_SENDER
    OUTPUT_OPTIONS = LS_COMPOSER_PARAM
    USER_SETTINGS = SPACE
    IS_NAST = NAST
    IS_REPEAT = REPEAT
    I tried to trace it to the function module generated by smartform. The error propagates this way: From the function module, there is a call to function SSFCOMP_PROCESS_DOCUMENT. Then inside that function, there is a perform operation to tr_ssfcomp_process_doc
    perform tr_ssfcomp_process_doc using startpage docstruc
                                           header.
    Inside that form, it calls the macro tr_active which checks the value of ssfcstat-trlevel (tracelevel) against c_trlevel_document. In the macro, if ssfcstat-trlevel is less than c_trlevel_document, the smartform will fail. c_trlevel_document is 15 and ssfcstat-trlevel is 0, and so the smartform fails.
    (you can see the macro tr_active in include LSTXBCMAC and the form tr_ssfcomp_process_doc is in the include LSTXBCFTR)
    When I do not put values in CONTROL_PARAMETERS and OUTPUT_OPTIONS, everything is ok.
    Do you know why this happens?
    Thanks in advance!
    Edit: I have found out about transaction SFTRACE, but this is disabled.
    Kyle

  • Trigger IDOC_OUTPUT_ORDRS using custom program.

    Hello.
    I have a requirement to send an order response (ORDERS05) IDoc by calling FM IDOC_OUTPUT_ORDRS using a custom program.  Wanted to know if anyone had suggestions on the best approach.  We are using much of the native mapping and adding a few segments (which I would handle updating in the customer exits).
    My biggest question is how to setup the call to IDOC_OUTPUT_ORDRS.  I think I need to simulate the NAST table entry.  Is that the recommended approach?  Any tips or hints would be appreciated.
    Thanks,
    Cal
    Edited by: Cal on Feb 3, 2009 7:07 PM

    Actually condition technique based on which output determination works - is designed for exactly what you are asking - triggering the output type under certain conditions.
    You can create ouput condition records with key fields that represent your business conditions: for example certain sales org, distrib channel, certain sales order type can only trigger the output. You can make it as finer as you want (like even including sold-to as a criteria), like you can include any field that appears in the sales document as a criteria to trigger the idoc.
    The tables that store condition records - condition tables - are custom created with your business field combination that you want to base the triggering upon.
    Goto the IMG path:
    IMG -> SD -> Basic functions -> Output control -> Output determination -> Maintain output determination for sales documents.
    1. A o/p determination procedure is assigned to sales document type
    2. A o/p determination procedure comprise a list of output types, which are checked sequentially by the system
    3. Custom condition tables with new business criteria can be assigned to new or existing access sequence
    4. Access sequence is attached to output type
    How the system triggers a particular output type during application document processing, say sales order processing:
    1. From the sales document type, the o/p determination procedure is determined
    2. The system then checks the output types inside the procedure one by one
    3. Say at output type 1, the system checks to see what access sequence it has
    4. The access sequence comprises of 1 or more condition tables.
    5. The system then checks each condition table, by comparing the key fields of the condition table with the correpsonding sales document fields - like comparing sales org, documen type in the condition record with what the sales document has. If every thing matches, the output type is triggered.
    I have just simplified the whole o/p determination. There are several other features which are controlle at o/p determination, procedure, output type and access sequence levels. Spend some time one these, it is a neat, flexible and future proof concept. You will never regret! )

  • How to write a log using abap mapping

    Hi all.
    in PI 7.1 environment I need to use abap mapping and I wish to write some XML data into a table that I created for logging the data.
    I know that using the abap mapping I can parse an XML file. My question is how to write this table defining a specific method, if it is necessary.
    Any help or suggestion is well appreciated.
    Many thanks in advance for your kind cooperation.
    Regards,
      Giovanni

    hi,
    >> My question is how to write this table defining a specific method, if it is necessary.
    just like to normal table (insert statement)
    parse XML and get the data you need and just insert into the DB table
    there are many tutorials showing how to parse xml file inside abap mapping
    so just do a little search on sdn
    Regards,
    Michal Krawczyk

  • Write processing log for custom output type

    Hi,
      I have defined a new output type at delivery header level . This is processed using a special function and on processing moves  stock from unrestricted to a order special stock.
    I need to update the "processing log" of the output with the material document number. Can any one please let me know how I can write to this "processing log" of the output?
    Thanks in advance.
    Regards.
    Hari.

    Use function NAST_PROTOCOL_UPDATE:
    * No orders found
        wa_msgv_1 = nast-objky+0(10).
        CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
          EXPORTING
            msg_arbgb = c_msgtype
            msg_nr    = 30
            msg_ty    = 'S'
            msg_v1    = 'No orders found for delivery'
            msg_v2    = wa_msgv_1
          EXCEPTIONS
            OTHERS    = 1.

  • How to - write oracle logs to syslog

    Is there a method for writing some/all of the logs produced by oracle in syslog format? In the
    SANS oracle security class it was suggested to write oracle logs using syslog on unix systems.
    I am running 10g on RedHat.
    Has anyone done this before? Any pointers to reference material? My google search for
    variations of - syslog oracle unix logs was not helpful.
    thanks
    THeresa

    Is there a method for writing some/all of the logs produced by oracle in syslog format?What type of logs do you mean?
    Maybe following link will help you (Documentation - New Features):
    http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/whatsnew.htm#sthref34
    This is example if you want put all messages from alert log to syslog.
    You could use "logger" command for this purpose.
    For example create startup script (in /etc/init.d/ directory) which will execute (as root) following command:
    tail -f /path/to/oracle/bdump/alert_<SID>.log | logger &Now all actions will be logged in alert log and also in system logs.
    This example has at least one disadvantage:
    If you remove alert log tail will loose the pointer for file - no new messages in system logs.
    For more info execute "man logger" from shell.

  • Program to copy all custom developments ( Z*) into local PC

    Hi SDN'ers ;
    Does any of you has the Program to copy all custom developments ( Z*) into local PC  ? Would appreciate help on the same.
    Best Regards,
    Ritesh Shrivastava

    Hi.....
    Just Execute this program....
    It will copy all your Z programs into your PC......
    REPORT  ZDOWNLOAD.
    DATA: W_PROGNAME(40) TYPE C.
    DATA ITAB TYPE TABLE OF STRING.
    DATA: W_PATH TYPE STRING.
    DATA W_STRING TYPE STRING.
    DATA T_PROGNAME LIKE STANDARD TABLE OF W_PROGNAME.
    SELECT PROGNAME
      FROM REPOSRC
      INTO TABLE T_PROGNAME
    WHERE PROGNAME LIKE 'Z%' .
    WRITE W_PROGNAME.
    LOOP AT T_PROGNAME INTO W_PROGNAME.
      READ REPORT W_PROGNAME INTO ITAB.
      CONCATENATE 'D:\PROGRAMS\' W_PROGNAME '.txt' INTO W_PATH.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                        = W_PATH
        TABLES
          DATA_TAB                        = ITAB
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDLOOP.
    Let me know if you have any more Doubt......
    Reward points if useful......
    Suresh......

  • Outbound IDOC process - Using standard  or Custom Program

    Hi all,
    i'm having some doubts regarding IDOC's outbound processing.
    I'm trying to understand 2 scenarios:
    1- Trigger Standard Outbound IDOC without writting any Z program ou IDOC FM.
    It's possible to trigger a outbound idoc for exemple, whenever a sales order is created. To do this is, i suposed i don't need to write any code at all, correct?
    What i need to do is create a logical system (SALE), define Transmission protocol (WE20, in here i associate the partner, and the outbound message type? After this point is the idoc automatic triggered?
    If not, what is the correct procedure?
    2 Trigger Ountbound IDOC using Z program.
    Whats is diferent from the point 1 to this situation?
    Best regards,
    Pedro

    Kali,
    1. You can search in SE37 using IDOC_OUTPUT* for finding out corresponding function modules. It is based on message types.
    2. You can search user exit in above mentioned function module. So first get the correct populating FM & then you can search for Call Customer Function inside the code for user exit.
    3.Again ans is same as in point 1.

  • Concurrent HOST program calling a proc to log using fnd_file.put_line

    Hello all,
    I have a concurrent HOST program that does 3 main things
    1. Calls a sqlplus program to do some initializing. This program is a proc in a package.
    2. Runs sqlldr to load data to custom tables.
    3. Calls a sqlplus program to do manipulate the data. This program is a proc in a package.
    In step 3 of above, the package procedue does a "submit_request" to call the "Supplier Open Interface Import". This
    request actually fires. However my problem is the subsequent call to fnd_file.put_line(fnd_file.log, 'Test message'), does not get logged
    to the log file of the HOST program, nor to the log file of the "Supplier Open Interfface Import" log file. A check
    of $APPLPTMP (or /usr/tmp) shows that a file of say " l0023761.tmp" contains my 'Test message' text.
    I believe the problem is that the put_line() call has no association with the HOST or the "Supplier Open Interface Import. How
    do I associate the logging to either program? Is it even possible? I want the logging, so as to see the progress
    of the HOST program.
    The sniippet of proc code is:
    PROCEDURE abc() IS
    BEGIN
    request_id:= FND_REQUEST.SUBMIT_REQUEST
    (Application => 'SQLAP'
    ,Program => 'APXSUIMP'
    ,Description => NULL
    ,Start_time => SYSDATE
    ,Sub_Request => FALSE
    ,Argument1 => 'ALL'
    ,Argument2 => 1000
    ,Argument3 => 'N'
    ,Argument4 => 'N'
    ,Argument5 => 'N'
    fnd_file.put_line (fnd_file.log,'Test message');
    COMMIT;
    END abc;
    Alex.

    Shell scripts are very hard to develop and maintain. Many things that developers previously had to do in shell scripts, developers can now do in PL/SQL. Hence, I recommend that you avoid shell scripts as much as possible.
    As well, SQL*Loader is an old, inflexible tool. Instead, define your OS file as an external table, and then extract from the external table using a normal select statement. http://www.orafaq.com/node/848 I recommend that you avoid SQL*Loader and use external tables instead.
    Using PL/SQL and external tables - and avoiding the shell script and SQL*Loader - a much better way to accomplish the same thing all inside one packaged procedure that is registered as a concurrent program:
    - initialize
    - select from the external table
    - manipulate the data

  • How to send multiple customer statements by email using RFKORD11 program.

    Hi All,
    How to send multiple customer statements by email using RFKORD11 program. Is it possible?
    As of now we copied the stanadard program and sending the customer statements by email, one by one.
    if i execute the z program it will show the customer statement and send mail option.
    if i click send mail it will send that customer statement to the corresponding customer.
    then again i need to click back, it will show next customer statement and click on send mail.
    Pl guide me, if any one worked on this program.
    thanks in advance.
    Regards,
    Mahesh

    Try execute the program in the background to see if that helps.

  • Att Partners: Please log messages using customer ID

    Hello All SAP Business One Partners,
    In order to bring additional transparency to our reporting systems and to ensure compliance we will being in 2012 Q2 to send notifications where a message is logged to SAP Business One Support using the Partner ID instead of the correct original Customer ID, the message itself will be processed as normal and only a notification will be sent. While there will be certain exceptions based on component etc., we would ask that all messages originate from a valid Customer ID. The component SBO-SDK* will be exlcuded as it is expected many of these issues will arise from ISV reporting an issue based on their own Add-On development.
    If you must open a message using a Partner ID, please include in the message text a brief explanation for why the Customer ID cannot be used. Beginning in Q3 we will no longer process these messages and will be returned requesting a new message using correct ID.
    We appreciate your cooperation in this matter. If you have any questions, please do not hesitate to contact us via the normal support channels.
    Regards,
    Paul Finneran
    SAP Business One Product Support

    I was experiencing a similar issue to what you're describing. Here is what I found may have been the cause and solution to my problem.
    I use KeePassX to manage my personal passwords for my various online accounts. It seems that when I was using the shortcut to copy the password of the selected entry in the list of entries, it would then paste an extra one or two characters into that field specifically. I finally tried opening the entry for editting, viewing the password, and copying the password directly from the editting area. When I pasted that into the password field, it pasted a character or two less (I noticed because the dots in the field were less than what I had just entered incorrectly).
    It seemed to work for me once I copied it using alternate methods.
    I hope this helps someone else!
    Message was edited by: tinifni -- May not be exact issue you were describing.

Maybe you are looking for

  • Creative MP3+ External soundcard support..

    Does the Creative MP3+ External soundcard support "Stereo Mix"?

  • Report Builde Error

    when i am calling stored procedure which is gathering statistics of two tables inside BEFORE PARAMETR FORM SQL> CREATE OR REPLACE PROCEDURE gather_statistics AS   2  BEGIN   3   dbms_stats.gather_table_stats('PKTCL','TMP_VW_INS_OUTSTANDING',cascade=>

  • MBP can no longer find TC

    My laptop no longer finds my TC, either for reading or writing.  It sees the wiresless network run by the airport just fine, and a second laptop is backing up as usual to the TC, but this one computer is never able to locate the TC.  It possible that

  • Where are real files?

    Hi guys! Maybe somebody knows... I drag and drop video file from the library of Aperture 3 to desktop, but these things (it is obviously not real media files) weight now, for example, about 15 kb for file of half minute HD video... And I can watch th

  • Cannot add user

    Just upgraded from Snow Leopard Server to Mountain Lion Server.  Running into a few issues that I can't resolve. 1.  Updated wiped out my Users.  Cannot add a User becuase the "+" is grayed out, same for groups.  All I see are my local users which I