Doc number problem

Hi Experts,
I created a purchase order and when i create (Post) item reciept (MIGO) it ask me that
<b>Incorrect doc.no.: $       1. Select document number between 3000000000 and 5000050000</b>
Message no. F5151
It has to be mentioned that i put an interval from 3000000000 to 5000050000 againt 50 in acounting document range screen.
Please tell me where i am doing wrong.
Thanks
Usman Rana

Hi,
Thanks for the reply, its r/3 and i am using transection MIGO and i didnt enter anysort of range for GR, i just add a range on the number 50 (as discribe in the error report) from 3000000000 to 5000050000. if there is a range for GR is missing please tell me where to add it and what is the number (50)(i assume that number is a indicator for the range type, am i write?). And how to enter invoice range and where to define internal or external range, if it is required.
Thanks
Usman Rana

Similar Messages

  • How  to  look for  fi doc  number in cj88

    HI  expert:
          when I  run cj88.   the system generate FI  doc number.   how to look for FI doc number.
    can you tell me !
    thank you !!!!

    Hi,
    You can see the FI Doc. thru' given instruction
    Go to T-code CJI3 then fillup the WBS no. in which you want to see the Settlement document.
    Execute then filter up document type AA  double click on this & click on FI document.
    Hope it will solve your problem.
    Regards,
    Vishal Kr. Sharma

  • Aperture 2 install - serial number problem

    Disclaimer: I'm pretty good on a pc. Absolutely terrible on Mac, never had so many problems with tech :/
    So...I have my serial number from the back of the Aperture 2 "Installing your software" booklet. Checked that I'm entering "I's" not "1's." Got dashed between the sequences. Capslock on etc. Searched forum, quite a few posts on serial number problems. None matched.
    Enter serial number. Second window pops up stating I've entered an upgrade serial number (I only have the expired trial version of Aperture installed), and requesting my "serial number."
    I'm lost now. Checked my original docs, there's nothing on Aperture trial version. Fired up the trial and I see what looks like a license key (to Apple, not me) on the launch screen. That's not accepted by Aperture 2.
    Any thoughts on this appreciated.

    M_Austin wrote:
    Thanks, think you solved this Wish the label said something like that, the box only says Aperture 2, not upgrade license. So I'm guessing I have to pay $199, and keep this $99 package to upgrade it? I hope not. I'll ask at the store.
    There is a tiny label on the bottom edge of the box. Mine says "Aperture 2.0 Retail". The tiny label on my box for Final Cut Express 4 says "Final Cut Express 4.0 UPG". Does yours not say "UPG" on that little label? If not, you should be able to return it for the full version (plus pay the difference, of course). If it does say "UPG" you might be out of luck as most open software can't be returned.

  • CO-doc. number assignment not possible for bus.trans. COIN in CO area 1000

    Hi,
    CO-doc. number assignment not possible for bus.trans. COIN in CO area 1000
    i saw someone wrote ( as below )
    Go to KANK,select the COIN and then click on Primary posting and save it now COIN is in primary posting then you create your ni range
    when i go into KANK i dont see any Primary posting
    when i click on the Maintain Group pushbutton (F6) i do see lots of check box but no Primary posting
    can someone guide me steps to get rid of this error
    points will be awarded even if the solution dont solve my problem
    thanks
    guanwei

    hi
    goto kank
    select edit group
    goto insert group and give group name
    goto insert interval
    tick group
    then select COIN
    then assign that element
    regards,
    sreekanth

  • Sales doc number?

    hi
    can i keep sales doc number in key fields or data fields in DSO?
    in data fields generally K.F and unique character also.
    in key fields we keep characters only.
    regards
    suneel.

    Hi Sunil,
    you can put the sales doc number (EBELN)
    in key filelds ,because which is the uniqe in the sales data.
    Regards
    Krishna Reddy

  • Link from Accounting Doc Number to PO

    Hi,
    In FBL3n certain doc types PO number is not updating.Using assignmnets i want to update the field for these kind of doc no.
    My doubt is from FI doc number how can i link it to the PO number.
    Eg:i have an FI doc number say 51000000 which has two line items and corrponding 3 tax line items each .(ie 9 lines for the same in FBL3N).How can i link that my tax line items corrspond to which line item.
    Hope my question is clear.Please suggest.

    Hello,
    Generally the FI doc created from an PO Invoice have:
    BKPF-AWTYP = 'RMRP'.
    You can goto RSEG from BKPF using:
    RSEG-BELNR = BKPF-AWKEY+0(10)
    RSEG-GJHAR = BKPF-AWKEY+10(4)
    In RSEG, you have the PO details in RSEG-EBELN & RSEG-EBELP.
    BR,
    Suhas

  • Extracting doc number information from dox saved in DMS

    Hello,
    I'm wanting to have a macro written that will put a document id into the
    footer of saved documents when the appropriate button is pushed.
    I know I can use the standard Word "Insert | Autotext | Header/Footer |
    Filename or Filename and path but when I do that, I get something like
    this:
    ::ODMAGRPWISEDOMAIN_AUS_DOM.POSTOFFICE_AUS_PO.Offi ce Administration:9055.1
    whereas the powers-that-be want something like this:
    OA:9055.1
    and nothing else. (The "OA" bit is the short version of Office
    Administration)
    I have a developer who thinks he may be able to pull this together, but he
    has posed this question:
    Is there a way to retrieve the profile information from Groupwise for a
    document that is currently open on screen?
    Using GW7, SP2 on NetWare 6.5, SP6.
    TIA,
    Catherine

    I think if you insert the filename with the option to include the path name,
    you will get the ODMA string with the doc number at the end (assuming the
    document has been saved and already has been assigned a doc number). Can
    you parse that somehow? I did this a long time ago in WP but not Word.
    Seems to me you should be able to record a macro to do that.
    "Catherine" <[email protected]> wrote in message
    news:D11Ri.13735$[email protected]. .
    > No, we can't get anything at the moment (unless we type it in the footer
    > of the document manually...using a keyboard.....ooh, manual labour!). We
    > can see what we want to get on the profile screen of a document's
    > properties when the document is open - but we don't know how to go about
    > getting that information so it can be plonked into the footer of a
    > document in Word. So the question is: Can you retrieve the profile
    > information from Groupwise for a document that is currently open on
    > screen?
    >
    > Confused? Yeah, me too!
    >
    > It's beginning to sound a bit too hard....
    >
    > Cheers,
    > Cat
    >
    >
    >
    > Dave Parkes wrote:
    >> I'm missing something here, you want
    >>
    >> OA:2870.1
    >>
    >> and you can get
    >>
    >> 2870-1.doc
    >>
    >> so, after juggling the current filename, you'd get what you want,
    >> wouldn't you ?
    >>
    >> Cheers Dave
    >>

  • How to find out SD billing doc # using accounting doc number ?

    Hi Experts,
    Using accounting doc tables such as BKPF , BSEG and BSID , I need to find out respective SD billing doc no when I have accounting doc number.
    The issue is I cannot use either 'reference number' or assignment number' because the same numbers are not flowing to accounting doc from SD ( enabled by a enhacement ).
    Regards
    Mahesh.

    Hi,
    In BKPF : AWKEY / XBLNR  with these fields we can identify the SD billing document number.
    In BSEG table VBELN field is Billing document number
    Or
    Goto T.Code FB03 enter the accounting document number,company code and fiscal year and press enter.
    select the line and choose details, choose addtional data tab, here we can see the billing document number.
    Regards,
    Chandrasekhar.S

  • GL Line Items and PO Doc Number

    Hi, I'm caught in a world unknown to me, i.e. R/3 world.
    We are using 0FI_GL_4 and have a report called GL Detail.
    I have been asked to enhance the reports functionality to include a PO doc Number.
    I guess thats coming from MM side?
    We also have 2LIS_02_ITM in BW.
    My question, could I extend 0FI_GL_4 to include PO Doc Number? Or could I just have an InfoSet in BW to combine the Purhcasing Data ODS and GL ODS? I mean would it make functional and logical sense?
    Any guidance would be appreciated.
    Thanks,
    Frank

    Frank,
    I understand from your post that you want to have both Fi_Gl and PO combined information ? Am i right.
    I have recently implemented the same recently which is working fine.
    1. Enhance the Fi_Gl for Purchase doc , item and required.Since they originate from BSEG just add the fields to CI_BSIS structure.you will get the PO data.
    2. Now pull the purchase order item level data using 2lis_02_itm extractor.
    3.Pull FI_Gl_4 into one ODS say Fi_Gl_4
    4. Pull Purchasing data into PUR_t01
    5.Now enhance the communication structure of FI_Gl_4 with the purchasing order fields. i.e /BIC/CS8FI_GL_4 in the below code.
    6.Create an ODS with combined fields from purchasing and FI_Gl into another ODS.
    7.Create an Update rule from Fi_Gl_4 to the new ODS and in the update rule lookup the activate table of purchase order ODS and read the values into new ODS.
    8.For your reference i am attaching the start routine that i have written
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    TABLES : /BIC/APUR_T0200,
             /BIC/AFI_GL_400.
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS8FI_GL_4.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
      DATA: BEGIN OF DATA_PACK OCCURS 0.
              INCLUDE STRUCTURE /BIC/CS8FI_GL_4.
      DATA: END OF DATA_PACK.
      DATA:L_INDEX LIKE SY-TABIX,
           S_INDEX LIKE SY-TABIX,
           T_INDEX LIKE SY-TABIX,
           WA_VENDOR LIKE /BIC/APUR_T0200-VENDOR.
      DATA : BEGIN OF IT_PURCHASE OCCURS 0,
               /BIC/ZPUR_DOC    LIKE /BIC/APUR_T0200-DOC_NUM,
               /BIC/ZPUR_ITM    LIKE /BIC/APUR_T0200-/BIC/ZPUR_ITM,
               VENDOR           LIKE /BIC/APUR_T0200-VENDOR,
               MATERIAL         LIKE /BIC/APUR_T0200-MATERIAL,
               MATL_GROUP       LIKE /BIC/APUR_T0200-MATL_GROUP,
               PURCH_ORG        LIKE /BIC/APUR_T0200-PURCH_ORG,
               PUR_GROUP        LIKE /BIC/APUR_T0200-PUR_GROUP,
               DOCTYPE          LIKE /BIC/APUR_T0200-DOCTYPE,
               DOC_CAT          LIKE /BIC/APUR_T0200-DOC_CAT,
               /BIC/ZKNTTP       LIKE /BIC/APUR_T0200-/BIC/ZKNTTP,
             END OF IT_PURCHASE.
      RANGES: R_BLART   FOR /BIC/CS8FI_GL_4-AC_DOC_TYP.
    Fill in the Accounting Document Type
      R_BLART-SIGN = 'I'.
      R_BLART-OPTION = 'EQ'.
      R_BLART-LOW = 'KG'.
      APPEND R_BLART.
      R_BLART-SIGN = 'I'.
      R_BLART-OPTION = 'EQ'.
      R_BLART-LOW = 'KR'.
      APPEND R_BLART.
      R_BLART-SIGN = 'I'.
      R_BLART-OPTION = 'EQ'.
      R_BLART-LOW = 'RE'.
      APPEND R_BLART.
      CLEAR L_INDEX.
      REFRESH DATA_PACK.
      DATA_PACK[] = DATA_PACKAGE[].
    Consider only if acc doc type is RE KG and KR
      LOOP AT DATA_PACK.
        L_INDEX = SY-TABIX.
        IF DATA_PACK-AC_DOC_TYP IN R_BLART.
          CONTINUE.
        ELSE.
          DELETE DATA_PACK INDEX L_INDEX.
        ENDIF.
      ENDLOOP.
      CLEAR S_INDEX.
    Consider only if account  type S
      LOOP AT DATA_PACK.
        S_INDEX = SY-TABIX.
        IF DATA_PACK-ACCT_TYPE  EQ 'S'.
          CONTINUE.
        ELSE.
          DELETE DATA_PACK INDEX S_INDEX.
        ENDIF.
      ENDLOOP.
      SELECT DOC_NUM /BIC/ZPUR_ITM VENDOR MATERIAL MATL_GROUP
               PURCH_ORG PUR_GROUP DOCTYPE DOC_CAT
               /BIC/ZKNTTP
               FROM /BIC/APUR_T0200
               INTO TABLE IT_PURCHASE
               FOR ALL ENTRIES IN DATA_PACK
               WHERE DOC_NUM       = DATA_PACK-/BIC/ZPUR_DOC
                 AND /BIC/ZPUR_ITM = DATA_PACK-/BIC/ZPUR_ITM.
      SORT IT_PURCHASE BY /BIC/ZPUR_DOC /BIC/ZPUR_ITM.
      LOOP AT DATA_PACK.
        T_INDEX = SY-TABIX.
        IF DATA_PACK-VENDOR IS INITIAL.
          SELECT SINGLE VENDOR INTO WA_VENDOR
                 FROM /BIC/AFI_GL_400
                 WHERE COMP_CODE = DATA_PACK-COMP_CODE
                 AND   AC_DOC_NO = DATA_PACK-AC_DOC_NO
                 AND   FISCPER   = DATA_PACK-FISCPER
                 AND   FISCVARNT = DATA_PACK-FISCVARNT
                 AND   ACCT_TYPE  EQ 'K'.
          IF SY-SUBRC EQ 0.
            MOVE WA_VENDOR TO DATA_PACK-VENDOR.
            MODIFY DATA_PACK INDEX T_INDEX.
            CLEAR WA_VENDOR.
          ENDIF.
        ENDIF.
        IF DATA_PACK-/BIC/ZPUR_DOC IS INITIAL.
          CONTINUE.
        ELSE.
    READ TABLE IT_PURCHASE WITH KEY /BIC/ZPUR_DOC = DATA_PACK-/BIC/ZPUR_DOC
                                   /BIC/ZPUR_ITM = DATA_PACK-/BIC/ZPUR_ITM
                                   BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            MOVE:  IT_PURCHASE-MATERIAL    TO DATA_PACK-MATERIAL,
                   IT_PURCHASE-MATL_GROUP  TO DATA_PACK-MATL_GROUP,
                   IT_PURCHASE-PURCH_ORG   TO DATA_PACK-PURCH_ORG,
                   IT_PURCHASE-PUR_GROUP   TO DATA_PACK-PUR_GROUP,
                   IT_PURCHASE-DOCTYPE     TO DATA_PACK-DOCTYPE,
                   IT_PURCHASE-DOC_CAT     TO DATA_PACK-DOC_CAT,
                   IT_PURCHASE-/BIC/ZKNTTP TO DATA_PACK-/BIC/ZKNTTP.
            IF DATA_PACK-VENDOR IS INITIAL.
              MOVE IT_PURCHASE-VENDOR TO DATA_PACK-VENDOR.
            ENDIF.
            MODIFY DATA_PACK TRANSPORTING VENDOR MATERIAL MATL_GROUP
                                          PURCH_ORG PUR_GROUP DOCTYPE
                                          DOC_CAT /BIC/ZKNTTP.
          ENDIF.
        ENDIF.
      ENDLOOP.
      REFRESH DATA_PACKAGE.
      DATA_PACKAGE[] = DATA_PACK[].
      FREE : DATA_PACK , IT_PURCHASE.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    if you have any other isues do let me know.
    Regards
    Sundaresan
    Message was edited by: sundaresan chander
    Message was edited by: sundaresan chander

  • Restrict selection from LDB 'DDF' based on FI Doc number(BELNR)?

    Hi all,
    I am trying to restrict selection from LDB 'DDF' based on FI Doc number(BELNR).
    Even if i pass only one document number in selection-screen, the program is still printing lot of documents?
    Where I am going wrong?
    *& Report  ZSUB_READ_LDB
    REPORT  ZSUB_READ_LDB.
    DATA wa_BSEG TYPE BSEG.
    SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
    DATA: callback TYPE TABLE OF ldbcb,
    callback_wa LIKE LINE OF callback.
    DATA: seltab TYPE TABLE OF rsparams,
    seltab_wa LIKE LINE OF seltab.
    callback_wa-ldbnode = 'BSEG'.
    callback_wa-get = 'X'.
    callback_wa-get_late = 'X'.
    callback_wa-cb_prog = sy-repid.
    callback_wa-cb_form = 'CALLBACK_BSEG'.
    APPEND callback_wa TO callback.
    CLEAR callback_wa.
    seltab_wa-kind = 'S'.
    seltab_wa-selname = 'BELNR'.
    LOOP AT s_BELNR.
      MOVE-CORRESPONDING s_BELNR TO seltab_wa.
      APPEND seltab_wa TO seltab.
    ENDLOOP.
    CALL FUNCTION 'LDB_PROCESS'
      EXPORTING
        ldbname                     = 'DDF'
        variant                     = ' '
      TABLES
        callback                    = callback
        selections                  = seltab
      EXCEPTIONS
        ldb_not_reentrant           = 1
        ldb_incorrect               = 2
        ldb_already_running         = 3
        ldb_error                   = 4
        ldb_selections_error        = 5
        ldb_selections_not_accepted = 6
        variant_not_existent        = 7
        variant_obsolete            = 8
        variant_error               = 9
        free_selections_error       = 10
        callback_no_event           = 11
        callback_node_duplicate     = 12
        OTHERS                      = 13.
    IF sy-subrc ne 0.
      WRITE: 'Exception with SY-SUBRC', sy-subrc.
    ENDIF.
    *&      Form  CALLBACK_BSEG
          text
         -->NAME       text
         -->WA         text
         -->EVT        text
         -->CHECK      text
    FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
    wa TYPE BSEG
    evt TYPE c
    check TYPE c.
      CASE evt.
        WHEN 'G'.
          WRITE: / wa-BELNR.
          ULINE.
        WHEN 'L'.
          ULINE.
      ENDCASE.
    ENDFORM.                    "CALLBACK_BSEG

    Hi Andreas,
    I have included bukrs and gjahr too...but if I input only one invoice number the report is printing a lot of invoices.
    Not sure from where the data is being picked up?
    Sorry of poor formatting of code.
    Thanks ,
    Subba
    *& Report  ZSUB_READ_LDB
    REPORT  ZSUB_READ_LDB.
    TYPE-POOLS: RSDS, RSFS.
    DATA wa_BSEG TYPE BSEG.
    SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
    SELECT-OPTIONS s_BUKRS FOR wa_BSEG-BELNR.
    SELECT-OPTIONS s_GJAHR FOR wa_BSEG-BELNR.
    DATA: callback TYPE TABLE OF ldbcb,
    callback_wa LIKE LINE OF callback.
    DATA: seltab TYPE TABLE OF rsparams,
    seltab_wa LIKE LINE OF seltab.
    DATA: TEXPR TYPE RSDS_TEXPR,
    FSEL TYPE RSFS_FIELDS.
    start-of-selection.
      callback_wa-ldbnode = 'BSEG'.
      callback_wa-get = 'X'.
    callback_wa-get_late = 'X'.
      callback_wa-cb_prog = sy-repid.
      callback_wa-cb_form = 'CALLBACK_BSEG'.
      APPEND callback_wa TO callback.
      CLEAR callback_wa.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'BELNR'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_BELNR TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'BUKRS'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_BUKRS TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'GJAHR'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_GJAHR TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      CALL FUNCTION 'LDB_PROCESS'
        EXPORTING
          ldbname                     = 'DDF'
          variant                     = ' '
          EXPRESSIONS                 = TEXPR
          FIELD_SELECTION             = FSEL
        TABLES
          callback                    = callback
          selections                  = seltab
        EXCEPTIONS
          ldb_not_reentrant           = 1
          ldb_incorrect               = 2
          ldb_already_running         = 3
          ldb_error                   = 4
          ldb_selections_error        = 5
          ldb_selections_not_accepted = 6
          variant_not_existent        = 7
          variant_obsolete            = 8
          variant_error               = 9
          free_selections_error       = 10
          callback_no_event           = 11
          callback_node_duplicate     = 12
          OTHERS                      = 13.
      IF sy-subrc ne 0.
        WRITE: 'Exception with SY-SUBRC', sy-subrc.
      ENDIF.
    *&      Form  CALLBACK_BSEG
          text
         -->NAME       text
         -->WA         text
         -->EVT        text
         -->CHECK      text
    FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
    wa TYPE BSEG
    evt TYPE c
    check TYPE c.
      CASE evt.
        WHEN 'G'.
          WRITE: / wa-BELNR.
          ULINE.
        WHEN 'L'.
          ULINE.
      ENDCASE.
    ENDFORM.                    "CALLBACK_BSEG

  • Based on single Doc number Multiple line items update to in single Z database table

    Dear Frds,
    Based on single Doc number Multiple line items update to database table
    Example : Doc Num: Janu
    If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
    Like CS01 Transaction

    Dear Frds,
    Based on single Doc number Multiple line items update to database table
    Example : Doc Num: Janu
    If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
    Like CS01 Transaction

  • Document number and reference doc number

    Hi All,
    When i post a invoice through F-22 i get a document number.
    1: Is this doc. number also called invoice number
    2: What is reference document number (XBLNR field). From where does it get its value
    What's the use of this reference doc. number and how different it is from doc. number
    Thanks in advance,
    Prashanth

    hey,
    1. It is the invoice no.
    2. The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number.
    Ex; Vendor send the invoice and it has a no. on it. You can use that no as document no and/or reference no when posting in the system. So when you do a search it is easy to pull the invoice based in this no.
    Hope this helps.
    Assign points if helpful

  • Doc.Number & Accounting Document number

    Dear All.
    In FBCJ, there is a column called "Doc.Number" & its technical info is "table name : ISCJ_E_POSTINGS" , "field name :D_POSTING_NUMB".
    This is the number which gets printed on the cash receipt.
    Now we need a report showing this doc.number as well as the accounting document number.
    Please advise.
    Thanks
    sunil.

    Hi, Did not fulfil the requirement, thanks for the suggestion, please advise any other option.

  • Settlement doc number & wbs element relationship table

    Hello,
    I am trying to find any tables which can help me get the settlement doc number and wbs element relationship.  Presently I am using table AUAA and here is my select for that:
    SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa
                        WHERE emtyp = 'PR'
                        AND bukrs IN p_bukrs
                        AND kokrs IN p_kokrs.
    since I do not have "belnr"(the primary key) it is taking too long to get this info.....any one has any idea of any other tables to get this information or a bapi?
    appreciate the help
    AS

    Hi all,
    thanks for all the help and support on this...I found a way to get all the CO settlement doc numbers for a project and their relationship as sender and receiver.....
    first  i went to anla and anek to get the AUC and the wbs settling to this AUC relatiionship...once i got my main wbs element...i found all the wbses for this project.
    I need to use the table AUAK, AUFK, and AUAA to get all that information.  I got all my wbses for a project first....than I went to table AUAK with all these wbses...and found the belnr(settlement doc numbers)....this table does not give out complete settlement doc numbers for wbses....we need to go back to AUAK with the internal orders to get the belnrs for them as well....so to get all the internal orders for a project i went to AUFK....than i took these orders and went back AUAK with these orders and got my missing belnrs....
    now I had all my belnrs for a project....so i went to table AUAA and did the select with these belnr...and since now i have the primary key the access is lighting fast....by doing that select i got all my relationship, i mean which settlement is goind where...
    mind you that I used AUAS to get the sender/receiver relationship with the amount....this is as well a cluster table but we have the primary key belnr(co settlement doc. numbers)...so no worries to get the data here as well....
    here are my selects for AUAK, AUFK and AUAA....
    TYPES: BEGIN OF prps_ty,
            psphi TYPE prps-psphi,
            END OF prps_ty.
            DATA all_proj TYPE STANDARD TABLE OF prps_ty.
            DATA wa_all_proj TYPE prps_ty.
    TYPES: BEGIN OF objnr_ty,
               objnr TYPE auak-objnr,
               END OF objnr_ty.
    DATA lo_p_psp TYPE STANDARD TABLE OF objnr_ty.
    IF all_proj IS NOT INITIAL.
              SELECT objnr FROM prps INTO TABLE lo_p_psp FOR ALL ENTRIES IN all_proj
              WHERE
              psphi = all_proj-psphi.
            ENDIF.
    IF lo_p_psp IS NOT INITIAL.
              SELECT belnr objnr FROM auak INTO TABLE tab_auak FOR ALL ENTRIES IN lo_p_psp
              WHERE
              kokrs IN p_kokrs
              AND gjahr IN p_gjahr
              AND objnr = lo_p_psp-objnr
    *        AND objnr LIKE 'PR%'.
            SORT tab_auak BY belnr.
            DELETE ADJACENT DUPLICATES FROM tab_auak COMPARING belnr.
    SELECT aufnr objnr pspel FROM aufk INTO TABLE tab_aufk FOR ALL ENTRIES IN lo_p_psp
              WHERE
              bukrs IN p_bukrs
              AND kokrs IN p_kokrs
              AND pspel = lo_p_psp-objnr.
            ENDIF.
    *get the belnrs for orders---this part is very important or we miss out all the belnrs for I/O...
            IF tab_aufk IS NOT INITIAL.
              SELECT belnr objnr FROM auak INTO TABLE tab_auak2
              FOR ALL ENTRIES IN tab_aufk
              WHERE
              kokrs IN p_kokrs
              AND gjahr IN p_gjahr
              AND objnr = tab_aufk-objnr.
            ENDIF.
    *append these new belnrs to tab_auak
            LOOP AT tab_auak2 INTO wa_tab_auak2.
    *              CONCATENATE 'PR' wa_tab_aufk-pspel INTO wa_tab_auak2-objnr.
              APPEND wa_tab_auak2 TO tab_auak.
            ENDLOOP.
            SORT tab_auak. "by belnr.
            DELETE ADJACENT DUPLICATES FROM tab_auak.
    *now get all the belnrs for this project...complete list....
            IF tab_auak IS NOT INITIAL.
              SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa
                       FOR ALL ENTRIES IN tab_auak
    *            WHERE pspnr = wa_wbs-posnr
                                     WHERE
                                     belnr = tab_auak-belnr
                                     AND emtyp = 'PR'
                                     AND bukrs IN p_bukrs
                                     AND kokrs IN p_kokrs.
            ENDIF.
            SORT tab_auaa BY pspnr belnr.
    I used our own indexes for all the transparent table accesses.... to speed up the process...you might want to create your own indexes depending on the where clauses for transparent tables.....
    well thanks again..and hope all this will help someone else too....
    AS...
    Edited by: J Are on Oct 31, 2009 1:19 PM

  • Config Setup for mapping Material Slip number to Ref Doc Number in FI Doc

    Hi,
    We have a scenario where, when a GI/GR is done a Material Document gets generated and the Accounting Document will get generated from the Material Document Number. The Reference Doc number is being populated with the Delivery Number ( which is the same as the Material Slip Number) when it is the case with a Goods Issue. I would like to know where can we configure the setup for the populating the Reference document number in FI when a material document is posted.
    Thanks!!
    ChK

    Dear Bill Hooper,
    Maintain copy control settings for both OR to LF & LF to F2 i.e in VTLA & VTFL.
    And check switch 'copy item no.
    Ravvi'

Maybe you are looking for

  • Droid RAZR MAXX HD  won't download MSS unless wi-fi is off. Help please.

    I have the most recent software update. My data plan is on.  When I receive a picture message, it will show up and say it is downloading, but it will never actually download unless I am not connected to wifi or wifi is off. I have tried deleting the

  • PLD: How to keep fields together

    Hi @ all, i have a problem using the pld. in the end of report i have 5 fields, that should stay together. but sometimes the fields get divided to another page. how can i keep the fields together, so that they will be printed on the next page if on t

  • Httpd.conf

    Can anybody publish httpd.conf from FMS installation? I have clear check from apache when install FMS

  • Finding table name from field

    Hi, I have a field name. Now i want to find to which table this field belongs to. eg: I have field MATNR. Now in my program i want to find to which table this field belongs to. How can this be done? Points will be rewarded!! regards, Ashish Gupta

  • File--JDBC(Synch)--File

    Hi All: How we can acheive FileJDBC(Synch call)File without using BPM? Your valuable answers will helpful and rewarded with points:) Thanks Abid