Unable to capture fi document number using transaction ABUMN

hello guys,
I am trying to create a bdc for transsaction ABUMN which generates a fi document at the end.
but in BDC the bdcmsgcoll table is empty.
is there any way so that i can capture document number as soon as it is posted.
Please help, Thanks in advance.
Thanks & Regards,
Deepak.

can you run your BDC after call transaction method  if you get success message based  on your input  values, then   goto the document tables and pick that values  and pass the success message.
CALL TRANSACTION tcode USING gi_bdcdata                "#EC CI_CALLTA
                   MODE   gv_ctumode
                   UPDATE gc_cupdate
                   MESSAGES INTO gt_messtab.
  l_subrc = sy-subrc.
  IF sy-subrc <> 0.
    WRITE: / 'CALL_TRANSACTION',
             tcode,
             'returncode:',
             l_subrc,
             'RECORD:',
             sy-index.
    LOOP AT gt_messtab INTO gwa_messtab WHERE msgtyp = 'S'.
      CLEAR lwa_t100.
      SELECT SINGLE * FROM t100 INTO lwa_t100  WHERE sprsl = gwa_messtab-msgspra
                                AND            arbgb = gwa_messtab-msgid
                                AND            msgnr = gwa_messtab-msgnr.
      IF sy-subrc = 0.
        l_mstring = lwa_t100-text.
        IF l_mstring CS '&1'.
          REPLACE '&1' WITH gwa_messtab-msgv1 INTO l_mstring.
          REPLACE '&2' WITH gwa_messtab-msgv2 INTO l_mstring.
          REPLACE '&3' WITH gwa_messtab-msgv3 INTO l_mstring.
          REPLACE '&4' WITH gwa_messtab-msgv4 INTO l_mstring.
        ELSE.
          REPLACE '&' WITH gwa_messtab-msgv1 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv2 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv3 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv4 INTO l_mstring.
        ENDIF.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = gwa_messtab-msgid
            lang      = sy-langu
            no        = gwa_messtab-msgnr
            v1        = gwa_messtab-msgv1
            v2        = gwa_messtab-msgv2
            v3        = gwa_messtab-msgv3
            v4        = gwa_messtab-msgv4
          IMPORTING
            msg       = l_mstring
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CONDENSE l_mstring.
        IF NOT l_mstring IS INITIAL.
          WRITE: / gwa_messtab-msgtyp, l_mstring(250).
          MESSAGE l_mstring TYPE 'I'.
        ENDIF.
      ELSE.
        WRITE: / gwa_messtab.
      ENDIF.
ENDIF.
    ENDLOOP.
    READ TABLE gt_messtab INTO gwa_messtab WITH KEY msgtyp = 'S'.
    IF sy-subrc NE 0.
      MESSAGE s069(msg class)
    ENDIF..

