No entry in table T512Q and T512P

hi gurus , i'm facing a problem when i'm tryin to view HR Master data sheet (S_AHR_61016360)
it saying there is no data in tables T512Q and T512P. But if you view the tables via transaction SE11 there is data
. can you assist please.

S_AHR_61016360 this report is related to your payslip or remuneration statement.....table T512Q is related to form Single fields data and T512P stores form line no.s.....goto se16 give the table T512Q and enetr country grouping and form name and check the data in table.
Mohan

Similar Messages

  • Table entry for table T710A and T710

    Friends - Can anyone help me to understand what could be possible problem if i maintain PAY GRADE & PAY GRADE LEVEL entries through table. I have 57000 thousand entries for different countries so i am using BDC recroding to upload these values.
    Please help me find out dependent tables on PAY GRADE & PAY GRADE LEVEL.
    Kind regards,
    Amit Jain

    Hi:
    T710:
    MOLGA     - > T500L
    SLTYP     - > T510A
    SLREG     - > T510G
    SLGRP     - > T710A
    T710A:
    MOLGA     - > T500L
    SLTYP     - > T510A
    SLREG     - > T510G
    FREQU     - > T710F
    WAERS     - > TCURC
    WGTYP     - > T52D7
    Hope it helps,
    Regards.

  • How can i  add entry in table BSP_DL_XMLSTRX2 for creating a copy of a view

    hi
    i want to copy in a CRM_UI component view the configuration of the view and want to save the copy with a
    different object type. But F4 value help only provides ( in crm_ui component workbench) me the value <DEFAULT> as for that view there is only one entry in table
    BSP_DL_XMLSTRX2 and for object type = <DEFAULT> and when i enter something different i get the error that this object type does not exist.
    (call method CL_BSP_DLC_XML_STORAGE2=>GET_EXISTENCE_FOR_VIEW
        exporting
          IV_COMPONENT       = ME->CURRENT_CONFIG_KEY-COMPONENT
          IV_VIEWNAME        = ME->CURRENT_CONFIG_KEY-VIEWNAME
        importing
          ET_CONTEXT_SEM_KEY = LT_CONTEXT
          ET_CONFIG_INFO     = LT_CONF_INFO.
    ---> result in only one line but i want to add another
    *so my questioin:
    where can i enter a new object type for a existing crm_ui view configuration

    Hello Britta,
    Its useful program to copy a view configuration.
    Best Regards,
    zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 3:51 PM
    REPORT  z_copy.
    TABLES bsp_dcls_conf_semantic_key.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS     fr_comp  TYPE bsp_wd_component_name OBLIGATORY.
    PARAMETERS     fr_view  TYPE o2pageext OBLIGATORY.
    PARAMETERS     fr_role  TYPE bsp_dlc_role_key OBLIGATORY.
    PARAMETERS     fr_couse TYPE bsp_dlc_component_usage OBLIGATORY.
    PARAMETERS     fr_obty  TYPE bsp_dlc_object_type OBLIGATORY.
    PARAMETERS     fr_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS     to_comp  TYPE bsp_wd_component_name OBLIGATORY.
    PARAMETERS     to_view  TYPE o2pageext OBLIGATORY.
    PARAMETERS     to_role  TYPE bsp_dlc_role_key OBLIGATORY.
    PARAMETERS     to_couse TYPE bsp_dlc_component_usage OBLIGATORY.
    PARAMETERS     to_obty  TYPE bsp_dlc_object_type OBLIGATORY.
    PARAMETERS     to_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETERS     request   TYPE trkorr OBLIGATORY.
    PARAMETERS     d_mode    TYPE flag.
    SELECTION-SCREEN END OF BLOCK b3.
    DATA :  iv_from_component         TYPE  bsp_wd_component_name,
            iv_from_viewname          TYPE  o2pageext,
            iv_from_role_key          TYPE  bsp_dlc_role_key,
            iv_from_component_usage   TYPE  bsp_dlc_component_usage,
            iv_from_object_type       TYPE  bsp_dlc_object_type,
            iv_from_object_sub_type   TYPE  bsp_dlc_object_sub_type,
            iv_to_component           TYPE  bsp_wd_component_name,
            iv_to_viewname            TYPE  o2pageext,
            iv_to_role_key            TYPE  bsp_dlc_role_key,
            iv_to_component_usage     TYPE  bsp_dlc_component_usage,
            iv_to_object_type         TYPE  bsp_dlc_object_type,
            iv_to_object_sub_type     TYPE  bsp_dlc_object_sub_type,
            is_transport_data         TYPE  bsp_dlc_config_transport_data.
    DATA:
      ls_from_config_data   TYPE bsp_dlcs_conf_data,
      lr_from_text_rep      TYPE REF TO cl_bsp_dlc_stext_repository2,
      lr_to_text_rep        TYPE REF TO cl_bsp_dlc_stext_repository2,
      lt_from_text          TYPE bsp_dlt_stxtrep2,
      ls_from_text          TYPE bsp_dl_stxtrep2,
      lv_to_context_id      TYPE bsp_dlc_context_id,
      lv_config_data_origin TYPE bsp_dlc_config_data_origin.
    DATA lt_xmlconf TYPE TABLE OF bspc_dl_xmlstrx2.
    DATA ls_xmlconf TYPE bspc_dl_xmlstrx2.
    DATA ls_xmlconf_check TYPE bspc_dl_xmlstrx2.
    is_transport_data-request = request.
    is_transport_data-display_mode = d_mode.
    SELECT SINGLE * FROM bspc_dl_xmlstrx2 INTO ls_xmlconf_check
                                          WHERE component = fr_comp
                                            AND viewname = fr_view
                                            AND role_key = fr_role
                                            AND component_usage = fr_couse
                                            AND object_type = fr_obty
                                            AND object_sub_type = fr_obsty.
    CHECK sy-subrc EQ 0.
    TRY.
        CALL METHOD cl_bsp_dlc_xml_storage2=>get_config_data
          EXPORTING
            iv_component           = fr_comp
            iv_viewname            = fr_view
            iv_role_key            = fr_role
            iv_component_usage     = fr_couse
            iv_object_type         = fr_obty
            iv_object_sub_type     = fr_obsty
            iv_only_spec_parameter = abap_true
          IMPORTING
            es_config_data         = ls_from_config_data
            ev_config_data_origin  = lv_config_data_origin.
      CATCH cx_bsp_dlc_config_not_found.
        RAISE config_not_found.
    ENDTRY.
    lr_from_text_rep = cl_bsp_dlc_stext_repository2=>get_instance(
                                             iv_component = fr_comp
                                             iv_viewname  = fr_view
                                             iv_role_key        = fr_role
                                             iv_component_usage = fr_couse
                                             iv_object_type     = fr_obty
                                             iv_object_sub_type = fr_obsty
    CASE lv_config_data_origin.
      WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_c.
        CALL METHOD lr_from_text_rep->get_texts_c_for_context_id
          EXPORTING
            iv_all_langu = 'X'
          IMPORTING
            et_text      = lt_from_text.
      WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_s.
        CALL METHOD lr_from_text_rep->get_texts_s_for_context_id
          EXPORTING
            iv_all_langu = 'X'
          IMPORTING
            et_text      = lt_from_text.
    ENDCASE.
    Edited by: Zafer Kuru on Dec 5, 2011 3:54 PM

  • Regarding tables coss and cosp

    Hi Experts,
    In table AUFK there is object number field against order and against that object number there are lot of entries in tables coss and cosp.
    I need to know from which transaction these entries get updated and also can we come to know from these entries in tables coss & cosp, whether the order is newly entered or changed or any other operation happen on that order??
    Thnx..

    I can explain the costing frame work behind the Production order /Internal order.
    For all the items and Item types (material, service, Employee, Variable items ) based on Production order/Internal order Objnr( Object number) Cost estimate number will be generated (KALNR) .
    B       Base Planning Object
    E       Internal Activity   
    F       External Activity   
    L       Subcontracting      
    M       Material            
    N       Service             
    P       Process (Manual)    
    T       Text Item           
    V       Variable Item
    then all the items will be posted against the OBJNR and KALNR.
    Create the costing component for each item type using the function module
    KKDI_OBJECTS_CREATE_FROM_RES
    CL_COST_ESTIMATE is the class behind all the costings.  for behind each item type different class will be there for costing.  using cost estimate object all the Items will be inserted ( INSERT_COMPONENT method is responsible) .
    after that  calculation will happen using the calculate method of cl_cost_estimate ,then save_temporarily
    finally cl_cost_estimate=>commit_all
    Once it is commited then CKIS , COSP, COSS data will be updated from the items..
    i hope it is very vague for you.

  • TRANSPORT ENTRIES IN TABLE TO TEST

    Hi,
    i´ve made several entries in table TFKT and i need to transport them to TEST and PRODUCTION.
    How can i do it?
    Regards.

    The delivery class of your table needs to be "C".  Then the table entries will be transported along with the table definition. 
    In your case, that table is of delivery class "A".  Your data is not transportable.
    if you have generated a table maintenance program for this table, then you are gonna have to do some cut/paste.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman
    Message was edited by: Rich Heilman

  • Purpose of Entry/Check Table and Currency Quantity Fields...!

    Hi......!,
    I want to know what is the purpose of this   Entry/Check Table and Currency Quantity Fields, while creating a table in DDIC .
    give me a clear explanation .....!
    best answers would be rewarded.
    thanks
    prasad

    Hi Prasad,
    All the Modules in SAP are inter related,
    So their Tables also must be related and must be valid
    and they are related to foreign key relation ships
    and also we can provide the list of input values using search helps
    to know what the search helps and check tables are assigned to the particular  field they provided the tab
    In the currency fields or quanitiy fields we only enter the amount but not the units,
    so the units are assigned if we provide the reference field and table , and so that tab is provided to check what are reference fields and tables and also to assign new fields
    hope I am clear
    Reward if helpful
    prasanth

  • Fetch Table name and field name from a given entry

    Hi ,
    i know the entry which is present in the database .But i don't know the table name and field name which has that entry .
    i have to fetch the table name and field name from a given entry .
    Can anyone suggest me how will  i fetch the table name and field name for a given entry .
    thanks in advance.

    Hi ,
    i know the entry which is present in the database .But i don't know the table name and field name which has that entry .
    i have to fetch the table name and field name from a given entry .
    Can anyone suggest me how will  i fetch the table name and field name for a given entry .
    thanks in advance.
    Few more options to scan specific text in entire DB:
    http://www.mssqltips.com/sqlservertip/1525/scan-a-sql-server-database-for-objects-and-columns-containing-a-given-text-value/
    http://solutioncenter.apexsql.com/quickly-search-for-sql-database-data-and-objects/
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Clean up of work flow logs entries (WFMC) from tables CMFP and CMFK

    Hi,
    I am cleaning up the tables CMFP and CMFK for work flow logs entries with app id WFMC. I used the cleanup programs RSCLNAFP, RSCLCMFP but the entries are still seen on the tables. Can anyone please advice ?

    Hey,
    I think notes: 627257, 758952  would help.
    if not, please read notes 52114, 617634, and:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25c1f5d1-0901-0010-d495-e96d02a0cb01
    the link above advice to run transaction NACE:
    To avoid unnecessary growth of tables CMFP and CMFK, you can prevent the creation of processing logs by following these steps:
    1. Call up transaction NACE (“Conditions for Output Control”).
    2. Choose the desired applications and then “Output Types”.
    3. Double click on the output type to go to the detail view where you can make the necessary settings. To make the settings you must enter the change mode.
    4. Set the indicator “do not write processing log” and save your settings.
    This setting is only applicable to the individual application and output type. If it is set, processing logs will be collected in the main memory, but they will not be written to the database. Other output types are not affected by this setting. You have to repeat the aforementioned steps for each output type individually. It is not possible to switch off the processing log for all output types at the same time. For more information on the setting “do not write processing log” see the corresponding documentation.

  • How to Create new entry, while keeping CoS and nsRoles in tact...

    Hi,
    Here's the short version:
    How can one create a new entry/context in DS, copy the attributes from an existing entry (using JNDI) and save them in the new entry/context WITHOUT duplicating CoS or nsRole/DN info.
    Long version of the question:
    We are using DS 5.2 and Portal 6 (and messenger/calendar etc). We have our employees saved in DS. What I want to do is change a user's name/uid by copying the user's attributes (in JNDI) and create a New entry with the New uid, with all the other attributes the same. Then deleting the original entry.
    This is what I have done...
    1. Get all the employee's attributes... (abriviated)(ctx is the DirContext)
    NamingEnumeration answer = ctx.search(searchBase, filter, ctls);
    SearchResult sr = (SearchResult)answer.next();
    Attributes attrs = sr.getAttributes();
    2. Create a new employee with the same attributes (assume I use a different uid in the dn)
    ctx.createSubcontext(dn, attrs);
    This works...it copies all the attributes to the new entry -BUT- when you look at the LDIF file, it ADDS several more attributes to the new entry.
    Example: it adds the following...
    sunPortalNetletRules
    sunPortalGatewayEnableSSO
    sunPortalDesktopDpDocument
    sunPortalDesktopDpLastModifiedUser
    iplanet-am-user-auth-modules
    And about 20 others...
    Now if I am not mistaken, these are the CoS and roles that the DS uses and propagates down to the entry. But when I copy the attributes over, (using JNDI) I get these attributes too but I want to copy only the attributes that are unique and have DS handle the roles and CoS like it does for the original entry.
    Is there a way to tell the DS to just use the CoS or roles instead of duplicating all these attributes in this individual entry??? (and do it using JNDI)
    (sorry this question is sooooo long.)
    Thanks!
    Eric

    Hello Viji,
    I am extremely thank ful for the document.
    Kindly help me with below points of possible
    1)     if it is standard table (LFBK) , even then shall we will need to do the generate program 
    step in SCDO ?
    2)     does it generate Z-function module ?
    3)     do we need to call this function module at appropriate places to update the CDPOS and CDHDR 
    for changes in the standard table ?
    4)     I have already created custom business object for LFBK so that Iu2019ll be able to create entry 
    in SWEC (fyi)
    5)     how and when are the method used in the table maintenance generator called ?
    6)     Page 14 point 3 says that "Add a new entry to link the Change Document Object ZPRPS_CD and 
    table ZPRPS so that changes are recorded when table entries change."
    Does this mean that once we create SCDO and generate program, these two steps are  enough 
    for the SWED entry to create change log in CDPOS and CDHDR ?
    7)     It is understood that it is necessary that the change object in SWEC should be logged in 
    CDPOS and CDHDR only then the event would be created for the SWEC entry. is this correct ?
    in order to create change log for the change object in CDHDR and CDPOS, is the SCDO entry 
    and generate program steps enough or the methods of table  maintenance generator are also 
    required ?
    thank you very much for your time
    B

  • Table name and field name

    hi frds
    Give me table name and field name of OPEN PO QUANTITY ..
    thanks
    Pari Vendhan.R

    See the sample code for the open PO's based on Vendor
    and do accordingly
    *& Report ZMM_PO_REPORT
    REPORT ZMM_PO_REPORT message-Id yb
    NO STANDARD PAGE HEADING
    LINE-COUNT 60(1)
    LINE-SIZE 230.
    D A T A B A S E T A B L E S D E C L A R A T I O N
    TABLES: lfa1, " Vendor Master
    t161, " PO Doc Types
    t024, " Purchase Groups
    ekko. " PO Header
    T Y P E S D E C L A R A T I O N S
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_po,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    bstyp TYPE bstyp, " PO Category
    bukrs TYPE bukrs, " Company Code
    bsart TYPE bbsrt, " PO Type
    lifnr TYPE lifnr, " Vendor No
    ekgrp TYPE bkgrp, " Purchase Group
    waers TYPE waers, " Currency
    bedat TYPE etbdt, " PO Date
    txz01 TYPE txz01, " Material Text
    werks TYPE ewerk, " Plant
    lgort TYPE lgort_d, " Storage Location
    matkl TYPE matkl, " Material Group
    menge TYPE bamng, " PR Quantity
    meins TYPE bamei, " UOM
    bprme TYPE bbprm, " Price Unit
    netpr TYPE netpr, " Net price
    peinh TYPE peinh, " Price Unit UOM
    pstyp TYPE pstyp, " Item Category
    knttp TYPE knttp, " Account Assignment Category
    END OF s_po.
    Purchase Orders History Structure
    TYPES: BEGIN OF s_account,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    gjahr TYPE mjahr, " Fiscal Year
    belnr TYPE mblnr, " PO Invoice No
    menge TYPE menge_d, " PR Quantity
    wrbtr TYPE wrbtr, " Price in Local Currency
    dmbtr TYPE dmbtr, " Price in Foreign Currency
    waers TYPE waers, " Currency
    shkzg TYPE shkzg, " Dr/Cr Indicator
    END OF s_account.
    Purchase Orders History Structure(Item Sum)
    TYPES: BEGIN OF s_inv_sum,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    menge TYPE menge_d, " PR Quantity
    wrbtr TYPE wrbtr, " Price in Foreign Currency
    waers TYPE waers, " Currency
    END OF s_inv_sum.
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_rep,
    lifnr TYPE lifnr, " Vendor No
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    bstyp TYPE bstyp, " PO Category
    bsart TYPE bbsrt, " PO Type
    ekgrp TYPE bkgrp, " Purchase Group
    waers TYPE waers, " Currency
    bedat TYPE etbdt, " PO Date
    txz01 TYPE txz01, " Material Text
    werks TYPE ewerk, " Plant
    lgort TYPE lgort_d, " Storage Location
    matkl TYPE matkl, " Material Group
    menge TYPE bamng, " PR Quantity
    meins TYPE bamei, " UOM
    bprme TYPE bbprm, " Price Unit
    netpr TYPE netpr, " Net price
    peinh TYPE peinh, " Price Unit UOM
    pstyp TYPE pstyp, " Item Category
    knttp TYPE knttp, " Account Assignment Category
    name1 TYPE name1, " Plant
    orewr TYPE netpr, " To be Invoiced Price
    curr TYPE waers, " Inv Doc Currency
    END OF s_rep.
    D A T A D E C L A R A T I O N S
    DATA: gv_title1 TYPE sylisel, " Report title
    gv_dial. " Color flag
    C O N S T A N T S D E C L A R A T I O N S
    CONSTANTS: c_x VALUE 'X', " Flag X
    c_h VALUE 'H', " Debit
    c_vgabe TYPE vgabe VALUE '2'. " Transaction Type
    I N T E R N A L T A B L E S D E C L A R A T I O N S
    DATA: i_po TYPE STANDARD TABLE OF s_po WITH HEADER LINE,
    " Purchase Order
    i_inv TYPE STANDARD TABLE OF s_inv_sum WITH HEADER LINE,
    " PO Invoice Values
    i_rep TYPE STANDARD TABLE OF s_rep WITH HEADER LINE,
    " PO Invoice Values
    i_ekbe TYPE STANDARD TABLE OF s_account WITH HEADER LINE.
    " PO Invoice Values
    S E L E C T I O N S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
    s_ebeln FOR ekko-ebeln MATCHCODE OBJECT mekk,
    s_bsart FOR t161-bsart,
    s_ekgrp FOR t024-ekgrp,
    s_bedat FOR ekko-bedat.
    SELECTION-SCREEN END OF BLOCK b1.
    I N I T I A L I Z A T I O N *
    INITIALIZATION.
    A T S E L E C T I O N - S C R E E N *
    AT SELECTION-SCREEN.
    Validate the screen fields
    PERFORM validate_screen.
    S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Fetch main data
    PERFORM fetch_data.
    T O P - O F - P A G E *
    TOP-OF-PAGE.
    Header of the List
    PERFORM header.
    E N D - O F - P A G E *
    Footer
    END-OF-PAGE.
    ULINE.
    E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    Display the Report Output data
    PERFORM display_data.
    At Line-Selection
    AT LINE-SELECTION.
    When double clicked on EBELN display the details of Purchase Doc
    PERFORM line_sel.
    *& Form validate_screen
    Validation of Selection Screen fields
    FORM validate_screen .
    Validation of Vendor Number
    CLEAR lfa1-lifnr.
    IF NOT s_lifnr[] IS INITIAL.
    SELECT lifnr UP TO 1 ROWS
    INTO lfa1-lifnr
    FROM lfa1
    WHERE lifnr IN s_lifnr.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Vendor'(002).
    ENDIF.
    ENDIF.
    Validation of PO Number
    CLEAR ekko-ebeln.
    IF NOT s_ebeln[] IS INITIAL.
    SELECT ebeln UP TO 1 ROWS
    INTO ekko-ebeln
    FROM ekko
    WHERE ebeln IN s_ebeln.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Document Number'(003).
    ENDIF.
    ENDIF.
    Validation of PO Document Type
    CLEAR t161-bsart.
    IF NOT s_bsart[] IS INITIAL.
    SELECT bsart UP TO 1 ROWS
    INTO t161-bsart
    FROM t161
    WHERE bsart IN s_bsart.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Purchase Document Type'(004).
    ENDIF.
    ENDIF.
    Validation of Purchasing Group
    CLEAR t024-ekgrp.
    IF NOT s_ekgrp[] IS INITIAL.
    SELECT ekgrp UP TO 1 ROWS
    INTO t024-ekgrp
    FROM t024
    WHERE ekgrp IN s_ekgrp.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Purchasing Group'(005).
    ENDIF.
    ENDIF.
    ENDFORM. " validate_screen
    *& Form fetch_data
    Fetching the PO related data from Database Tables
    FORM fetch_data .
    CLEAR i_po.
    REFRESH i_po.
    SELECT a~ebeln " PO No.
    b~ebelp " PO Item
    a~bstyp " PO Category
    a~bukrs " Company Code
    a~bsart " PO Type
    a~lifnr " Vendor No
    a~ekgrp " Purchase Group
    a~waers " Currency
    a~bedat " PO Date
    b~txz01 " Material Text
    b~werks " Plant
    b~lgort " Storage Location
    b~matkl " Material Group
    b~menge " PR Quantity
    b~meins " UOM
    b~bprme " Price Unit
    b~netpr " Net price
    b~peinh " Price Unit UOM
    b~pstyp " Item Category
    b~knttp " Account Assignment Category
    INTO TABLE i_po
    FROM ekko AS a JOIN ekpo AS b
    ON a~ebeln = b~ebeln
    WHERE a~ebeln IN s_ebeln AND
    a~lifnr IN s_lifnr AND
    a~ekgrp IN s_ekgrp AND
    a~bsart IN s_bsart AND
    a~bedat IN s_bedat.
    SORT i_po BY ebeln ebelp.
    break-point.
    IF NOT i_po[] IS INITIAL.
    Fetch the PO History/Invoice Details from EKBE Table
    CLEAR i_ekbe.
    REFRESH i_ekbe.
    SELECT ebeln " PO No.
    ebelp " PO Item
    gjahr " Fiscal Year
    belnr " PO Invoice No
    menge " PR Quantity
    wrbtr " Price in Local Currency
    dmbtr " Price in Foreign Currency
    waers " Currency
    shkzg " Dr/Cr Indicator
    INTO TABLE i_ekbe
    FROM ekbe
    FOR ALL ENTRIES IN i_po
    WHERE ebeln = i_po-ebeln AND
    ebelp = i_po-ebelp AND
    vgabe = c_vgabe.
    IF sy-subrc = 0.
    SORT i_ekbe BY ebeln ebelp.
    LOOP AT i_ekbe.
    IF i_ekbe-shkzg = c_h.
    i_ekbe-wrbtr = i_ekbe-wrbtr * -1.
    ENDIF.
    MODIFY i_ekbe.
    ENDLOOP.
    break-point.
    Sum up the Item wise Invoice totals
    LOOP AT i_ekbe.
    AT END OF ebelp.
    READ TABLE i_ekbe INDEX sy-tabix.
    SUM.
    MOVE-CORRESPONDING i_ekbe TO i_inv.
    APPEND i_inv.
    ENDAT.
    CLEAR i_inv.
    ENDLOOP.
    SORT i_inv BY ebeln ebelp.
    break-point.
    ENDIF.
    ENDIF.
    Move the Vendor Name and Invoice Values to I_rep Internal Table
    LOOP AT i_po.
    MOVE-CORRESPONDING i_po TO i_rep.
    CLEAR i_inv.
    READ TABLE i_inv WITH KEY ebeln = i_po-ebeln
    ebelp = i_po-ebelp.
    IF sy-subrc = 0.
    i_rep-orewr = ( i_po-menge - i_inv-menge ) * i_po-netpr.
    i_rep-curr = i_inv-waers.
    ELSE.
    i_rep-orewr = i_po-menge * i_po-netpr.
    i_rep-curr = i_po-waers.
    ENDIF.
    break-point.
    Get the Vendor Name
    CLEAR lfa1-name1.
    SELECT SINGLE name1 FROM lfa1 INTO lfa1-name1
    WHERE lifnr = i_po-lifnr.
    IF sy-subrc = 0.
    i_rep-name1 = lfa1-name1.
    ENDIF.
    APPEND i_rep.
    CLEAR i_rep.
    break-point.
    ENDLOOP.
    SORT i_rep BY lifnr ebeln ebelp.
    DELETE i_rep WHERE orewr LE 0.
    break-point.
    ENDFORM. " fetch_data
    *& Form display_data
    Display the Report Output data
    FORM display_data .
    DATA: lv_flag, " New Flag
    lv_rec TYPE i. " No of Records
    CLEAR lv_rec.
    IF i_rep[] IS INITIAL.
    MESSAGE e000 WITH 'No Data found'(022).
    ELSE.
    LOOP AT i_rep.
    Toggle Color
    PERFORM toggle_color.
    IF lv_flag space.
    NEW-LINE.
    ENDIF.
    At New Purchase Document
    AT NEW ebeln.
    WRITE:/1 sy-vline, 2(10) i_rep-ebeln INTENSIFIED OFF.
    lv_flag = c_x.
    lv_rec = lv_rec + 1.
    ENDAT.
    WRITE: 1 sy-vline,
    12 sy-vline,13(4) i_rep-bsart,
    17 sy-vline,18(10) i_rep-lifnr,
    28 sy-vline,29(35) i_rep-name1,
    64 sy-vline,65(4) i_rep-ekgrp,
    69 sy-vline,70(10) i_rep-bedat,
    80 sy-vline,81(5) i_rep-ebelp,
    86 sy-vline,87(40) i_rep-txz01,
    127 sy-vline,128(9) i_rep-matkl,
    137 sy-vline,138(1) i_rep-pstyp,
    139 sy-vline,140(1) i_rep-knttp,
    141 sy-vline,142(4) i_rep-werks,
    146 sy-vline,147(4) i_rep-lgort,
    151 sy-vline,152(13) i_rep-menge UNIT i_rep-meins,
    165 sy-vline,166(3) i_rep-meins,
    169 sy-vline,170(15) i_rep-netpr CURRENCY i_rep-waers,
    185 sy-vline,186(4) i_rep-waers,
    190 sy-vline,191(5) i_rep-peinh,
    196 sy-vline,197(4) i_rep-bprme,
    201 sy-vline,202(15) i_rep-orewr CURRENCY i_rep-curr,
    217 sy-vline,218(4) i_rep-curr,
    222 sy-vline,223(7) i_rep-bstyp centered,
    230 sy-vline.
    NEW-LINE.
    hide: i_rep-ebeln.
    ENDLOOP.
    ULINE.
    FORMAT COLOR OFF.
    WRITE : /2 'Total Number of Purchasing Documents:'(025) COLOR 3,
    lv_rec COLOR 3.
    ENDIF.
    ENDFORM. " display_data
    *& Form header
    Write the Report Header
    FORM header .
    FORMAT RESET.
    header
    WRITE:/1(230) 'LIST OF PURCHASE DOCUMENTS PER VENDOR'(006) CENTERED.
    SKIP.
    FORMAT COLOR COL_HEADING.
    ULINE.
    WRITE:/1 sy-vline,2(10) 'Pur.Doc.No'(006) CENTERED,
    12 sy-vline,13(4) 'Type'(007),
    17 sy-vline,18(10) 'Vendor'(008) CENTERED,
    28 sy-vline,29(35) 'Name'(009) CENTERED,
    64 sy-vline,65(4) 'PGrp'(010) CENTERED,
    69 sy-vline,70(10) 'Doc.Date'(012) CENTERED,
    80 sy-vline,81(5) 'Item'(011),
    86 sy-vline,87(40) 'Material Short Text'(024) CENTERED,
    127 sy-vline,128(9) 'Mat.Group'(013),
    137 sy-vline,138(1) 'I',
    139 sy-vline,140(1) 'A',
    141 sy-vline,142(4) 'Plnt'(014),
    146 sy-vline,147(4) 'SLoc'(015),
    151 sy-vline,152(13) 'Quantity'(016) CENTERED,
    165 sy-vline,166(3) 'UoM'(017),
    169 sy-vline,170(15) 'Net Value'(018) CENTERED,
    185 sy-vline,186(4) 'Curr'(019),
    190 sy-vline,191(5) 'Per'(020),
    196 sy-vline,197(4) 'Unit'(021),
    201 sy-vline,202(15) 'To be Invoiced'(023) CENTERED,
    217 sy-vline,218(4) 'Curr'(019),
    222 sy-vline,223(7) 'Doc.Cat'(026),
    230 sy-vline.
    ULINE.
    ENDFORM. " header
    *& Form toggle_color
    This routine alters the color of the records in the list FORM toggle_color.
    IF gv_dial = space.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    gv_dial = c_x.
    ELSE.
    FORMAT COLOR 1 INTENSIFIED OFF.
    CLEAR gv_dial.
    ENDIF.
    ENDFORM. " toggle_color
    *& Form LINE_SEL
    *When double clicked on EBELN field display the details of Purchase Doc
    FORM line_sel.
    CASE sy-lsind.
    WHEN '1'.
    DATA: lv_field(20),
    lv_value(10),
    lv_bstyp like i_rep-bstyp.
    clear: lv_bstyp,lv_value, lv_field.
    GET CURSOR FIELD lv_field VALUE lv_value.
    IF lv_field = 'I_REP-EBELN'.
    IF NOT lv_value IS INITIAL.
    READ LINE sy-index FIELD VALUE i_rep-bstyp
    INTO lv_bstyp.
    READ CURRENT LINE FIELD VALUE i_rep-bstyp INTO lv_bstyp.
    if lv_bstyp = 'F'.
    SET PARAMETER ID 'BES' FIELD lv_value.
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    elseif ( lv_bstyp = 'K' or lv_bstyp = 'L' ).
    SET PARAMETER ID 'VRT' FIELD lv_value.
    CALL TRANSACTION 'ME33' AND SKIP FIRST SCREEN.
    elseif lv_bstyp = 'A'.
    SET PARAMETER ID 'ANF' FIELD lv_value.
    CALL TRANSACTION 'ME43' AND SKIP FIRST SCREEN.
    endif.
    ENDIF.
    ENDIF.
    ENDCASE.
    ENDFORM. " line_sel{code]
    <REMOVED BY MODERATOR>
    kushagra
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 2:03 PM

  • SRM-EBP:  How to delete multiple entries in table BBP_DOCUMENT_TAB easier?

    We are running SRM 4.0 EBP on classic scenario.  I want to delete entries in table BBP_DOCUMENT_TAB easier and faster using FM BBP_DELETE_FROM_DOCUMENT_TAB.  Is there a standard program that calls this FM so that inputting the entries will be faster?  I see only CLEAN_REQREQ_UP but does not serve the purpose.  If none, how can I develop a program to achieve this?  Please help SRM Consultants.

    Hi,
    Please check note 535765, in it there is a special report that deletes entries from this table.
    I hope this helps,
    Kind Regards,
    Lisa

  • I have to make Multiple entry at table maintanance at a time

    Hello all,
    My requirment is to enable the multple user can loginto the same table for making there entry simultaneosuly .
    i have created the table and table maintance as well. and i have created the new lock object and added the code accrdingly and i have used the custom fm which is generated in the tablemainta  function group.
    forex: table xyz
    user 1 , 2, 3, 4, 5,so on..
    table should allow all user tomake there entry at time and the entry edited one user should be disabled to other user.
    I have gone the forum i didnt found the correct one ..plz guide me ..plz find the attached code .i got this code and referredthe samein my prog ..any suggestions on the below.
    1.       Create table ZTEST_SHUKS3.
    2.       Create table maintenance generator for the table. 
    3       Create lock object EYTSS_E433SH in SE11. Give it name as EZTEST_SHUKS3. 
    4       create a report  ZREP_SHUKS3 and transaction code ZTEST_SHUKS3  to call this report. This tcode will call table  mainatance     generator of table ZTEST_SHUKS3 . 
    5  create the report as below
    6 Now open table maintenance function  group(ZTEST_SHUKS3)  in SE80.We know for table maintenance SAP automatically creates code in the function group. Now we will make some modification in that existing code to change the behavior. Open the screen you created through table maintenance and add one module. 
    screen: 0001
    double clik on screen and add one module in PBO of the screen
    loop at extract with control
    tctrl_ZTEST_SHUKS3 CURSOR NEXTLINE.
    MODULE LIST SHOW LISTE
    ADD HERE
    MODULE m_change_locking
    Check the code below to be added in the module m_change_locking. 
    MODULE m_change_locking OUTPUT.
    *Call the function module corresponding to the lock object we created
      CALL FUNCTION 'ENQUEUE_EZTEST_SHUKS3'
        EXPORTING
          matnr          = ztest_shuks3-matnr
          werks          = ztest_shuks3-werks
        EXCEPTIONS
          foreign_lock   = 1
          system_failure = 2
          OTHERS         = 3.
      IF sy-subrc NE 0.
    row is locked..hence gray..
        LOOP AT SCREEN.
          screen-input = 0.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " m_change_locking  OUTPUT 
    REPORT  zrep_shuks3.
    **Selection range for view maintenance
    DATA:
      BEGIN OF selekttab OCCURS 1.         "Selektionsbereich
            INCLUDE STRUCTURE vimsellist.
    DATA: END OF selekttab,
    **Table of inactive CUA functions for view maintenance
    BEGIN OF excl_cua_funct OCCURS 1.    "inaktive CUA-Fkt bei View-Pflege
            INCLUDE STRUCTURE vimexclfun.
    DATA: END OF excl_cua_funct.
    DATA: lt_enq_del TYPE STANDARD TABLE OF seqg3,
          lt_enq_read TYPE STANDARD TABLE OF seqg7,
          lw_enq_read TYPE seqg7,
          lw_enq_del TYPE seqg3,
          lv_subrc TYPE sy-subrc.
    *Read all the lock details in system
    CALL FUNCTION 'ENQUE_READ2'
      EXPORTING
        gclient = sy-mandt
        gname   = ' '
        guname  = '*'
      TABLES
        enq     = lt_enq_read.
    *We will search entry for table level lock for our table
    LOOP AT lt_enq_read INTO lw_enq_read
    WHERE gname EQ 'RSTABLE'
    AND   garg CS 'ZTEST_SHUKS3'.
      MOVE-CORRESPONDING lw_enq_read TO lw_enq_del.
      APPEND lw_enq_del TO lt_enq_del.
    ENDLOOP.
    *Delete table level lock entry for our table
    CALL FUNCTION 'ENQUE_DELETE'
      EXPORTING
        check_upd_requests = 1
      IMPORTING
        subrc              = lv_subrc
      TABLES
        enq                = lt_enq_del.
    *Now call the table maintenace generator.
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
      EXPORTING
        action               = 'U'
        view_name            = 'ZTEST_SHUKS3'
        show_selection_popup = 'X'
      TABLES
        dba_sellist          = selekttab
        excl_cua_funct       = excl_cua_funct.
    I followed the same steps but still not getting the multiple user enable .
    plz help
    regards
    Raju
    Edited by: abaprthree on Jul 22, 2009 7:54 PM

    Hi,
    I think you are looking for the report which will allow only for entries not for change. In this case, at PBO you write the code to make all the rows in display mode which have records using LOOP at SCREEN .....ENDLOOP. When you click on on NEW ENTRY button, add blank rows and put user entries. When you save,check for existing entries in the table because many users are entering the data at the same time, so check for duplicates KEY entries and UPDATE the table on SAVE button. If you will go in this way, I don't think you have to go for LOCK object. It's required only if you are going for EDIT mode.

  • Error "No entry in table T589A for P" while creating new Infotype

    HI,
    I've created a new infotype (9605). All the tables, structures, screens etc. have been created using transaction PM01 successfully. But upon execution of Infotype from PA30, the infotype screen is displayed with the following error:
    "No entry in table T589A for P"
    Any input will be highly appreciated.
    Thank you,
    Farooq.

    Hi Farooq,
    Untill and unless the the field PSYST-IOPER is cleared explicitly in the program MP960500 (in PBO modules), this error should not occur.
    Also is this error is coming only for 9605 infotype ? Also is any other info availaible in the error message such as entry in table t589a is not available for which value of OPERA (INS, MOD, DEL, LIS etc) ?
    Regards,
    Shrinivas

  • Error "No entry in table T551A" while creating set work schedule rule.

    Dear Team,
    I am getting following error while creating set work schedule rule.
    Error "No entry in table T551A" for key 22 BBB [ here BBBB is my period work schedule]
    The actual prob is i configured all the necessary steps but when i tried to create work schedule rule im getting this error. Also, in the same screen there is one field DWS grouping initially value in this is 00 and gread mode. But after giving ES grp, holiday calander ID etc etc when i try to save that screen that value is chainging to 22 from 00.
    My ES grop=2 and PS grop=2 . Is that value is my ES and PS grouping..?? or some other thing.
    Request you to please help me out.
    Regards
    Shab.

    HI, there are 8 steps you need to do below:
    1. Group Personnel Subareas for the Daily Work Schedule
    2. Group Personnel Subareas for the Work Schedule
    3. Define Break Schedules
    4. Define Daily Work Schedules
    5. Define Period Work Schedules
    6. Define Employee Subgroup Groupings
    7. Define Groupings for the Public Holiday Calendar
    8. Set Work Schedule Rules and Work Schedules
    All of them belong to TIME MANAGEMENT. I think you miss some steps above.
    Please check it again.
    Regards!
    Minh

  • Tables TCURM and T001K inconsistent Error While Creating Materials by BAPI

    Hi I am Using the BAPI
    BAPI_MATERIAL_SAVEDATA to create Material Masters I am creating all views for a Material.
    When I repeatedly run the BAPI for Multiple runs to create the Materials for Multiple plants and multple sales Views
    I get an Error Message when it is tryng to create accounting and costing View
    The error is Tables
    TCURM and T001K inconsistent; notify your systems administrator
    I dont get this message if I create one Material.
    I get this error message only when I repeat the loop and try to create Materials for different valvation areas..
    Please some one give ur views ..
    I promise All replies will be rewarded..
    Thanks
    Martin

    Rob,
    This is the peculiar behavious of SAP.
    As i am trying to create the materials by using the BAPI with in Visual Basic.
    The error can be simulated by using online data entry
    i did a research on it and i found that the error can be overcome if we create the accouting view first and later oher views and this occurs if we try to create accouting views for other valuation areas are plants when we set the MRP_VIEW = "X" and ACCOUNT_VIEW = "X" and COST_VIEW = "X"
    i dont know the exact reason for all this...
    Thanks
    Martin

Maybe you are looking for

  • Tax sale & Purchase Report

    Hi sap Guru, when I  run this report S_ALR_87012357 here not shown a Customer Name & Customer Number. How i can find in this report ??? Thx Neha

  • Bringing Up/Activating VLAN on 2900

    Hi All, the vlan, highdruid, is down, how is it brought up..? Cheers. coolboarderguy... Cool#sh vlan VLAN Name Status Ports 1 default active Fa0/5, Fa0/7 2 highdruid act/lshut Fa0/1, Fa0/2, Fa0/3, Fa0/4 3 slick active Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa

  • Standard reports for fetching the Material Characteristics

    Hi, Do we have any standard reports in SAP for fetching the Material Characteristics. Regards, Siv

  • Setup: Item: Item Types (Inventory)

    Hello, I am trying to modify/add User Item Types in the Inventory module (logged in as an Inventory user...there is no inventory super user responsibility setup) however none of the fields are modifiable nor am I able to define andy new User Item Typ

  • Mobile version of forum?

    Guys, is there a mobile version of this forum? Everytime i try to load this forum from my phone, it takes forever.  I could click on topics and stuff but the page just loads endlessly.