Field PERNR in BAPI_ACC_DOCUMENT_POST

Hi all,
         I'm trying to post a FI document with the standard function BAPI_ACC_DOCUMENT_POST. My goal is
to post the document with the field PERNR (Personal number) but I don't find this field in any tables
of the precedent BAPI.
Looking for the field PERNR  inside the BAPI_ACC_DOCUMENT_POST I found it in a structure GS_ACCIT but this doesn't help me to reach my goals.
Does anybody know help me?
               thank you
                               Gino

Thanks all. I just implemented the same in my project. with the help of this and following link.
http://wiki.scn.sap.com/wiki/display/ABAP/Business+Transaction+Event+-+RWBAPI01+-+For+Accounting+Document+Interface

Similar Messages

  • PERNR in BAPI_ACC_DOCUMENT_POST

    Hi,
    I am using BAPI_ACC_DOCUMENT_POST for posting FI Doc in my program.
    How can i pass PERNR in BAPI_ACC_DOCUMENT_POST.
    Thanks
    Shruti

    Hi,
    To my knowledge there is no such possibility in a "std" field.
    What I did in the past is to use the either field "Assignment Number" (BAPIACGL09-ALLOC_NMBR) or the "Text" field (BAPIACGL09-ITEM_TEXT). Both fields on item level of course.
    The field used of the two suggested options above can then be used in follow on procedures where the item field is read from the FI dcoument. This should a no brainer.
    Regards, Johan

  • FBL5N : Adding additional field PERNR  to layout

    Hi experts,
    I had added additional field PERNR - personnel number in FBL5N layout for displaying in output.
    I had added pernr- personnel number by following the path
    SPRO -> Financial accounting ( new ) -> accounts receivable and accounts payable-> customer accounts ->line items -> display line items -> define additional fields for line item dispaly
    here i added bseg - pernr
    after adding , in FBL5N layout the field is appearing , but it is displaying blank in output  .
    Is there any thing needs to be done to display additional field in output of FBL5N.
    kindly give me any suggestions.
    thanks & tregards,
    Raghul
    Edited by: Raghul Gandhi on Mar 23, 2010 9:30 AM

    Hi,
    FBL5N: customer line item display.
    BSEG-PERNR: personnel number.
    Under which circumstances should BSEG-PERNR contain a value if you create customer related postings?
    If there is no personnel number given during posting (why should it?)  the field added to the FBL5N-layout will be empty.
    Best regards, Christian

  • For sel. field 'PERNR', no selection with SIGN = 'I'; OPTION ' ' allowed

    HI,
    I am getting this error when i m wrintg this routine.
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'PERNR'.
              l_idx = sy-tabix.
              L_T_RANGE-IOBJNM   =      '0EMPLOYEE'.
              L_T_RANGE-FIELDNAME  =   'PERNR'.
              L_T_RANGE-SIGN      =     'I'.     
              L_T_RANGE-OPTION      =  '<>'.
              L_T_RANGE-LOW          = '1004586'.
              L_T_RANGE-HIGH        =   '1006263'.
              modify l_t_range index l_idx.
    l_idx = sy-tabix.
    For sel. field 'PERNR', no selection with SIGN = 'I'; OPTION '<>' allowed

    when you are defining low and high value, u have to use
    l_t_range-option  = 'BT'.

  • Field FDLEV in BAPI_ACC_DOCUMENT_POST

    Hi all,
    When I create a document, I'm trying to fill the FDLEV field with BAPI_ACC_DOCUMENT_POST.
    For what I saw on other messages, I need to use extension1 table, but it doesn't seem to work.
    Anyone can help me?
    ls_extension-field1 = ps_receivable-itemno_acc.
    ls_extension-field2 = 'FDLEV'.
    ls_extension-field3 = ps_bseg-fdlev.
    APPEND ls_extension TO pt_extension.
    Thanks in advanced,
    Luis Cruz

    Hi
    Because u need to implement the BTE RWBAPI01 in order to get the fields transfered by extension:
    a) Step one: fill the extensionin:
    DATA: ST_EXTENSIONIN,
                    itemno_acc type POSNR_ACC
                    FDLEV          type BSEG-FDLEV,
               ST_EXTENSIONIN.
    ST_EXTENSIONIN-ITEMNO_ACC = ps_receivable-itemno_acc.
    ST_EXTENSIONIN-FDLEV = ps_bseg-fdlev.
    APPEND ST_EXTENSIONIN TO pt_extension.
    B) Step two: get the value from extension (in BTE):
    DATA: ST_EXTENSIONIN,
                    itemno_acc type POSNR_ACC
                    FDLEV          type BSEG-FDLEV,
               ST_EXTENSIONIN.
    LOOP AT t_extension.
      MOVE t_extension to ST_EXTENSIONIN.
      READ TABLE IT_ACCIT WITH KEY POSNR = ST_EXTENSIONIN-ITEMNO_ACC.
      IF SY-SUBRC = 0.
         IT_ACCIT-FDLEV = ST_EXTENSIONIN-FDLEV.
         MODIFY T_ACCIT INDEX SY-TABIX.
      ENDIF.
    ENDLOOP.
    As a structure ST_EXTENSIONIN (to fill the extensionin table) has to be used in two different program, it should be better to define it in dictionary instead of the program.
    Max

  • Jump to CATS_DA (field PERNR)- Assignment Details !

    Hi,
    I need to create a jump from my query in BI to transaction CATS_DA in R/3 ( the underlygin table for this transaction being CATSDB).
    I need to jump from 0EMPLOYEE from my BI report to PERNR in the transaciton CATS_DA.
    I have created the jump in RSBBS. But i am only able to jump to the initial screen of the transaction CATS_DA. I need to pass the 0EMPLOYEE from which i am jumping to R/3 ....to PERNR in R/3.....
    What should be the assignment details to pass the value ?????
    Need it urgently
    Thanks
    Shalabh Jain

    Hi,
    please have a look at this: http://help.sap.com/saphelp_nw04/helpdata/en/a2/9b548d979de04180d15b5a55aa94aa/frameset.htm
    and additionally at this: https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=1053310&_NLANG=EN
    and this: https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=363203&_NLANG=EN
    but anyway, in case of r/3, use table field and enter the name of the field, the dataelement, the domain and the parameter id of the target field.
    regards
    Siggi

  • How to overwite TCODE field value in BAPI_ACC_DOCUMENT_POST

    Hi All,
    My requirement is posting the billing document through z-program
    By suing the bapi BAPI_ACC_DOCUMENT_POST
    In this bapi from ECC6.0 onwards the TCODE field value is BAPI only
    But I want the TCODE field value as my z-tcode only
    How can I overwrite this value in bapi?
    Thanks in Advance
    Jaya.G

    hi,
    BADI AC_DOCUMENT is available in the system.
    This badi is called whenever the account document is posted in the system.
    With the help of this badi, i guess you can change the t.code value.
    regards,
    Vinod.

  • Change Pointers for the fields PERNR, GBDAT and PERID

    Hi,
         I want to know, how we can delete/de-activate and then add/activate Change Pointers for these fields. Is my Question a valid one? Please guide me if I'm wrong and help me in this issue.
    Thanks in advance,
    Exertive.
    Message was edited by:
            Exertive

    Hi Suresh,
                   I didn't get your point exactly. With this report, we can only Log the Changes that has been performed on a Particular Pernr or an Infotype. Actually, if see go through my Previous Post, you will get Clear Idea. Actually, I'm looking for the Concept below:
    Actually, I'm using the Standard ALE Process for Masking Master Data fields (PERID and GBDAT) with default values from one system to another using the Message Type, HRMD_A (which will be used as a Standard Message Type for HR Personnel Administration and Organizational Management). For this, I' have used two Conversion Rules in the above Message Type. To make this ALE trigger, I have to Run the Report, RBDMIDOC. But, before trigerring the ALE for all the Employees in the System, I want to test the ALE for few Employees, whether it is working properly or not. For this, I think, I need to delete the Change Pointers for all the Employees except for the few Employees whom I want to Test. But, I don't have any idea, how to delete those Change Pointers. Please guide me some solution or provide me some document where I can find exact procedure for doing this. Guide me, If I'm going in wrong procedure.
    Thanks in advance,
    Exertive.

  • Fields appear as "Read Only" in an Int.Form called from a WD

    Hi Experts!
    I am having a doubt in an Adobe Int.Form, that is called from a WD application.
    The fields that are in my Form, always appear as a "read only". It is not possible to modify anything there.
    Here, I describe the steps that I follow.
    I create a very simple WD application. In its WD View, exist an unique Object (Adobe Interactive Form).
    In that object, I set the properties:
    "Data source": a context variable type "my structure". "My structure", is a simple structure with a couple or three fields, let´s say PERNR, BUKRS, WERKS... It is linked to the Form Interface (ABAP DICTIONARY-BASED INTERFACE). So in this way, the link between my WD and the AdobeInt.Form is working.
    "PDF Source": a context variable type XSTRING.
    "Template Source": here I have set my Int.Form. Currently, it only contains a couple of fields
    "Enabled": True.
    "Read Only": False.
    In the AdobeForm, I have drag & droped those 2 or 3 fields, save it, and activate it. I guess nothing more is needed, for my test.
    And at last, in the View´s method WDDOINIT, I am reading one of those fields, let´s say the employee number (PERNR), and I set by hardcoding its number (let´s say -> 00000001).
    Until here, everything seems to work fine. When I launch the WD test, the Adobeform appears, at the moment, with only one of my fields (Employee - PERNR), and its value is filled in with '00000001'.
    But now, I would like to write something by myself. And when I try to do it, it is not possible! Field PERNR, is displayed as a "READ ONLY".
    Someone knows what is happening here? I guess it should be possible, to activate as a "EDITABLE" that field in my Form.
    So here is my doubt.
    Am I doing anything wrong? Or am I doing any mistake?
    Thank you very much in advance!

    Finally I think I have found the problem.
    In the View where I am printing the ADOBEFORM, it is needed this code under the method WDDOMODIFYVIEW.
    method WDDOMODIFYVIEW .
      DATA: LV_INTERACTIVE_FORM   TYPE REF TO CL_WD_INTERACTIVE_FORM,
                 LV_METHOD_HANDLER     TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      LV_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INT_FORM' ). "   adobeform object in view
      IF LV_INTERACTIVE_FORM IS NOT INITIAL.
          LV_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          LV_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_HIDE_NAVIGATION_PANEL( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_DISABLE_PRINT_BUTTON( ABAP_TRUE ).
          WD_THIS->M_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          WD_THIS->M_METHOD_HANDLER->SET_HIDE_TOOLBARS( ABAP_TRUE ).
        ENDIF.
    endmethod.
    Regards,
    Carles

  • A field of type I is showing Zero in display mode

    Hi,
    I have module pool program, with create, change and display buttons.
    Here I have a field PERNR type PERNR_D.
    This field is not a mandatory field. so, I am creating a record without entering any value in this.
    But when I go into display for this record, it is showing '0'.
    How to remove single zero in display mode?
    I tried with the following code but it is not working for me.
    if zstruct-zpernr eq '00000000'.
      write zstruct-zpernr to zstruct-zpernr no-zero.
      endif.
    Please advise me here

    I tried all the ways except using char08.
    as permy spec, I should not use this type.
    So,
    I tried to remove  '0' by using the following code.but it is giving error as follows.
    Please help me
    Code:
    if Zstruct-zpernr CO '0'.
      if ( Zstruct-zpernr eq '00000000' )  or (Zstruct-zpernr is initial ).
      write Zstruct-zpernr to Zstruct-zpernr no-zero.
    endif.
    error log:
    Value  is not numeric
    Message no. E2135
    Diagnosis
    A value that is not numeric has been entered for a domain with a numeric data type. This is not allowed.
    System Response
    The system cannot accept the value.
    Procedure
    Correct your entry. You must enter a numeric value.

  • How to add a new field in the Field Mapping

    Dear Freinds,
                   I have two un used fields in the  Source fields to the Target Fields ,
    i have to add the 3   fields which r there in the my source fields to that
    of the target fields ( as per the change in the requirement) in the 5th Step
    i.e Maintain Field Mapping and Conversion Rules
    the Target strucutre & the Source fields( by clicking the button
    Source field and selcting the fields from the popup menu) in the mapping and conversion step  ,i want to  add  3 fields which are availabe in the list of th source list  which i want to map to the Target strucutre  .
    When i tried it is adding in the othe target field
    presently i have mapping (5th sept ) as below.
       ZPA30_08                       LSMW
           Fields
               TABNAME                      Table Name
                                   Source:  ZP0008_STRC-PERNR (Personnel Number)
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TABNAME = 'ZPA30_08'.
               TCODE                        Transaction Code
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TCODE = 'PA30'.
    now i want to add 3 fields Pernr,wage type and Amount  , but when iam trying it is
    getting and saved in the TABNAME .
    How can i map please let me know .
    Regards
    syamla

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • "Search Term" fields in SU01

    Hi experts,
    Issue concerns my CRM 6.0 back end system. Here, I have a requirement to pull out a list of all users created without any value in field "Search Term 1"  under Adress tabI found an old thread from some years back which says this field is not part of any user tables as it fell under address management back then:
    SU01 Search Terms
    Does anyone have knowledge on how I can run this query? SUIM, change history etc has no option to do a user search on this field. I checked out most of the user tables (USR*) and none of them also have this field "Search term 1" in them.
    Also for some users on the same system this field is not visible alltogether (No header in SU01 --> Address which shows "Search terms" at all).
    I am a little confused. Any help would be great....
    Edited by: Soumya-Thomas on Mar 3, 2011 9:56 AM

    Hi Julius,
    Just noticed your answer to my thread, this is what I did:
    Table ADRP - got a list of all users (on field PERNR) with field value Search term1 (SORT1) against eahc user.
    Table USR21 - mapped the above PERNR value to user name here.
    Thus got a list of all usernames + Search Term1 (SORT1).
    Also, i didnt really use authority checks against the field Search Term.. may be it is used soemwhere, but i didnt get into that; since my mission was only to make sure that a set of users (as per our policy) were all created with specific reasons entered in "SU01 --> Search Term1" during user creation. For me it was a user master data updation task.
    Soumya

  • Unicode issueAssigning database table data to a string field of a structure

    Hi All,
    This is piece of code where it is throwing the error in ERP 6.0 but this is working fine in SAP 4.6c.
    select * into datatab-data from catsdb
    where pernr IN select_pernr.
    datatab-pernr = datatab-data+3(8).
    datatab-tabname = 'CATSDB'.
    datatab-dtype = 'C'.
    where CATSDB is transparent table with 108 fields.
    and datatab is a structure of type ZHCLONE_DATATAB in a Function Module defined with 4 fields PERNR,DTYPE,TABNAME,DATA.
    data is a charater field of length 4999.
    Error:CATSDB and DATATAB-DATA are not mutually convertable in unicode conversion.
    Any pointers to this would be highly appreciated.
    Thanks in advance.
    Regards,
    Rizwana.
    Edited by: Rizwana Parveen on Jun 27, 2008 7:33 AM

    Hi,
    The Data in the table CATSDB cannot be copied directly into the field datatab-data if the catsdb contains any non-character type fields.
    1>First take a work area
    wa_catsdb like line of catsdb
    2>Select the data from catstab into the the workarea
    select * into wa_catstab from catsdb
    where pernr IN select_pernr.
    3>Now transform the workarea into the datatab-data variable
    If the catstab contains complete character fields we can use direct move statement,else we need to use following method
    class cl_abap_char_utilities definition load.
        CALL METHOD cl_abap_container_utilities=>read_container_c
      EXPORTING
        im_container               = wa_catstab
      IMPORTING
        ex_value           = datatab-data
      EXCEPTIONS
        illegal_parameter_type = 1
        OTHERS                 = 2.

  • Customizing user selection fields of Logical database PNP

    Dear Gurus,
    I had made a z-copy of payslip program for incorporation of Logo. Now we need to put this report in Enterprise Portal (EP). Now since we would not want any user to view any other person's payslip, I need to disable the selection field (PERNR) for user selection.
    Problem is this field for user selection is coming from standard Logical Database (LDB - PNP) used in the program. So how can I make this field hardcoded as sy-uname and non-modifiable without making z-copy of LDB-PNP.
    Also I wish to harcode Payroll Area writing some code (from table PA000) but again I cannot write this in std. PNP LDB and writing it in driver program will not help.
    Thanks in advance.
    Regards,
    Amit

    Write the highlighted coding in initialization ...
    initialization .
    select single pernr from pa0105
           into pernr-pernr
           where usrid = sy-uname.
    if sy-subrc = 0.
      PNPPERNR-sign = 'I'.
      PNPPERNR-option = 'EQ'.
      PNPPERNR-LOW = pernr-pernr.
      Append PNPPERNR.
    endif.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW' or
    screen-name = 'PNPPERNR-HIGH'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    at selection-screen output.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW' or
    screen-name = 'PNPPERNR-HIGH'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.

  • Concatenate fields in hr payroll attendance report

    Hi all,
    I need to concatenate three fields PERNR, BEGDA and  ATTIND  into a string.after concatenating I need to count no. of records present for this combination into internal table and compare this count with other oracle database records count.if both counts are not same then need to display these three fields mismatched records in the output.can anyone provide some help to achieve this.
    Thanks in advance,
    Regards,
    Harshada

    Hi,
    Create an internal table with 2 columns; first being the concatenated string field, the other being an integern (name it COUNT or something meaningful).
    Build up your internal table by doing the concatenation - move the concatenated value into the first field.  Set the second field to 1 then COLLECT the entries into the internal table.  After processing, there will be only one entry for each combination and the COUNT column will indicate the number of times that combination was found.
    Regards,   Andy

Maybe you are looking for

  • What's difference between iphone 4 and 4s?

    i bought an iphone 4 9months ago and the software was upgraded to iOS5 last month. since then i noticed that by the time i used to connect my iphone into my pc the itunes did not sync so i'd just tolerate as not a big deal for me... this is the probl

  • Adobe Flash Player 11- problems installing

    I am operating Windows Home (64 bit). I use NORTON Security software. When I open a website that requires Adobe Flash Player 11,  I try to download the required file. After going thru the steps to downloade the Flash Player 11,  I get a screen that s

  • Form created but not visible!!

    Form created but not visible!! Hi everyBody, I've created 2 user Forms binded with a 2 user tables (with diffrent UDOs)  and  everything works perfectly. When I tried to run it on a machine at a customer, the first form functions perfectly and the se

  • Migration of Database oracle 10g from solaris to linux

    Hi, I need to migrate a DB from solaris to linux without shutdown the solaris DB.I would like to know the backup using RMAN Transportable tablespace in solaris and migrate it to dest(Linux). Kindly share ur ideas

  • Af:inputDate - No provision to set the set the current date in the popup

    On clicking the icon of the af:inputDate, the pop up is opened with the current month/date/year as the highlighted item. There should be provision to set which date/month/year should be shown as highlighted. The attached image below makes it more cle