How to capture Document Numbers when executing rfbibl00 program in 'C' mode

Hi
I am using rfbibl00 program to post documents(FB01 transaction). I have used call transaction option by selecting callmode = 'C' .
As per our requirement the document numbers should get displayed in the report after the postings happened.
Can any one tell me how to capture the document numbers.
Thanks & Regards
Madhu

Hi,
1) with:
  GET PARAMETER ID 'BLN' FIELD BL01-BELNR.
  GET PARAMETER ID 'BUK' FIELD BL01-BUKRS.
  GET PARAMETER ID 'GJR' FIELD BL01-GJAHR.
But you must acquiring an item that clerk used FB01 only 1 times
2) use call transaction 'FB01' ... messages into messtab
and analyse messtab
A.

Similar Messages

  • How to send files to others mail id when executing the program

    Hi all,
    I am getting text file from application server and i am sending total text file data into my internal table.
    I am checking this internal table data especially material number and customer number with data base tables mara and kna1.If the matnr and kunnr are existing in database successfully means then only i am creating the sales orders for that text file data.if any record out of 10 records is not success means i am not creating sales orders for total text file data.
    My error log file as
    file name,date time,total no of records,error record no,error description.
    one more text file as
    file name,date time,total no of records,succesful records , error records.
    I am getting these all data into my one more internal table.
    I am appending all data into my internal table.
    so i want retrieve only last row of data from that internal table.pls guide me how to get last row from the internal table.
    these text files i have to send to my user mail id directly when i am executing the program.
    any one knows the any function modules to send that text files to perticular mails.pls send the FM's to me.
    Regards,
    lokesh.

    hi
    good
    go through this report,hope help you to solve your problem
    report y_cr17_mail.
    data method1 like sy-ucomm.
    data g_user like soudnamei1.
    data g_user_data like soudatai1.
    data g_owner like soud-usrnam.
    data g_receipients like soos1 occurs 0 with header line.
    data g_document like sood4 .
    data g_header like sood2.
    data g_folmam like sofm2.
    data g_objcnt like soli occurs 0 with header line.
    data g_objhead like soli occurs 0 with header line.
    data g_objpara  like selc occurs 0 with header line.
    data g_objparb  like soop1 occurs 0 with header line.
    data g_attachments like sood5 occurs 0 with header line.
    data g_references like soxrl occurs 0 with header line.
    data g_authority like sofa-usracc.
    data g_ref_document like sood4.
    data g_new_parent like soodk.
    data: begin of g_files occurs 10 ,
      text(4096) type c,
       end of g_files.
    data : fold_number(12) type c,
           fold_yr(2) type c,
           fold_type(3) type c.
    parameters ws_file(4096) type c default 'c:\debugger.txt'.
    Can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    call function 'SO_USER_READ_API1'
    exporting
       user                            = g_user
       PREPARE_FOR_FOLDER_ACCESS       = ' '
    importing
       user_data                       = g_user_data
    EXCEPTIONS
       USER_NOT_EXIST                  = 1
       PARAMETER_ERROR                 = 2
       X_ERROR                         = 3
       OTHERS                          = 4
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number =  g_user_data-outboxfol+5(12).
    clear g_files.
    refresh : g_objcnt,
      g_objhead,
      g_objpara,
      g_objparb,
      g_receipients,
      g_attachments,
      g_references,
      g_files.
    method1 = 'SAVE'.
    g_document-foltp  = fold_type.
    g_document-folyr   = fold_yr.
    g_document-folno   = fold_number.
    g_document-objtp   = g_user_data-object_typ.
    *g_document-OBJYR   = '27'.
    *g_document-OBJNO   = '000000002365'.
    *g_document-OBJNAM = 'MESSAGE'.
    g_document-objdes   = 'sap-img.com testing by program'.
    g_document-folrg   = 'O'.
    *g_document-okcode   = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'TXT'.
    g_header-objdes =  'sap-img.com testing by program'.
    g_header-file_ext = 'TXT'.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = sy-uname
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header
      FOLMEM_DATA        =
      RECEIVE_DATA       =
    File from the pc to send...
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    append g_files.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = g_owner
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header
    method1 = 'SEND'.
    g_receipients-recnam = 'MK085'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    append  g_receipients.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = g_owner
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header.
    *-- End of Program
    thanks
    mrutyun^

  • How to capture SOAP fault when using "Do not use SOAP envelope" parameter

    Hi,
    we have a synchronous  RFC -> XI -> Web Service scenario. The Web Service requires some custom SOAP header elements for user authorization which forced us create the entire SOAP message in a message mapping and to set the "Do not use SOAP envelope" parameter in the receiving SOAP adapter.
    In order to capture the SOAP fault message from the Web Service we have created a message interface with a fault message and also created an interface mapping with a fault message mapping.
    Our problem is that the fault message is not populated when we get a SOAP fault message back from the Web Service. Is this due to the fact that we have set the  "Do not use SOAP envelope" parameter?
    Thanks in advance!
    Stefan
    Message was edited by:
            Stefan Nilsson

    Hi Bhavesh,
    I have exaactly same scenario. But the only difference is that the Successful payload is also not coming into PI.
    The request is successfully hittng the webservice.
    Please guide me on how to capture the paylod.
    I am using the WSDL provided by the thirdparty but sill the message is not coming into PI.

  • How to save html response when execute a siebel load test.

    First at all excusme for my english.
    I need help to manage html response. I use OpenScript Version: 9.3.1.0 Production.
    When i execute a siebel load test, some of the VU returns the error "12152 the server response could not be parsed". Mi boss asked me an image or html response to analize the error. But i dont now how to get it.
    I search in all logs but i didn´t find nothing usefull.
    Anyone know how to save the html response when execute a load test?
    Thanks.
    Gabriel.

    "First at all excusme for my english."
    => are you french? I am! So no problem of course ;-)
    Which ATS version do you use? Because starting with 12.1, you have a better VU Logging capabilities.
    From the OLT user guide:
    The virtual user logs window has the following toolbar options:
    Open - Opens an existing virtual user log.
    Save as CSV - Exports the current VU log to a comma-separated value file.
    Clear - Clears the virtual user logs.
    View Text - Displays the source HTML for pages accessed by the virtual user.
    Render HTML - Displays actual pages as accessed by the virtual user.
    Auto Display - Displays pages as they are received by the viewer.
    See if it can help.
    If not, maybe you could implement some logics in OpenScript, but i wouldn' advice that.
    JB

  • How can I see error when  execute UPDATE with BULK COLLECT

    Hi
    I have a code
       CURSOR c_renov_eleg IS
            SELECT t2.ROWID
              FROM mytable  t2
         WHERE  BLA BLA BLA
    OPEN c_renov_eleg;
          LOOP
            FETCH c_renov_eleg BULK COLLECT
              INTO w_rowid LIMIT 1000;
            FORALL i IN 1 .. w_rowid.COUNT
              UPDATE mytable
                 SET id_baixa_elegibilidade = K_SCNOB_BXA_RENOVACAO,
                      column01         = arr_ciclo(1),
                     dt_ultima_atualizacao  = SYSDATE,
                     cd_usuario_atualizacao = USER
               WHERE ROWID = w_rowid(i);
            COMMIT;
            EXIT WHEN c_renov_eleg%NOTFOUND;
          END LOOP;How can I to sse when and where have some error ? , in Exception return what record ?

    How can I to sse when and where have some error
    ?Have a look at
    [url=http://download.oracle.com/docs/cd/B28359_01/appd
    ev.111/b28370/tuning.htm#i49099]Handling FORALL
    Exceptions (%BULK_EXCEPTIONS Attribute).btw. just never ever commit in a for loop ;)
    (Tubby is just too fast ;))
    Hi , thank all
    btw. just never ever commit in a for loopWhen I must to COMMIT using BULK COLLECT ?

  • How to capture the parameter value of Concurrent Program submited

    Hi,
    I would like to capture the Parameter value of Concurrent Program submitted through Submit Request screen based on that i want to return value.
    When Conc prog "Payroll Run" along with parameter like "Pay Period" which has LOV attached to it, which has one coulumn named "End Date", this value selected needs to be captured. Can you please tell the Table name where the value is stored or Captured.
    I want this value to be used in Fast Formula which will return the desired value to Input Value.
    Actually in one of the Element I have Input Value as "Monthly Days" which should be populated with the "Number of days" in the period in which Payroll is being processed.
    Thanks in advance.
    Ram

    Hi,
    fnd_concurrent_requests.argument_text stores the argument values in comma separated form. But check the prior response from thierry first - fnd_concurrent _requests is not the place you want to be getting things from as it can be purged and so you source data is gone!
    Gareth
    http://garethroberts.blogspot.com

  • BDC is not working in when executing the program in background

    Hi gurus,
    I have a problem that in BDC is not working when i'm executing the upload program in background thru scheduling(SM36) , while it works fine when i execute directly with NO screen display mode

    Many transactions behave differently when executed in foreground and background. The fields on the screen may be different.
    In transaction SHBD when starting a recording there is a checkbox where you can select 'Simulate Background Mode'. If you do your recording using this option you will get the code suitable for background mode. If you do not select this option you will get a code for foreground mode.
    By compairing the two codes you will know the changes required for background mode.
    Hope this helps you

  • How to capture Wnidows(OS) event from Java program

    Hi,
    I am developing one application , in that if the user didn't do any thing in 15 mins,i need to log out from my application(not windows).Here i need to check Java event as weel as windows(OS) events also.Any one knows how to capture the OS events??

    I want to know the status of mouse and keyboard(Windows 2000).If the status of the mosue or keyboard doesn't change from 15min i need to log of the java application.

  • CRM transaction CRMD_MKTSEG, to capture campaign details when executed

    Hi,
    I need to know how i can capture the campaign details in the transaction CRMD_MKTSEG when the campaign is executed. I need to send the same details to the XI ( Exchange Infrastructure). I tried to search the existing BADI for the transaction but could not find any relevant methods. Can anybody help me on this.
    Can this be done using BAPI?
    Please reply immediately. I have a urgent requirement.
    Thanks
    Chethana

    Its bcoz of the non-existence of some system files ,
    u can ask the Basis admin to install the latest version
    patches,, currently u can use Patch - 24, Check if it helps..

  • How to disable windows dialogue when executing a script

    Hi there.
    I'm trying to automate a task that needs a PSD file to update a layer text.
    For this task my script reads an externar data from www.mydomain.es/resource.cfg.
    Everything has to be done automatically and the script will be programmed to run to a certain hour in my XP machine.
    Data is retrieved, but when  .jsx file tries to run a warning dialog displays in Windows. Something like:
    "Security alert: you are about to execute a script in Photoshop CS4. Do yo want to Continue(button) or Cancel(button).
    This prompt will ruin my script as i need to do everything automatically.
    Does anybody knows how to configure windows, the script or whatever so that the script just executes without asking?
    Thanks so much ofr your help.

    Found the solution:
    I have to place the script in the folder PS CS4 creates for scripts in XP located in documents and settings\user\My Documents\Adobe scripts
    There seems to be a trusted folder and won't display any warning
    •••(spanish lang. translation)
    Encontré la solución:
    Hay que copiar el script en la carpeta que se crea automáticamente al instalar PS CS4 y que se encuentra en documents and settings\usuario\Mis Documentos\Adobe Scripts
    Esa parece ser una zona de seguridad autorizada y no mostrará ninguna advertencia si se ejecuta desde allí

  • How to stop document posting when filling setup tables for logistic app.

    Hello Boys
    I've read several threads and weblogs about data extraction from logistic applications i.e the ones which uses the infosources like 2lis_13_vditm, 2lis_02, 2lis_03, etc, etc,and now almost every thing is clear to me but one thing: how do i actually "close the system" while the process of filling setup tables i.e MC03BF0SETUP, MC03BX0SETUP, MC13VD0ITMSETUP,  are running?
    So I have some questions
    1) which is the procedure to prevent users from posting documents for an specific logistic applications (02,03, etc.) in a source system
    3) For example when using TC OLI9BW for statistical setup from billing documents (app no. 13), there is a check box "Block all billing documents?". Is this option for such pourpose?
    4) Every logistic applications has a different procedure??
    thanks (with points of course) for any help
    rgds
    A. Garduñ

    Hi Azael:
    Q1: usually the BW team will inform basis/secuity about the deletion and performing of setup tables. they will fix a time after the normal hours where in all users are locked out from the system. in a sense, R/3 will be down for that time.
    2. the check box which says, "block documents" is meant to block posting. for eg: you are doing setup tables late in the evening, and you assume that no user is assessing the system, but if there is a user(just by chance) who is doing some posting and when he try to save it, the system will not allow him to do save as you cheked this option.(normally we donot use this)
    3. some LO may have different procedures, for eg IM. but most of them have the same functionality.
    hope it helps.
    assign points if helpful
    kalyan

  • How to cancel a query when execute query builtin fire and No Records found.

    Hi,
    I am unable to cancel a query when i make query (fire enter-query) then fire (execute-query) and no records found then the form status is enter-query mode. Plz help me that how can i back to normal mode of form.
    here i use the code for coming back to enter-query to normal mode but no results.
         if :system.mode = 'ENTER-QUERY' THEN
    ABORT_QUERY;
         clear_form;          
         END IF;
    thanks in advance....

    Hello,
    I would test the record status of the first record in the block. If this status is 'NEW', then there is no record retrieved, so that you can exit the query mode with exit_form()
    Francois

  • How to Capture the event when minimized button is clicked of a JFrame?

    Hi All,
    In my SWING application, I want to do something when the minimized button is clicked. But not able to understand how to do that.
    My basic requirement is like that, if I minimize the JFrame, it should be minimized to system tray with an icon. Again when the icon is clicked, the frame should be maximized in the Windows.
    Also, how to make my JFrame visible/invisible. If I close it, then the process will got killed... that I don't want to happen. Should I us setVisible(true/false) for the frame... Please suggest...
    Thanks,
    Ujjal

    There could be some mistake in my basic understanding... Anyway this is what I wrote...
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    public class WindowIconify extends JApplet
         JFrame jf;
         JPanel jp;
         public void run()
              jf = new JFrame("test");
              jf.setSize(200,200);
              jp = new JPanel();
              jp.setBackground(Color.BLACK);
              jf.add(jp);
              jf.setVisible(true);
         public boolean handleEvent(Event event)
              if ( event.id == Event.WINDOW_ICONIFY)
                   System.out.print("iconifying");
              return true;
         public static void main(String args[])
              WindowIconify wi = new WindowIconify();
              wi.run();
    }

  • How to realize page numbers when printing from an ALV-Grid

    Dear ABAPers,
    with resprect to SAP note 402627 ALV-Grids in 4.6-Systems
    do not produce a header with Actual date, report title
    and page number as it does from release 610 on.
    I've spent almost the entire day on searching the SDN
    for an answer on how I could produce a page numbering.
    I've also tried quite a lot, for example by using the
    END_OF_PAGE event, but nothing worked.
    I'm using the FM REUSE_ALV_GRID_DISPLAY, but even an SAP
    sample report BCALV_GRID_01, which is supposed to
    demonstrate the object-oriented use of the several
    PRINT-events does not process PRINT_END_OF_PAGE in our
    4.6C-System.
    Is my search in vain or does anybody have experience
    with those kinds of problems under 4.6x ?
    Thanks in advance
    Andreas Flügel

    I think you should be able to use PRINT_END_OF_PAGE event for the same. That should work. Use SY-PAGNO variable to print the page no in this event.
    You will have to register this event and set the handler for the same.
    Did you try this?
    Regards,
    Ravi

  • How to see generated SQL when execute JPQL query using entity manager?

    I want to see generated SQL query in console or in a log file. How do I do that?
    I'm using GlassFish if it matters

    If you want to see SQL query that is generated from JPQL in GlassFish console you should do following:
    Log on admin console.
    Select 'Application Server' from tree, then select Logging tab and Log Levels sub-tab.
    Log level for 'Persistence' must be set to FINE or level with more verbosity.

Maybe you are looking for