Message processing after document release

Hi
Is there a way by which we can send a IDOC or any kind of message to external system when a document is released in GTS manually? I tried to search the blogs and it looks like no pointers on this. Any help appreciated.
Thanks,
Vijay V

Hi Vijay,
There's nothing standard, but you could use BAdI /SAPSLL/CUHD_RELEASE to add your own code.  The Method R3_DOCUMENT_RELEASE is called for each document released by the manual "re-check" in GTS.
Hope that helps.
Regards,
Dave

Similar Messages

  • Message no. 06689 after document release and output

    We have received the following message on a released purchasing document:
    Purchasing document already outputted (release will not be changed)  Message no. 06689
    The scenario was that a purchasing document, which has already been released through standard release strategy, was then printed.  The document was then changed, increasing the value by more than 10%, which should have re-triggered the release procedure. 
    Instead, the above message was posted.
    We may have changes to documents after release after printing.  What do we need to do to accomplish this?

    Hi,
    Message you are getting as Release Indicator* set for PO for designing of Release Procedure of PO.
    For your requirement you can use user exit or check to modify standard function module.
    *NOTE:The Release Indicator are:
    1-->Cannot be changed
    2-->Changeable, no new determination of strategy
    3-->Changeable, new release in case of new strategy
    4-->Changeable, new release in case of new strat. or val. change
    5-->Changeable, new release if new strategy/outputted
    6-->Changeable, new rel. if new strat. or value change/outputted
    >Changeable, new release in case of new strategy
    Regards,
    Biju K

  • (Multiple Consumers) vs (Multi-threaded Message Processing after reception)

    Hi,
    The question pertains to the following scenario:
    1. A single input gateway (queue) for messages.
    2. Messages arriving from different systems. High incidence during specific periods
    3. Message should be processed in near real-time as and when it arrives.
    4. A non-polling (async) client.
    I'd thought of two diff approaches for it:
    1> Have a lightweight single-threaded message consumer -
    init connection etc and register a listener (both msg and excep).
    start connection . wait indefinitely
    Listener onMessage creates new thread for working and returns.
    Worker thread - parses xml in message and

    Here is the new code:
         public static void writeXML(DataOutputStream out, String xml) {
              byte[] byteArray = xml.getBytes();
              try {
                   int length = byteArray.length;
                   out.writeInt(length);
                   out.write(byteArray);
                   out.flush();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public static String receiveXML(DataInputStream in){
              int id = (new Date()).hashCode();
              try {
                   int lengthToRead = in.readInt();
                   byte[] byteRead = new byte[lengthToRead];
                   in.readFully(byteRead);
                   String s = new String(byteRead);
                   return (s);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return null;          
         }P.S. By changing the code I meant that I was sending the full byte array instead of sending parts as sabre suggested.

  • Object link after Document release

    Dear all
    Can we restrict user to link the DIR before it is released?
    I mean user should not be able to link document to any of the sap object until it is having released status.
    Regards
    Sandeep

    I think the above method can be used to restrict user to create object link.
    i would like to know weather it is possible to configure such that
    user must at least enter one object link.if object link is not entered the system should not, allow the user to save DIR.

  • Output message of PO in ECC not processed automatically after order released in GTS

    Dear Experts
    PO created in cobalt was blocked in GTS due to legal control. output message of PO was blocked, after the PO was manually released by the user next day, AU open the PO and saved it. output message got processed.
    Can you please let me know, why system is not processing the output automatically after the PO is released in GTS.
    Is this the standard process?
    Thanks
    Kiran

    Hi Kiran,
    This is called follow on function in GTS.
    When document is released, you could trigger background job regularly to process these document.
    Open the area menu for SAP GRC Global Trade Services in your feeder system (with transaction code/SAPSLL/MENU_LEGALR3) and choose Recovery Follow-On Functions in Feeder System .
    Choose one of the following entries to configure the follow-on functions for the selected application level: Materials Management Trigger Follow-On Functions for Purchasing Documents
    Check more details in help document.
    Trigging Follow-On Functions after Document Release in SAP GTS - System Administration - SAP Library
    Best regards,
    Vincent

  • RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING

    hi.
    just i want to know what is the purpose of run operating system command before message processing,after message processing under file sender adapter.
    waiting for your great answer.
    bye.
    regards.
    seeta ram.

    Hello Seeta,
    let me see if I give it using a simple scenario that I implamented : i nedd to transfer a very large file from one server to the other by XI.
    to save space and network traffic I use an OS command before picking up the file to run a zip command to zip the file.
    after I transfer the file to the target server I run another OS command after the transfer to unzip the file.
    now to your second question:
    the before Os command on the target server is used mostly for checks (make sure there isn't a file by that name or backing up existing data)
    and the after sender OS command is usualy for backing up or erasing existing files (cause it is done only after the first part was finished succesfully).
    Uri Lifshitz.
    p.s.
    there was a blog obout this titled "XI as a huge file mover"
    and you can see a description and my scripts at https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/03/additionaltipsforusingXIasahugefiletransfer%28withbatchscripts%29&

  • Disable autmatic mdb message process on server start

    How can i disable the automatic MDB message processing when the server is started. I want to manually start(control) the the MDB message processing after the server startup. The application ear contains ejb modules and web module. is it possible to stop an ejb module in an application. I know, we can stop the entire application.
    there is a parameter in weblogic application descriptor which delays the message processing till the server is fully started. then also it's not possible to stop/delay further.
    the deployment scenario is weblogic+websphere MQ configured as mq foreign server.
    pls help. thanks

    WL JMS provides a programmatic or administrative option for this purpose. The feature is called "destination suspend/resume", and it can be set before shutdown so as to start the destination in a "consumption paused" state after restart. MQ may provide a similar administrative option. I'm not sure if there's a simple way to do what you want with MDBs directly - you might want to try posting to the WebLogic EJB forum, but if MQ doesn't provide an option, perhaps you can forward the MQ messages into WebLogic JMS destinations (either using an MDB or a Messaging Bridge), and then change your MDB to use the WebLogic JMS destinations.
    Tom

  • Message VF041 after System refresh - Billing document doesn't exists

    Hi ,
    We recently refreshed our QAS system and from then on we are having a strange problem .
    The issue is whenever I create a billing document ,it gives me a document number ,but when I try to view this in Vf02/03 it says "Document doesn't exists"
    when I checked the dump in ST22 , it says "A RAISE statement in the program ( Z print program for Invoice)raised the exception condition "FILE OPEN ERROR".
    I went and changed the Dispatch time to "Send with periodically scheduled job or Send with application own transaction " and it works . But Whenever the dispatch time is "Send immediately" it fails and throws a dump.
    Have anyone come across this error .We are getting this problem everytime after refresh . Do we need to do anything after refresh to avoid this kind of error.
    Thanks
    Sridhar

    Hi,
    Based on the sales order the following billing document was created. If i do VF02 to release FI posting that time system is giving the following error message.
    Billing document 8230231 does not exist
    Message no. VF041
    Diagnosis
    The billing document you specified does not exist.
    This document was possibly archived.
    govind

  • How to Run Operating System Command Before/After Message Processing SAP PI

    Hi,
    We are trying to execute multiple commands via "Operating System Command Before/After Message Processing".
    When we use single command say for example cp or mv (copy or move) the commands get executed fine.
    eg: cp %F /var/opt/data/outbound/Test/Dummy.txt 
    /this works fine/
    when we club commands together or try to redirect the outputs of commands, none of the commands get executed.
    eg:
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    or
    wc -l %F > /var/opt/data/outbound/Test/Dummy.txt
    Is it possible to execute multiple commands or redirect the output  of commands without using a shell script? The PI server we are working on iis hosted on UNIX environment.

    Hi Harleen,
    try like this
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    instead of semicolon try this
    (1) &
    command1 & command2
    Execute Command1 and then execute Command2
    (2) &&
    command1 && command2
    Runs the command2 only when command1 doesn't Complete successfully
    (3) ||
    command1 || command2
    Runs the second command if the first command had an error
    (4) ()
    (command1 || command2) || (command3 & command4)
    Defines the order in which commands are to be executed
    Regards
    Suraj

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • 925685 - Approval process is not triggered after documents are added

    Hi there,
    I was wondering if anyone found already a solution for the following problem.
    According to SAP Note: 925685 - Approval process is not triggered after documents are added.
    Within our SAP application, we want to approve purchase orders for departments based upon the document total.
    I was very astonished that employees are able to add a PO which will not trigger an approval stage and after the document is added, they have the possibility to change the document and at the update moment no approval will be started even if the document meets the approval requirements.
    Therefore I really want the flexibility to give users the possibility to change their PO.
    Meanwhile, documents which are added under approval, are also locked for changes, although this is another question it is also pretty annoying!
    I hope anyone has already found a method or work around for the stated problems above.
    (We are using SAP 8.8 PL 20)
    Thanks in advance.
    Kind regards,
    Marcel

    Hi Kambadasan,
    Thank you for your reply
    I'm sorry but I know how the approval templates work and they are configured correctly, however as SAP also mentioned in their own Note, this is due to the lack of SBO that SAP has such behaviour.
    Hi Gordon,
    Thanks for your reply.
    Unfortunately I have not found the post you mentioned...
    I will post my issue alson on the topic you mentioned.
    Hopefully they found a solution or maybe version 8.81 will solve the problem.
    Thanks a lot!!
    Kind regards,
    Marcel

  • How to block changes in purchase order after purchase release

    Dear all
    Can u please tell us how to block any changes in purchase order after purchase order is released...
    (We don't want any line items addition or quantity addition or any changes once purchase order is released..)We wanted this for a particular purchase order type only
    Regards
    Sudha

    Dear Sudha
    Yes it is possible to confiquire your system insuch a way where once if the PO  gets final relase then it cannot be changed.Only possiblity that will be available for the user to make chanegs in PO is possible when the final release is to be reset and then make the changes.
    Release Indicator: specicfies whether the PO documents is blocked or can be processed for the follow functions.
    You can define the release indicators you need for your release procedure:
    •The Released indicator is used to specify whether messages (PO documents in output format) may be transmitted for a purchase order with this indicator.
    •The Changeability indicator shows the effect of changes to the PO (a change to a PO may require a new release strategy to be determined, for instance).
    •By means of the Value change indicator, you can specify that the release strategy is to be re-started if a PO is changed and the value of a PO item thereby increases by a certain percentage (e.g. 10%). Set the Changeability indicator to "4 - Changeable, new release in case of new strategy or value change" or "6 - Changeable, new release in case of new strategy or value change/outputted" and enter a percentage in the Value change field.
    And after that you can specify release statuese where you can specify which release indicator/status a PO is to have after having been released via a certain release code.
    and after release simulation .
    Test for the PO change after final release System will not allow you tomake changes by giving the message that the release  indicator doesnot allow you make the changes in PO.
    Regards
    Sunny

  • Error in document releasing for credit note

    Hi
    I am trying to raise a credit note for a sales return order. after saving the document when i go to change mode and try to release the document for accounting,
    The system gives an error message as the document is being processed. Due to this activity other entry are also getting held up.I am unable to post next invoice also.
    Pls help

    hi
    this is earror comes in release document
    so plese chek u vf02 , for billing document  their is any pending process and the check ur document flow,
      when u release the document  it is for save but not complete so  u can check account determination ,
    revenue account determination is complete r not , so go to vf02  clik on environment tab , and select account determination   analysis, and select revenue account, plese check ur account determination,
    so u can check in tables also , vbrk, vbrp , tables for status ,
    it is help full

  • Error while billing document releasing to accounting.

    Hi Experts,
    Please give me possible reasons for below error while billing document releasing to accounting.
    "Valuation with material cost estimate: error with product "500258045"
    Message no. KE350
    Diagnosis
    In Profitability Analysis (CO-PA), the system tried to valuate a line item using the current standard cost estimate.
    In order to determine the current plan period, the system needs to read the valuation segment of the material master.
    The system has found that the current plan period is not filled forproduct "BDE98561002" in plant "9856".
    Display material (View: Costing)
    The system looked for the material cost estimate using costing key "ZK1", as defined in the Customizing settings for CO-PA.
    System Response
    The document cannot be processed.
    Procedure
    Contact your system administrator".
    I have checked CKR1 transaction there were no cost estimates with KF costing status.
    NOTE: Material Ledger Activated.
    Please suggest the possible reasons and what to check?
    Regards
    Chandra.

    Check the cost estimate that is mentioned against the Costing key ZK1 whether it exists in the system and as you are saying there seems to be no cost estimate for the said material.
    Hence release the std cost estimate for the said materia using CK11n or CK40n

  • Running F110 with message "Proposal has been released 07/22/10 06:42:33"

    Dear experts,
    When I made proposal through F110,  it shows me "Parameters have been entered", then after setting the related parameters, I tried to run Proposal with check on "Start immediately", then the message "Proposal has been released 07/22/10 06:42:33" appears, I also check SM37, but I can not get the spool list.
    What could be the reason?
    Thank you!

    In the first tab of your F110 screen, you'll get the status of your processing.  It will update for each event.  Check if you are getting things like the following.
    Parameters have been entered
    Payment proposal has been created
    Payment proposal has been edited
    Payment run has been carried out
    Posting orders: 1 generated, 1 completed
    If you are not getting any of the above, you can check that step and analyse the log.
    Since you are getting as released, i think the proposal run has not carried out.
    Ravi.

Maybe you are looking for