Capture messages in PRELIMINARY_POSTING_FB01

Hi everyone,
I got an requirement, where i have to create an interface function module to park a finance document.
So iam planning to build an custon RFC using 'PRELIMINARY_POSTING_FB01' FM.
I am succesfull in posting the document by using above function module.
But the  problem is araised in capturing Mesages from the function module.
It is giving document number in information message.
I want to supress that message and capture the document number.
Any idea on above problem.
Thanks in Advance.

Hi
  Once the document has been parked, the document number will be stored in the system parameter 'BLN' which you can read into a variable using 'GET PARAMETER'  ( i.e  GET PARAMETER ID 'BLN' FIELD w_belnr ).
   Hope this helps.
Regards
Swamy

Similar Messages

  • Capturing messages in session method

    Hi All,
    I am executing session using the program name rsbdcsub after executing the session mehtod I wanted to capture the messages at runtime.
    Can anyone tell me how can I capture the messages at runtime.
    This line is perticularly for Vinod Kumar who rejected my post as basic questions,
    Vinod Kumar Please read the thread before rejecting.
    Regards,
    Sagar

    Hi Vinod,
    Thanks for reply and not rejecting my thread :).
    I have already gone thorugh the link which u have send this is for only error message.
    My requirement is something like
    Capturing messages in BDC session
    Please let me know if u have any solution for this.
    Thanks again.
    Sagar

  • Unable to capture messages from java.util.logging

    I have a class called (Caller.java) which invokes a method called foo from another java class(Util.java) using reflection API.Now this method foo logs messages using Java's logger.My requirement is to call foo for 3 times from Caller and capture/redirect the log messages into 3 log files.
    But only the first log file is capturing the log messages(from logger) and other two are not ?
    Plz suggest if I am doing somethin wrong here ?
    Caller.java
    package project2;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.PrintStream;
    import java.lang.reflect.Method;
    public class Caller {
        public Caller() {
        public static void main(String[] args) throws Exception {
            Caller caller = new Caller();
            for (int i = 0 ;i<3 ;i++ )  {
                caller.createLogStream(i);
                System.setOut(caller.getPs());
                System.setErr(caller.getPs());
                /*****************Invoking Util.java*****************************/
                Class clas = Class.forName("project2.Util");
                Method m = clas.getMethod("foo",null);
                Object obj =clas.newInstance();
                m.invoke(obj,null);
        public void createLogStream(int i) throws FileNotFoundException {
            ps = new PrintStream(new File(System.getenv("HOME")+File.separator+"MyLog"+i+".log"));
        public void closeLogStream(){
            ps.close();
            ps = null;
        private PrintStream ps = null;
        public PrintStream getPs() {
            return ps;
    } Util.java
    package project2;
    import java.util.logging.Logger;
    public class Util {
        Logger logger = null;
        public Util() {
            logger = Logger.getLogger(this.getClass().getName());
        public void foo(){
            System.out.println("Hello out stream");
            System.err.println("Hello error stream");
            logger.info("This is an information");
            logger.warning("This is a warning message");
            logger.severe("This is fatal!! ");
    }First Log file MyLog0.log:
    Hello out stream
    Hello error stream
    Feb 16, 2009 7:55:55 PM project2.Util foo
    INFO: This is an information
    Feb 16, 2009 7:55:55 PM project2.Util foo
    WARNING: This is a warning message
    Feb 16, 2009 7:55:55 PM project2.Util foo
    SEVERE: This is fatal!!
    Feb 16, 2009 7:55:55 PM project2.Util foo
    INFO: This is an information
    Feb 16, 2009 7:55:55 PM project2.Util foo
    WARNING: This is a warning message
    Feb 16, 2009 7:55:55 PM project2.Util foo
    SEVERE: This is fatal!!
    Feb 16, 2009 7:55:55 PM project2.Util foo
    INFO: This is an information
    Feb 16, 2009 7:55:55 PM project2.Util foo
    WARNING: This is a warning message
    Feb 16, 2009 7:55:55 PM project2.Util foo
    SEVERE: This is fatal!! Other 2 log files have only this much
    Hello out stream
    Hello error stream

    A stale Connection Factory or Connection Handle may be used in SOA 11g
    Regards,
    Anuj

  • Unable to capture message from BAPI_REQUIREMENTS_CHANGE in production

    Hi,
    I have written code for uploading PIRu2019s as per demand planner in SAP R/3.
    For this i have used  BAPI_REQUIREMENTS_CREATE and  BAPI_REQUIREMENTS_CHANGE.
    As the command COMMIT WORK is entered within the BAPI, i have not used TRANSACTION_COMMIT bapi.
    It was tested in Development server & working fine in Production server.
    But recently (after 2 months), messages captured from return table of BAPI_REQUIREMENTS_CHANGE, is not coming.
    If any one has faced similar problem, they can guide me to resolve this issue.
    Thanks & regards,
    Tanaya

    Hi Mamta,
    I have already checked that link.
    regards,
    tanaya

  • To capture messages after CALL Transactiom

    Hi all,
    I am doing call transaction for IM32,CJ30 and IM52.But iam unable to capture the messages.
    when we enter a wrong budget values then it throws a error message saying 'Errors found-> see error log'(The same is present in BDCMSGCOLL). But we need the errors present in the error log not the error which mentioned above.
    So is there any possible way to catch those errors. Please help as early as possible.
    Thanks
    sagar.

    hi ,
    use the function module FORMAT_MESSAGE
    like this,
    CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
               id        = tb_msgtab-msgid
               lang      = sy-langu
               no        = tb_msgtab-msgnr
               v1        = tb_msgtab-msgv1
               v2        = tb_msgtab-msgv2
               v3        = tb_msgtab-msgv3
               v4        = tb_msgtab-msgv4
          IMPORTING
               msg       = tb_messages-message
          EXCEPTIONS
               not_found = 1
               OTHERS    = 2.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 13, 2008 10:29 AM

  • Capture Message ID for (IDOC-XI-HTTP)

    Hi! Thanks to some kind help last week, I can capture the message ID in my mapping via the following:
    *******************code**********************
    java.util.Map = container.getTransformationParameters();
    String mid = (String) map.get ( StreamTransformationConstants.MESSAGE_ID);
    return mid;
    *********************end code******************
    However, my scenario is IDOC->XI Multimap->File(s). In the case that the IDOCs are mapped into multiple files, each file has a unique reference associated with it. I can see these in the HopList as follows:
    <Trace level="3" type="T">clone_MMF 453D478CFCF537B0E10000009B7D1E4D</Trace>
    Does anyone know how I can capture this reference in the mapping?
    Help is much appreciated and rewarded. Thx, Duncan

    Hi,
    Message ID can be captured while going in to
    IDX5 Trancation Code , where you give the Date and time when the IDOC is pushed...then you will get the squence of your data flow and in that you have a coloume header with the name MESSAGE ID...If you click that one you will have XML Message...
    Amaresh

  • Capture message ID / IDOC numbers (IDOC-XI-HTTP)

    Hi! I am running a IDOC-XI-HTTP scenario and am trying to figure out a way to capture the XI message ID and the IDOC number to which it is linked and send this to back to the source system such that the user can see the data. This is needed to support easy follow up on issues.
    Does anyone have experience on how to grab this kind of data at runtime? I know I can output the message as a file to the filesystem but this is not an option.
    Any bright ideas would be much appreciated!
    Thx, Duncan

    Hi Prakash
    Really really helpful. Can grab the message ID now. However, I am still not my end point. Basically, my scenario is as follows:
    Source SAP --> IDOC --> XI --> Map --> XML --> External Party
    I don't want to the put the message ID in the message to the External Party but rather write it back - probably via RFC - to it source SAP system. Net, dusire scenario is as follows:
    Source SAP --> IDOC --> XI --> Map --> XML --> External Party
    + Message ID --> Source SAP
    Any ideas? Will award points for your previous reply as that already helped a whole lot.
    Thx
    Duncan

  • Capture message after SUBMIT report

    I have called submit report like below in  RFC function module .
    submit rfitemap
                  with kd_lifnr in r_it_lifnr
                  with x_apar   eq abap_true
                  with x_merk   eq abap_true
                  with x_norm   eq abap_true
                  with x_opsel  eq abap_true
                  with x_park   eq abap_true
                  with x_shbv   eq abap_true
                  exporting list to memory and return.
    how to capture  or skip  error or information populated by submit program ?
    As the function module is a RFC function module, the FM is called from some SMDL program  .  Once the program executes  submit statement
    is giving system failure exception and giving message like 'No connection with development system'.
    Instead of giving messages populated in return table ,the SMDL program returns "NO connection"  message.
    How to display the message from return table ?

    Hello Kachana,
    You can try like mentioned in the below thread with JOB OPEN, submit your program, JOB CLOSE and read the job log to get the messages raised during the submit program.
    How do I capture error/information messages and Output of a report using SUMBIT statement, when called in a function mod…
    Regards,
    TP

  • How capture messages

    when I execute the applet from the browser with
    http://localhost
    it gives me some messages in the bar
    at bottom of the screen
    How can i capture these messages ?

    This isn't exactly what you asked, but the data displayed in the java console often matches what's in the status bar.

  • Capture Messages while Inbound processing of IDOC

    Hi ,
    I have a scenario where in i have to upload a file from application server using inbound IDOC. I am using the program RSEINB00 (using submit) for this, The idoc is getting posted successfully but i need to capture the messages in form of a log so that i can find out what all IDOC numbers are generated and how many of them. In case any error is there. I need to display a log of it.
    Timely help in this regard will be appreciated and rewarded suitably.
    Rgds,
    Kewal
    P.S. : Please suggest if there is any other method to process inbound IDOC (accept we19 TX)

    Hi kewal ,
    As per the scenario explained by you , I suggest you to do following steps
    1.The program you are using is RSEINB00 , has a function mosule present named ' IDOC_ERROR_WORKFLOW_START'. This function module can gice yo the Error message log in case of Inboung IDOC processing fails.
    2.You have two options , eithe you find out any user exit and atttach your own code to it or Complaetely cope that code into your z-program. Int he function module mentioned above , the export parameter  ' G_MESSAGE_FIELDS ' wud give you the error message , error status , error no etc.
    3. So for the INbound IDOC status messages starts with 51-70 , so depending upon ur logic , read all those message into an internal table .Then transfer that to a file .So an error log can be genearated.
    I hope this solves ur problem.
    Regards.
    Note: Reward if useful.

  • FCE camcorder/ audio capture message

    I've recently upgraded to FCE 3.5, and now, whenever I download from my camera, an error message states "The audio sample rate of one or more of your captured media files does not match the sample rate on your source tape. This may cause the video and audio of these media files to be out of sync. Make sure the audio sample rate of your capture preset matches the sample rate of your tape."
    Okay, however, I cannot find any instructions on how to do this. I've not changed any thing on my camera, so what can be the issue, and where might I find how to fix it.
    Appreciate the help. There are few lifelines in western KY.

    Thank you for that answer. However, what if my material is 48k and I've somehow changed FCE to look for 32k media? This is something that's just started to happen, so something is different, as FCE read fine from my VX-1000 (Sony prosumer, circa 1995) just a few weeks ago.
    Any ideas?
    Bill-in-KY

  • An odd capture MESSAGE

    Hey guys I'm back.
    Why am I getting this window coming up after I CAPTURE NOW.
    'THE AUDIO SAMPLE RATE OF ONE OR MORE OF YOUR CAPTURED MEDIA
    FILES DOES NOT MATCH THE SAMPLE RATE ON YOUR SOURCE TAPE. THIS MAY
    CAUSE VIDEO AND AUDIO OF THESE MEDIA FILES TO BE OUT OF SYNC.
    MAKE SURE THE AUDIO SAMPLE RATE OF YOUR CAPTURE PRESET MATCHES
    THE SAMPLE RATE OF YOUR TAPE"
    This has never come up in the past. I haven't messed with any settings.
    I'm capturing standard 29.97 stuff and putting it on a timeline
    preset with the same preferences. Or aren't I?
    Any solutions??
    G5   Mac OS X (10.4.6)   1.8 GHz 2GB RAM

    Dee, I've gotten that message when I've recaptured files from an old project started in version 3. But they were fine. I don't know what the answer is, but if you scroll over in the browser and the sample rate say 48K and the clips stay in sync, I don't think you have too much to worry about.

  • Capture Message from R3/ECC

    Hi Experts,
    The scenario is eith the system CRM 7.0 with ERP Sales order  - B2B Ecommerce.
    We have a requirement wherein "Static Credit Check" message needs to be captured. The message is coming from R3.
    In turn of this standard message i need to display a generic message at the JSP level (confirmation page).
    What is the detailed procedure to achieve this ?
    Please help .
    Best regards,
    Rohit Sharma
    Edited by: Rohit Kumar Sharma on May 5, 2010 3:44 PM

    Hi Rohit,
    If you want to do it at JSP level then try to find how your message get displayed? i.e. it how your JSP get the message text.
    If it retrieve through some method and that method returns some resource key then try to store it into some string variable and then compare it with text and if match then replace it with your custom Message.
    Suppose your message display through resource key b2b.message1 then store this value in some String variable VAR1.
    Retrieve resource key before display message and store it into variable VAR2 then compare VAR1 & VAR2 if both are same then display your custom message by replacing value in VAR2 and use VAR2 value to display message.
    I hope this info will help you to solve your issue.
    eCommerce Developer.

  • Capturing messages from background session

    Hi,
    I'm running an ABAP report in which I call a function module in several different tasks. This function module is eventually submitting RSNAST00 for generating the outputs. I want to capture the messages for the log like they appear in the job log if RSNAST00 is scheduled in the background job using SM36.
    Since I'm using SUBMIT and RETURN, it runs in a new internal session. Also I do not get back anything in the EXPORTING LIST TO MEMORY.
    Is there any way to capture the system messages that have been generated during that RSNAST00 run.
    Thanks in anticipation,
    Satya

    Ok, I submitted this program in background, it creates 4 more jobs calling my test program ZRICH_0005.  In that program, I am just issuing a message.
    No problems.
    report zrich_0001 .
    data:   l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    parameters: p_check.
    start-of-selection.
      do 4 times.
    * Get Print Parameters
        call function 'GET_PRINT_PARAMETERS'
             exporting
                  no_dialog      = 'X'
             importing
                  valid          = l_valid
                  out_parameters = ls_params.
    * Open Job
        clear l_jobname.
        l_jobname = sy-index.
        shift l_jobname left deleting leading space.
        concatenate 'ZRICH_0005' l_jobname into l_jobname.
        call function 'JOB_OPEN'
             exporting
                  jobname  = l_jobname
             importing
                  jobcount = l_jobcount.
    * Submit report to job
        submit zrich_0005
             via job     l_jobname
                 number  l_jobcount
             to sap-spool without spool dynpro
                 spool parameters ls_params
                             and return.
    * Schedule and close job.
        call function 'JOB_CLOSE'
             exporting
                  jobcount  = l_jobcount
                  jobname   = l_jobname
                  strtimmed = 'X'.
      enddo.
    Regards,
    Rich Heilman

  • Capture Message

    I want to capture the message from one page, and display it on the page that is displayed after it. How would I do this?
    Ex:
    <af:messages binding="#{backing_test1.messages1}" id="messages1">
    <f:verbatim>
    test action
    </f:verbatim>
    </af:messages>

    One method I tried is to add a method to a backing bean that already exists in the system.
    <af:commandButton text="Hide Error" rendered="#{backing_myTest.checkIfErrorsExist}"/>
    The bean method looks like this:
    public boolean checkIfErrorsExist(){
    return FacesContext.getCurrentInstance().getMessages().hasNext();
    When you run it, I get an error
    javax.faces.el.PropertyNotFoundException: Error getting property 'checkIfErrorsExist' from bean of type view.backing.MyTestBean
    I think it's the signiture of the method. It shouldn't be checkIfErrorsExist() but checkIfErrorsExist(?????????)
    Any help

Maybe you are looking for

  • Master - Detail application problem navigation

    Hello everyone i have a problem with my proyect Master - Detail Application, i can't show more DetailViewController  in the xcode 4.2. in the MasterViewController have 4 options the first option show me a DetailViewController in the second option sho

  • Non deductible tax problem

    Hello,   Created one condition type: ZVSB (VAT non-deductible) Condition class: D, Calculation type: A, Cond. category: N, Access sequence: MWST, item condition.    In Tax calculation procedure: (T/code OBQ3) - TAXINN   ZVSB condition type calculatio

  • Fiori Launchpad - Basic authentication popup

    Hi, I have used the std. class /UI2/CL_SRA_LOGIN for Fiori launchpad log in screen. When there is no user action for long time and the session cookie gets expired; any operation performed(like selecting an app) in this case is bringing a browser basi

  • Can someone help with key listeners... :(

    on (keyPress "q") { nextFrame(); on (keyPress "w") { nextFrame(); on (keyPress "e") { nextFrame(); I'm creating an app for television that emulates a google search engine. The keypress codes i used were to "fake" a person entering a search field. My

  • How to adjust green text in photo?

    I'm using CS4 in Windows 7. Our products have green text screenprinted on them. In the photos of some of them, the green is washed out or is yellowish. How can I adjust just the green text without affecting the rest of the photo? They photos are in C