RE:ABAP HR infotype 2001 document number

Hello All,
When we save a record in infotype 2001 (Absence) in Pa30 it creates internally a document  number.I wanted to know is there any Tcode where we can see this document number? I know the BAPI name but i want the tcode where we can see the document number. Please help me regarding this.
Thanks and Regards.
Salish.

Hi,
The document number generated for each record would get stored in the database table PA2001 under the field AWREF for that record.
Hope this helps.
Thanks,
Harini
Edited by: Harini Gopinath on Oct 20, 2009 6:17 PM

Similar Messages

  • DOubt ABAP HCM infotype 2001.

    Hi Gurus.
    I'm started a process in SAP portal to change pernr in infotype 2001 ,but it don´t worked (but is showed message ok ).
    In my rfc is called the 'HR_INFOTYPE_OPERATION' .
    I need understand ,why don´t worked.
    maybe could have any MP... program with wrong logic?
    what the programs MP to infotype 2001?
    You have any suggest for solution this case? thanks.

    Thanks for Reply Jozef.
    I guess I did not explain properly.
    I'm working with a HCM portal and I have a problem when I go to change the data for the time bank employee.
    If I change the field action (in my language is "acão") then it does not change and back to the value it was before.
    Then in debug it pass by 'HR_INFOTYPE_OPERATION' .
    I need undesrtand why don´t change de action of bank employee.
    I think could be a MP... program with z code like exit , but i need know how find it
    inside standard code of 'HR_INFOTYPE_OPERATION'.
    The parameters of HR_INFOTYPE_OPERATION' :
    infty = 2001
    number = 00029381
    subtype = 0599
    validityend = 20140801
    validitybegin = 20140801
    objectid = space
    lockindicator = space
    recordnumber = space
    record  - with structure with data
    operation = MOD

  • Infotype 2001 Record 00000000           000000000000000000000000000 does not exist Message no. PG225

    Hi,
    I am trying to  create a record in infotype 2001 but getting error
    Record 00000000           000000000000000000000000000 does not exist
    Message no. PG225
    This error not come before.  I have created many records for the last few months.
    Please suggest how to resolve.
    Regards,
    Pathi

    Hi Pathi,
    I guess this is because of Activity Allocation and Cost Assignment. Plz check the Number range assignment:
    PA05 for Number range assignment for additional time data
    PT12 for HR document posting
    Thanks'
    Gautam

  • In FBL5N report user wants the sales document number to be displayed,

    HI, Guys
    Need ur help to sort out the problem
    In FBL5N report user wants the sales document number to be displayed,
    but the sales ducument number column is coming blank and this needs to pick from VBRP table
    As I discussed with Abaper, he reqiures a key field which common in BSEG abd VBRP table
    So,Please guide me in approaching the right way
    Munender

    Hi,
        Speak with your SD consultant. They can set up the copy control in SD so that the sales order is populated in the invoice in field ZUONR (Assignment).This will then copy to the assignment field in accounting.
    Alternatively you can use an exit to populate another field during the Posting.
    Kind regards

  • Billing document and Excise invoice document number should be same

    Dear SD gurus
    kindly help me following client requirement
    in order to cash (domestic & Exports)
    and sto (intra and Inter plant to plant) scenarios the billing document number and excise invoices number should trigger  same number
    Example order- delivery- pgi- commercial invoice (VF01) --- billing document no.1234 here it should create automatically excise invoice no 1234
    in J1iin disply it show ref document no( billing document no: 1234.    & excise invoice no 1234

    Dear All,
    As per the standard it is not possible. But some times client says why two different numbers ranges we require same numbers ranges for both billing doc. & Excise invoice.
    Please go through the following link
    http://saptechsolutions.com/pdf/SDDocumentNumberRangeEnhancements.pdf
    Also check with the Abaper with explicit enhancement by maintaining the number range values in Custom table where we go when ever there is no option for(if client is not convincing) but which is not reccomandable but left out with no choice when client is demanding.
    Regards,
    S.Himavanth.

  • Need help abt Purchase order and material document number

    1)Is there any releation ship between Purchse order number and material document number?
    2) I found aBAPI to get the goods receipt details. That is BAPI_GOODSMVT_GETDETAIL. But it is excepting Material document number and material document year as input parameters.Is there any BAPI to get goods receipt details by using purchase order number?

    hi kiran
    check this thraed. this gives you relatinship between Purchse order number and material document number
    Retrieving Accounting Document number based on PO numbers
    BAPI to get goods receipt details by using purchase order number is
    BAPI_GOODSMVT_CREATE
    thanks
    Sachin

  • CO Extractor + FI Document Number

    Hi All,
    I have activated in CO 0CO_OM_CCA_9 extractor, the user told me that he neds the FI Document Number, i have checked the extractor and i did not find it, i just found "Reference Document Number" but this field not always bring the FI Document Number.
    So, my question is :
    Is there a way to get the FI Document Number without append this field with an abap routine?
    I REALLY APRECCIATE YOUR HELP !!
    THANKS IN ADVANCED

    This subject is also what I am analyzing now. It looks like maybe DS 0CO_OM_CCA_9 pulls from either table COEP or COVP. In which case they both have fields REFBN and AWORG. These two fields can also be found in the Special Ledger line items table (if it is configured, customer named xxxxxxxA).
    The field REFBN plus the first two characters of AWORG make up the 12 character FI-CA reconciliation key FIKEY found in DFKKOPK and definded in DFKKSUMC when this rec key is closed and the assigned FI-CA doc items are cleared.
    The Rec key is how you track from FI-CA documents to GL/FM/CO posting.
    I'm wondering does anybody know why and how the rec key is split out and truncated into REFBN and a "-0000001" number is added to the last two characters of the rec key in AWORG. Does putting it back together get you everything you need to track the flow across modules?
    Thanks for reading all this technical jargon...
    AJB

  • Document Number generation as per the client requirment

    Hi,
    I would like to generate the document no as per our client's document numbering logic. This is not available in standard.
    In additional data tab am collecting information from user (Characteristics values) to generate document number.
    E.G.
    I have 2 characteristics
    1. Part Type:
        Values: A - Type 1
                    B - Type 2
    2. Part Code:
        Values: 01- Part 1
                    02 - Part 2
                    03 - Part 3
    When am creating document am selecting Part Type = A & Part code = 02 so my document number is A-02. ("-" : constant).
    I am planning to use BADI "DOCUMENT_MAIN01" - method "ASSIGN_NUMBER".
    In this method how can i get the characteristics values which filled user on screen ? Is there any Function Module for that ?
    I tried Function Module "CTMS_DDB_CLOSE" but this is not released also this is not working in Easy DMS.
    Is there any other way i can take i/p from user to generate document number ?
    Regards,
    Sunny
    Edited by: Sunny on Sep 25, 2008 9:09 PM

    Hi Sunny,
    An experienced ABAPer can capture the required information from the sub screen(additional data) number (4000) and the subscreen program (SAPLCTMS). This data can be used  in the method of the BADI.
    Regards,
    T T Subudhi

  • Document number ranges changes

    Dear friends,
    While creating the document number ranges for current year, user wrongly changed the previous year number ranges, now it is giving new number ranges for new documents which are posted in previous year, how to reset the previous number ranges with out effecting the documents which are already posted.
    regards,

    Dear,
    It is the only way to insert a correct number rang to the current year, and change the document No which posted to previous year wrong  to the correct fiscal year. then correct the "current number" to the last one posted in previous year.
    But these corrections need necesary authorizations and ABAP knowledge.
    With Best Regards,
    Gladys xing

  • The A dso SALES Document number is equal to B dso sales document number the

    Hi All,
                         i have two dso's ( A&B).I CREATED B DSO With the reference of A dso. and i loaded the data to B DSO. All the loads were done.now i am planning to compare the records throug ABAP Program.in the abap progran i am plaaning to write
    this type of logic that is where the A dso SALES Document number is equal to B dso sales document number then data is need to capture.how can i write this type of logic.
    thanks & Regards,

    Hello
    Do you mean , in your ABAP reoprt, you need to show all records from dso A which are there in dso B?
    you may code on follwoing lines.
    itab_A like /bic/Adso_A00.
    itab_B like /bic/Adso_B00.
    itab_result like /bic/Adso_A00.
    select * from /bic/Adso_A00 into table itab_A
    select * from /bic/Adso_B00 into table itab_B
    loop at itab_A.
    read table itab_B where sales_docno = itab_A-sales_docno.
    if sy-subrc = 0.
    append itab_A into itab_result.
    endif.
    endloop.
    hope that helps!
    regards,
    sanjyot

  • Document number in SP01

    Hello Freinds,
    Could you please help me out for the below issue.
    My client requires document no to be appear in the transaction SP01.
    Say for ex: currently if we use tcode SP01 we get the fields like, Spool no, Type, user name, Date, Time, status etc
    In the same way can we accomidate the sales document / delivery document number in that row for easy identification of the document and trigger for print out.
    Or is ther any way to make the spool no as the document number in SP01
    Kindlyu help me in this regard.
    Regards,
    Ram.

    Hello,
    I don't think it is possible.
    Beause SAP assigns unique number to each Output Request & it is referred in future by that number itself.
    But user can display a particular Spool No. (on SP01) before actually printing it.
    Check with your ABAPer whether he can copy SAP Standard Program for SP01 & modify it to display the actual Document Number.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Problem in updating infotype 2001

    Hi Experts,
                     While i am  updating infotype 2001 , using HR_INFOTYPE_operation FM it giving a error , because it calling a wrong sceen 2000 , instead of 2001 . can anybody can help on this ?
    thanks and regards
    Renjith MP

    Hi Dude,
    Go through the below code for 2002 infotype :
    TYPES BEGIN OF text_version.
    TYPES   nummer TYPE x.
    TYPES END OF text_version.
    DATA: PERSONALDATAKEY    LIKE BAPIPAKEY.
    DATA: RETURN       LIKE BAPIRETURN1.
    DATA: P2002       LIKE P2002.
    DATA: PSKEY       TYPE PSKEY.
    DATA: IT_TEXT       TYPE HRPAD_TEXT_TAB .
    DATA: LINE       TYPE HRPAD_TEXT.
    DATA: version       TYPE text_version.
    DATA: pcl1       TYPE pcl1.Input Parameters:
    PARAMETERS:  PERNR  LIKE PA2002-PERNR  DEFAULT '1004511',
                 AWART  LIKE PA2002-AWART  DEFAULT 'LW',
                 BEGDA  LIKE PA2002-BEGDA  DEFAULT SY-DATUM,
                 ENDDA  LIKE PA2002-ENDDA  DEFAULT SY-DATUM,
                 BEGUZ  LIKE PA2002-BEGUZ,
                 ENDUZ  LIKE PA2002-ENDUZ.
    START-OF-SELECTION.
      CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
            EXPORTING
              number = PERNR
            IMPORTING
              RETURN = RETURN.
      IF RETURN-NUMBER IS NOT INITIAL.
        EXIT.
      ENDIF.
    * ADD DATA
      CLEAR: P2002.
      P2002-PERNR = PERNR.
      P2002-SUBTY = AWART.
      P2002-ENDDA = BEGDA.
      P2002-BEGDA = BEGDA.
      P2002-BEGUZ = BEGUZ.
      P2002-ENDUZ = ENDUZ.
      P2002-AWART = AWART.
      P2002-ITXEX = 'X'.
    * WRITE DATA
      CLEAR: RETURN, PERSONALDATAKEY.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
             EXPORTING
                  INFTY          = '2002'
                  NUMBER         = PERNR
                  SUBTYPE        = AWART
                  VALIDITYEND    = BEGDA
                  VALIDITYBEGIN  = BEGDA
                  RECORD         = P2002
                  OPERATION      = 'INS'
                  NOCOMMIT       = ''
                  TCLAS          = 'A'
             IMPORTING
                  RETURN         = RETURN
                  KEY            = PERSONALDATAKEY
             EXCEPTIONS
                  OTHERS         = 0.
      IF RETURN-NUMBER IS INITIAL.
        COMMIT WORK AND WAIT.
      ELSE.
        ROLLBACK WORK.
        EXIT.
      ENDIF.

  • Idoc FIDCCP02 posting skipping document number

    I am using Idoc FIDCCP02 to post FI document. I have to enter value in field E1FIKPF-AWORG, otherwise it does not allow tax code to be used in certain conditions. Filling up filed E1FIKPF-AWORG is working fine and document is being posted. But the issue is that system is skipping one document number for each posting. If field E1FIKPF-AWORG is left blank, than this does not happen.
    Any help please!

    HI Dehra,
        YOu can check if any customizing is done within the IDOC processing function module.
    Or you can to analyse if populating the E1FIKPF-AWORG value creates any extra documents, which are consuming the number range.
    Suggestion: You may get better responses in either FI Forums or ABAP forum.
    Best Regards,
    Ravikanth Talagana

  • ABAP-HR:Infotype

    Hi,
    I am working with ABAP-HR.
    In Personal Administration, while defining Infotypes , they say 'each infotype requirs at least 2 structures and atleast 1 internal table'.
    Will any body please help me to get the idea.
    Thanks in advance.
    Anirban Bhattacharjee

    hi
    Each infotype has two structures and One associated table.
    PSnnnn - this structure contains all of the infotype data fields.
    Pnnnn - this structure contains infotype key fields and all the data fields from the structure PSnnnn.
    Here nnnn is the infotype number.
    PAnnnn PBnnnn etc are actual database tables hoilding the data.
    In ABAP-HR Infotype are grouped in INfoGroups. They have Screens associated with it. And a user has to fill those screens and it is possible that user might chane a value many times before actually saving it.
    So these structures acts as a temporary storage for thise values.
    Hope this wil help.
    Reward if useful.
    Sumit Agarwal

  • Delivery Document Number as Sort Key

    Is it possible to configure Delivery Document Number (VBELV -VBFA) as sort key
    Regards
    Ramesh Nalamada

    Hi ,
    You need to write a substitution for the field assignment ..
    Use the tcode OBBH for this ,using the ABAP developement you can set the logic.
    the prerequisite will be the specific expense accounts ..
    Kedar

Maybe you are looking for

  • Which is better an iPad mini or an iPod touch 5th generation?

    Is the iPod touch 5 better than the iPad mini?

  • JSF conditional statements??

    I have a web page which contains a datatable. I'd like to put a div tag around it to enclose it in a scrollable area. This I can do. I'd also like to be able to vary the size of the scrollable area. I have a property within my backing bean which dete

  • Parsing .xls(excel) file and creating a .xdat(xml) file out of it

    Hi All, need some tips on a task i am trying accomplish for some days now. I have a excel file, in which I have 10 columns with 40-50 rows of data. I have a xml structure in mind, in which I want to put all these data from excel file. But till now I

  • EA6500 - Wireless - Facebook URL - Fail

    Hi All, I have been experiencing an unusual situation over the past 3 or so days. If I access any of the Facebook sites while connected over Wireless on my EA6500 router, every 10 or 15 minutes or so, access to any of the Facebook sites fails to load

  • Computer crashes during installation

    Hi, I'm having trouble installing Itunes on my computer. I'm using Windows XP Pro sp2 and am completely up-to-date. Each time I try to install Itunes, my computer crashes near the end while the installation is registering. There's no error message an