Similar Messages

  • AR AUTOINVOICE ignores the checked box "copy document number to transaction

    dear ,
    AR AUTOINVOICE ignores the checked box "copy document number to transaction number"
    I setup the batch source as check "copy document number to transaction number" but when
    I import the invoice by auto invoice I found the transaction number is 2 and
    the document number is 1
    That mean the system ignore the check box in definition of batch "copy document number to transaction number"
    Facts: Navigate -> Setup -> Transactions -> Sources
    Setup Transaction Source with Automatic Transaction Numbering checked and Copy Document Sequence Number to
    Transaction Number checked.
    Navigate - > setup -> system option  tab (transaction & customer)
    Document number generation level: when completed
    Expected Behavior:
    The Expected Behavior is that when I checked the "copy document number to transaction number" in definition of the source
    AR Auto Invoicing must assign the document number to transaction number
    Business impacts :
    There is gaps with the sequence number for the invoice that not accepted from the finance auditor in the last of the year
    thanks

    check have u performed these steps or not.
    you have to do all the necesarry set up steps:
    1) Enable the Sequential Numbering Profile Option
    2) Enable the AR: Document Number Generation Level Profile Option
    3) Check Copy Document Number to Transaction Number box on Transaction Sources
    4) Define Sequences
    5) Assign Sequences to Categories
    In batch source definition for your invoice, there is a flag for 'copy doc num to trx num'. is it ticked?

  • To capture customer # while creating using  transaction XD01

    Hello..Requirement is to capture 'Sold-To' customer # which gets generated internally by SAP. I tried exit 'EXIT_SAPMF02D_001' but not successful. I am using transaction 'XD01' to create 'Sold-to' customer and I need to capture internally generated customer # before KNA1 gets updated.
    PLEASE ADVISE!.
    THANKING YOU IN ADVANCE!.
    FELLOW ABAPER.

    Normally the number is generated internally. This updates KNA1. For what purpose ru trying to use it. If u want to check it u will not be able to it. But, when u try to save it, u can check it using the corresponding user exit and use it internally for ur purpose. I dont exactly remember the user exit for save, but u can use it in it.
    Pl. reward points if this is what u needed.

  • KE30 report - Unable to see billing document number

    Dear SAP community
    I have a requirement to be able to show the billing document number in a KE30 report.
    Background as follows:
    Sales order created, delivery is created, stock is picked and transferred and delivered, post goods isssue and invoice created to produce the accounting documents.
    The requirement is to show a report which is broken down by sales order and then further drilldown to things like cost centre and billing document numbers.. On running the report, no billing document number is shown.
    I have created a custom characteristic called WWINV in KEA5 using data element VBLEN_VF, Domain VBLEN, check table VBUK.
    WWINV is then assigned to the operating concern (op concern regenerated).
    Next step I created a lookup in KEDR
    Source fields:
    Origin        Field Name    Name                                    Assigned   Origin       Field Name     Name            
    VBRP        VBELN          Billing Document                    =                CO-PA    KAUFN            Sales Document
    VBRP         POSNR         Billing Item                             =                 CO-PA   KDPOS             item number
    Target Fields:
    VBRP        VBELV         Originating Document           =                  CO-PA   WWINV            Billing Doc

    Message" no. DS 016.
    For the above error, you can check note 312392
    thanks
    G. Lakshmipathi

  • Error while Reversal of Accrual/ reversal document number using F.81

    The document that has been created using FBS1 has to be reversed using F.81. However this doc does not get reversed and it comes under Documents that cannot be reversed heading.
    This is the error: KI 806: Transaction CO through-postings from FI has been locked
    Can someone please throw some light on this.
    Regards,
    Rock

    Dear Rock,
    What I understood is that FI period is closed.
    1. If possible Open the Period for which Reversal Doc needs to be posted
    OR
    2.  Open Accrual Document in Header data, Enter Reversal date of current month and then try posting.
    Hope this should work.
    Regards
    Velu Mudaliar

  • BAPI to reverse a Document posted using transaction FB50 in ECC5.0

    Hi All,
    We have a requirement to reverse the document that is posted using the transaction FB50.We found the below BAPIu2019s for this requirement:
    BAPI_ACC_DOCUMENT_REV_CHECK
    BAPI_ACC_DOCUMENT_REV_POST
    While trying to execute them, we are getting the error message u201C It cannot be postedu201D.
    Please let me know if anyone has worked on these BAPIu2019s or information on any other BAPIu2019s would be of great help.
    Regards
    Prathima

    check this link[Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST';

  • Unable to Capture SD DV Tape Using A HDV Source Camera

    I am using a Sony HDR-HC9 HDV Camera as the source deck for capturing and importing numerous DV cassettes into a Premiere Elements 10 project, some which are SD and others HD. In both cases Premiere recognizes/controls the camera  but will only display/capture the HD source material.  Would like to know what the correct Premiere setup settings should be in order to capture both the SD and HD material. As information I can capture SD DV cassettes in other programs (Roxio) but would prefer to capture in Premiere if possible.
    Thanks

    You need to set the camcorder to standard DV before the program will recognize the video from it as standard DV.
    I don't know exactly how to do that on a Sony. On a Canon, there's a DV Lock setting. But your camcorder has a similar switch.

  • Unable to load comma separated number using sqlldr

    Hi
    See the example below.
    I have problem in loading “bonus” into my emp table.
    Appreciate your help.
    Here I have appended the following.
    -     demo04.ctl – controfile
    -     demo04.dat – datafile
    -     demo04.log - logfile
    Error :
    ===============================
    Record 1: Rejected - Error on table EMP, column BONUS.
    ORA-01722: invalid number
    sqlldr userid=scott/tiger@orcl , control=demo04.ctl , log=demo04.log
    Create table emp
    Empno      number,
    Ename     varchar2(80),
    Sal     number(15,2),
    bonus      number
    cat demo04.ctl
    ==========================
    LOAD DATA
    INFILE 'demo04.dat'
    INTO TABLE emp
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    Empno INTEGER EXTERNAL,
    Ename ,
    Sal DECIMAL EXTERNAL,
    bonus DECIMAL EXTERNAL ????
    cat demo04.dat
    ==============================================
    "1000", "*XXX,XXXX", "9820.760000","3,395"
    "1001", "*XXX,XXXX", "9821.760000","88,883,395"
    cat demo04.log
    ============================
    SQL*Loader: Release 8.1.7.4.0 - Production on Fri Oct 13 17:58:31 2006
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Control File: demo04.ctl
    Data File: demo04.dat
    Bad File: demo04.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 65536 bytes
    Continuation: none specified
    Path used: Conventional
    Table EMP, loaded from every logical record.
    Insert option in effect for this table: INSERT
    Column Name Position Len Term Encl Datatype
    EMPNO FIRST * , O(") CHARACTER
    ENAME NEXT * , O(") CHARACTER
    SAL NEXT * , O(") CHARACTER
    BONUS NEXT * , O(") CHARACTER
    Record 1: Rejected - Error on table EMP, column BONUS.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table EMP, column BONUS.
    ORA-01722: invalid number
    Table EMP:
    0 Rows successfully loaded.
    2 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 65016 bytes(63 rows)
    Space allocated for memory besides bind array: 0 bytes
    Total logical records skipped: 0
    Total logical records read: 2
    Total logical records rejected: 2
    Total logical records discarded: 0
    Run began on Fri Oct 13 17:58:31 2006
    Run ended on Fri Oct 13 17:58:32 2006
    Elapsed time was: 00:00:01.14
    CPU time was: 00:00:00.05

    Try
    bonus CHAR "to_number(:bonus, '999G999G999')"

  • Delete generated document number of Transaction ABAVN

    Hi,
    My problem is that user run the BDC for ABAVN - Asset Retirement, inplace of F-92 BDC with correct file (means with F-92 flat file).
    After that system shows 1 generated number is 0100003616.
    How can i reverse/ delete this genertaed number. Because it's a wrong generated number.
    Regards,

    Dear
    AB08 is the T-code for reversal of asset document. Once you have given the asset number it will give you the list of documents posted on the said asset. Select the document you want to reverse and a new no. for reversal doc will be generated.
    Do the same for all the assets posted against the said document.

  • Want to use document number as the cheque number (without cheque management

    Dear All,
    During Automatic payment run - F110 I would like to use accounting document number as cheque number.
    Kindly suggest solution for the same.
    Thanks
    Prashant

    Hi Santosh,
    In this country Bank letters are issued as mode of payment. Unique sequence number is used to track the Bank letter. Since Accounting Document is Unique number I want to use the same.
    Kindly suggest the solution for capturing Accounting Document number instead of Cheque number.
    Or in other words I want to run F110 without maintaining cheque lot. Is it possible to make payment run without maintaining cheque lot number.
    Thanks
    Prashant

  • Receivables: Diferrence between "transaction number" and "document number"

    Hi!
    What is the difference between "transaction number" and "document number" as shown in the transactions window?
    Where are they used?
    thanks!

    Transaction number is the Invoice number. It can be a manually entered number in case of manual invoices. Even in case of imported invoices, it can be a manually assigned number if the trx_number field is populated in the ra_interface_lines_all table. If you Invoice batch source setup indicates automatic transaction numbering, the transaction (invoice) number will be automatically generated sequentially. The starting number is mentioned in the Trx batch source.
    The document number is a number which is generated by Document sequencing. To have the document number generated, you have to do few Doc sequencing setups like setting the 'Sequencial Numbering' profile options, creating document sequences and assigning the sequence to the Categories. The trx types are created as categories.
    The Transaction number can be the same as the document number if you enable the option 'Copy Document number to Transaction number' in the Invoice batch source.
    Hope that helps.
    Thanks,
    Anil

  • How a document number is Generated.

    Hi,
    When I park a document using FV60, how the document number is generated?
    I want to know the program name and function(subroutine) which will generate this number.
    If any one knows please let me know.
    It will be very helpful.
    Thank you in advance,
    With Regards,
    Vimal

    Hi Vimal,
    Try below logic!!!!!!
    Create your number range through transaction (SNRO / SNUM). Over there in the domain level pass the variable (say vbeln) and give your interval.
    Now in your report where you want to generate a new document number, use the FM NUMBER_GET_NEXT .
    DATA: l_no  TYPE inri-nrrangenr,
                l_obj TYPE inri-object    VALUE 'ZSDIDA'.
       CALL FUNCTION 'NUMBER_GET_NEXT'
         EXPORTING
           nr_range_nr             = l_no
           object                  = l_obj
         IMPORTING
           number                  = g_number
         EXCEPTIONS
           interval_not_found      = 1
           number_range_not_intern = 2
           object_not_found        = 3
           quantity_is_0           = 4
           quantity_is_not_1       = 5
           interval_overflow       = 6
           buffer_overflow         = 7
           OTHERS                  = 8.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    Over here l_no is the range sl no. & l_obj is the name of range which is created through transaction SNRO/SNUM.
    Hope this will help you to resolve the issue & close the thread.
    BR,
    Vinit

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • Cancelled Accounting Document Number(belnr)

    Hello Experts,
    I m developing a report in which i have to capture accounting document number which has been generated against the cancelled A/c document number.
    Is any field populated when the a/c doc num has been canceeled so that we can make out that this particular a/c doc num is for this particular cancelled a/c doc number..
    Thanks in advance.
    Ravi

    Hello all,
    In my report i want to fetch accounting document number as per date(posting date) entered by user.
    If suppose posting of particular doc(200000001) has been done on date 22.10.2008 and it is reversed(200000002) on 29.10.2008 and if user enter date in selection criteria 22.10.2008 200000001 document number should occur and if user enter 29.10.2008 200000002 document number should occur.
    Ravi

  • Document  number range

    Hi SAP Experts
    Is there any way to get the FI document number used alonwith document type and prefereable profit centre wise. for example we have 9 profit centre representing 9 locations. we want to know what are the document no. alongwith doc. type that has been utilised so far at each profit centre on a particular date.
    thanks & regards
    Rajesh thakur

    Hi,
    Use the report FAGLL03.
    Here in the dynamic selections, give the bwlo values:-
    (1) Field "Line Item" in "General Ledger -Line Item" section = 000001
    (2) Field "Profit Center" in "General Ledger -Line Item" section = As you want to check
    (3) Field "Document type" in "GL Account Line Item" section = Document types you want to check
    This will give you the needed output.
    On the output screen, you can change the layout, to show the relevant filters and to sort based on document type, profit center etc.
    (Also not that if the various profit centers are using the same doucment type, then for a particular profit center, document number might not be sequential and can contain the document numbers of other profit centers in between.)
    Regards,
    Gaurav

Maybe you are looking for

  • Database refreshmant

    at the time of refreshment, while creating the control file i got the following error

  • IPod 80 GB Classic will no longer connect to computer

    All these problems started yesterday afternoon. Earlier that morning, I had synched my iPod with a few new songs without any problems. Then, I wanted to add more that night and all of a sudden, the problems began. My iPod will no longer stay connecte

  • Recording from Cassette Is

    <SPAN>I have a up to date PCI Sound Blaster card with mini jacks. Trying to get that actual recording level or default level, when recording line-in from a cassette deck, or more precisely from a receiver that the deck in connected to. I know I have

  • Form text box problems please help???

    I am creating a form in adobe XI and am having some problems with a text field I am trying to get the text field to allow me to add multi-line text with rich text editing and I am unable with the setting I have checked. I have gone to properties for

  • Modifying document level features of OWA in SP2013?

    Hopefully someone can put me on the correct path or at least get me started. In SharePoint 2013 when I open a word document in OWA I have a ribbon or menu at the top with File, edit, etc. etc. Some of those features I want to display and some I want