Write Cluster TX (PCL1)

Hi,
i would like to create/change an it 0040 (objects on loan) without using PA 30 or Batch-Input. I would prefer to use HR_INFOTYPE_OPERATION. But i can not handover the textlines given in It 0040 ( can i ???? ).
It is not a problem to read the texts from the infotype with i.e. HRWPC_RFC_IT0XXX_TEXT_GET or rp-imp-c1-tx.
But how can i write back the infotype data ? When i use rp-exp-c1-tx (with correct pskey) it seems like the cluster does no longer refer to the infotype and all textlines in it 0040 are blank.
Does anybody know how to write the cluster tx and fill the textlines in it 0040.

Hi Thomas,
the following piece of code worked for me. I was able to update the  text on an existing  record.
report  zp0040_tst                              .
data: i0040  like p0040 occurs 0 with header line.
data: pskey  like pskey.
data: subrc  like sy-subrc.
data: text type hrpad_text_tab.
data: asset_rec like line of text.
call function 'HR_READ_INFOTYPE'
  exporting
    pernr           = '9802'
    infty           = '0040'
    begda           = '20051201'
    endda           = '20051231'
  importing
    subrc           = subrc
  tables
    infty_tab       = i0040
  exceptions
    infty_not_found = 1
    others          = 2.
pskey = i0040.
asset_rec = 'line1'.
append asset_rec to text.
asset_rec = 'line2'.
append asset_rec to text.
asset_rec = 'line3'.
append asset_rec to text.
call method cl_hrpa_text_cluster=>update
  exporting
    tclas         = 'A'
    histo         = space
    pgmid         = space
    pskey         = pskey
    no_auth_check = 'X'
    text_tab      = text.
Good Luck,
Suresh Datti

Similar Messages

  • Write cluster data to datamining applicatio​n

    I currently use the DSC module and Citadel to save clusters of data to binary string tags. I use labview 7.0. Can I write this same cluster data to the new datamining application as a binary string or would the cluster info go into columns of data?? It looks like the datamining application would be easier to retrieve data than the historical Citadel vi's. Also would Diadem be required?? I'm just scoping out some ways to save data before writing my application.
    Maybe I should have put this in the labview forum instead of Diadem, is there a way to move messages to other sections??
    Message Edited by unclebump on 07-21-2005 05:20 AM

    Hello Unclebump,
                              It is not necessary to have DIAdem but it would a good option. The best option to start with is to learn more about DIAdem from http://www.ni.com/diadem/ and download the evaluation version from https://sine.ni.com/apps/we/nigb.guestbook?code=GB​_EVALDIADEM81&lang=US&gb_prof_id=1889&scode=&pr=18​... .  There is a lot of programming (what kind of clusters, do you have arrays in your cluster etc) that has to go into it and we can work with the DIAdem team if you have any specific questions about it.  Hope this helps.
    Regards,
    RMM

  • Read / write cluster array?

    Hi NG,
    is there an easy way to read and write an array of clusters? I've found
    neither anything like that in my literature nor in the internet.
    I't would be great if someone could help me!
    Greetings
    Florian

    Hi,
    you must use "Read File.vi" and "Write File.vi" to read/write array of clusters to the file.
    When you write data to the file, you just need to wire your array to "data" input node of "Write File.vi". Also you may wire TRUE to "header" input of this VI. The header with array sizes will be added to the file so you will be able to read array back as an array, not as elements. Read help about this.
    When you read data from the file, you need to wire the array of cluster constant to "byte stream type" input of "Read File.vi" to specify the type of data which will be read from file.
    Also there are some examples in LabVIEW which could help you. Go to menu "Help->Examples...->Fundamentals->File I/O->Datalog File Examples"
    Good luck.
    Oleg Chutko.

  • Write cluster to XML then save it as Non-readab​le

    I want to save large cluster of config data to file.  XML seems fastest and easiest way of doing.
    I want to save this XML to disk but I don't want the user to be able to read it.  Of course I want to be able to load the saved XML file again later.
    What's the best way to save it as non-readable?  Do XML format files have to have .xml extension for using LV XML VI's?
    Thanks guys.

    There are some ideas for protecting a configuration file (INI) on the LAVA forums...
    http://lavag.org/topic/10146-protect-ini-file/
    You could use some of the techniques suggested on your XML file or use INI
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Read/write hr infotype 2003 note

    Hi,
    Does anybody know how to read or write a note (accessible through F9) from ABAP? I cannot seem to get the usual object/name values to access through READ_TEXT.
    I have tried through macros without success.
    Thanks for any help,
    Phillip

    Hi Phillip,
      Text will be stored in PCL1 cluster.Please see one
      way of reading data from Cluster.
    * Include for PCL1
    INCLUDE RPC1TX00.
    CLEAR gs_p0219.
      CLEAR gt_p0219_text.
      REFRESH gt_p0219_text.
      SELECT * INTO CORRESPONDING FIELDS OF gs_p0219
       FROM pa0219
       WHERE pernr = gd_pernr
         AND subty = '5'
         AND endda = '99991231'.
      ENDSELECT.
      IF gs_p0219-itxex = 'X'.
        gs_p0219-infty = '0219'.
    * Get IT0219 comments from cluster table PCL1
        CLEAR tx-key.
        MOVE-CORRESPONDING gs_p0219 TO tx-key.
        MOVE '0219' TO tx-key-infty.
        IMPORT  text-version
                ptext
                FROM DATABASE pcl1(tx)
                ID tx-key.
        IF sy-subrc = 0.
    * Write out text
          LOOP AT ptext.
            WRITE ptext-line TO gt_p0219_text-text_line.
            APPEND gt_p0219_text.
            CLEAR  gt_p0219_text.
          ENDLOOP.
        ENDIF.
      ENDIF.
    In the same way you can write using EXPORT statement to the PCL1.
    Hope this is helpful to you.
    Thanks&Regrads,
    Siri.

  • Risks of changing the field length of data structure of a Cluster Table

    Hello,
    We are on ECC 604 and had implemented HR & Travel Management. Reporting on these applications is done in BI. We use ESS and & Mobile Travel for  time, travel expenses, etc and use PCLn clusters.
    There is business need to change the length of a field from 20 to 40 for the data structure PTK** of cluster table PCL1. 
    We are exploring various options to avoid core modifications.
    We are also assessing the risks associated with changing the field length.
    I  am asking you for your opinion about the risks associated with changing the field length of a data structure of cluster table.
    Thanks & Regards,
    Manoj K Pingali

    Recently, we came across the same situation where we had to change the length of a field. Let me explain you what precautions we had taken during that time.
    1. Apply the where use list of that table/ Field and check whether it has been used in some program and FM or not. If yes then check one more thing that check the TYPE of another variables on which system has populating data (move, write or in FM parameters). if you will not consider this then you can land you in big trouble. (Conversion dump)
    2. Ask the basis to take a dump of the production, quality and data for the safer side if something does not go right.
    Now, you can do the changes in your development system and then adjust the database and see the impact of it.
    Hopefully, you will not come across any difficult situation in this changes.
    Thanks.
    Anurag

  • Fetch data from PCL1

    Data for travel expenses are stored in cluster table PCL1. 
    The coding for getting the data can be found in source of program RPC1TE00.
    The key to find the Travel information is composed of Personnel number, travel number, period and travel version. Select the first record found corresponding to combination of personnel number and travel number.
    Import data from database.  The advances are stored in table VSCH. VSCH is an internal table declared in the program  RPC1TE00.Search for the last positive amount having a date <= travel beginning date (found in PTRV_HEAD table) and currency code = to field 8 of travelex record.
    Exchange rate is stored in field VSCH-KURSV.

    Hi,
    Say you have two schema S1 and S2 in the same database 'xyz' then you can create two database links to these two schemas from any third schema as ::
    CREATE database link s1link connect to S1 identified by <password of S1> using 'xyz' ;
    CREATE database link s2link connect to S2 identified by <password of S2> using 'xyz' ;
    Now say if there is a table called tab1 in schema S1, then you can get data from it as ::
    SELECT T1.*
    FROM tab1@s1link T1
    WHERE < you can put conditions here> ;
    Similarly for the columns of a table of schema S2.
    - Thanks
    Sandipan

  • Unable to mark ITXEX field for first subtype in IT40

    Hi,
    My problem is as follows:
    1. I am using a bespoke ABAP program to create a subtype (any subtype) for IT40 (objects on loan).
    2. The program is able to create the infotype - subtype records correctly. This is was verified using PA30.
    3. However, if the subtype created is the first record i.e. SEQNR = '000', the ITXEX field would NOT be marked, i.e. ITXEX=X.
    4. Subsequent created records of the same subtype e.g. SEQNR = '001, 002...etc' will be marked however.
    What happens then is that the comments are not displayed for the first subtype record in PA30. They are however displayed for all subsequent records.
    I am able to see all the created records in table PA0040. Also, the cluster table PCL1 is updated with a new record each for each records created in PA0040.
    I am using HR_INFOTYPE_OPERATION (Mode = 'INS') to create the record and CL_HRPA_TEXT_CLUSTER Update method to write the comments into the cluster table.
    I am unsure if this could be a config issue. Please help if you know what is going on.

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Payroll Integration

    Hi Everyone...
    I just started doing integration with SAP to our product. I need to build Java interface to pull SAP HR Payroll data. As you know HR Payroll Data is in cluster tables (PCL1,2,3,4,5). I am using JCO libs to communicate to SAP, I could able to pull data from transparent tables, but stuck with cluster tables. With my research revealed that I don't have any existing RFC or BAPI to pull raw cluster tables data, unless write one. My concern is we install our integration package in customer non SAP system and we will provide our service out of the SAP box/system by pulling SAP data. My concern is I don't want to touch customer SAP system and don't want to install new RFC or BAPI in their system, trying for any other solution that I can use. Further research revealed that I can configure US Infotypes 446 to 457 where all payroll results will be loaded and I can use Infotype tables to directly read payroll results data. The other one is IDOC. Could any one have this kind of experience and suggest me what is the best way to go from here. Also I tried to configure Infotype 402, 446-460... None of them loading data after processing payroll or by running payroll data filler program (RPABRI00). Please throw some lights on this, I am kind of stuck here... 
    Are there any issues using JCo, I mean opening up SAP ports within their own network to communicate with our product, but resides and operated by customer itself.
    Thanks.
    Heggs

    Thanks all for the reply.
    I did try these function modules, but are not RFC's. They are not remotely enabled, hence I can't use them from JCo.
    If I try to remotely enabled any of these, complains for type of the data or structure. First of all I am not sure SAP allows to change the Attribute for standard ABAP functions, any clue. If so what is the procedure to make those functions remotely enabled.

  • PNPCE -- Payroll results

    When using PNPCE LDB, how to retrive payroll record for an employee.
    Regards
    Manvi

    Hi,
    Please refer to the following code.
    Basically the payroll data is stored in  the Cluster tables PCL1 and PCL2.
    If help ful please reward points.
    Regards,
    Irfan Hussain
    *& Report  ZHR_READ_CLUSTER                                            *
    REPORT  ZHR_READ_CLUSTER                        .
    TABLES : PERNR,
           PCL1,
           PCL2.
    Infotypes : 0001,
               0002.
    Data : molga like t001p-molga,
         num  like pc261-seqnr.
                       STANDARD INCLUDES                                *
    INCLUDE rpc2cd09.  " Data Definition - CD Cluster INCLUDE rpc2ca00.  " Data Definition Import/Export Macros for ClusterCA INCLUDE rpc2ruu0.  " Data Definition for Cluster RU (USA) INCLUDE rpc2rx09.  " Cluster RU Data-Definition internat. part INCLUDE rpppxd00.  " Data befinition buffer PCL1/PCL2 INCLUDE rpppxd10.  " Common part buffer PCL1/PCL2 INCLUDE rpppxm00.  " Buffer handling routine
    Start-Of-Selection.
    Get Pernr.
    rp_provide_from_last p0001 space pn-begda pn-endda.
    CALL FUNCTION 'CU_READ_RGDIR'
    EXPORTING
       persnr                  = pernr-pernr
    IMPORTING
    MOLGA                    = molga
    tables
       in_rgdir                = rgdir
    EXCEPTIONS
    NO_RECORD_FOUND          = 1
    OTHERS                  = 2
    IF sy-subrc = 1.
    write /: 'No Records Found'.
    ENDIF.
    CALL FUNCTION 'CD_READ_LAST'
    EXPORTING
       begin_date            = pn-begda
       end_date              = pn-endda
    IMPORTING
    OUT_SEQNR            = num
    tables
       rgdir                = rgdir
    EXCEPTIONS
    NO_RECORD_FOUND      = 1
    OTHERS                = 2
    IF sy-subrc = 1.
    write :/ ' No Payroll Exist'.
    ELSE.
    rx-key-pernr = pernr-pernr.
    rx-key-seqno = num.
    rp-imp-c2-ru.
    IF SY-SUBRC = 0.
    PERFORM PRINT_FORM.
    ELSE.
    WRITE :/ 'Results Could not be read this time'.
    endif.
    ENDIF.
    *&      Form  PRINT_FORM
         text
    -->  p1        text
    <--  p2        text
    form PRINT_FORM .
    DATA : l_betrg LIKE p0008-bet01,
         l_betrg1 like p0008-bet01.
    read table rgdir with key seqnr = num.
    IF sy-subrc = 0.
       WRITE:  /1 'Empd id' COLOR 1,20 p0001-pernr COLOR 5,
               /1 'Name' COLOR 1,20 p0001-ename COLOR 5,
               /1 'Personnel Area' COLOR 1,20 p0001-werks COLOR 5,
               /1 'Personnel Subarea' COLOR 1 ,20 p0001-btrtl COLOR 5.
       SKIP 1.
       WRITE: / 'For-period' COLOR 1, 30 rgdir-fpper  COLOR 3,
               / 'In-period' COLOR 1, 30 rgdir-inper COLOR 3.
       SKIP 1.
    ENDIF.
    loop at crt where lgart = '/101' or lgart = '\5UH' .
           if crt-cumty = 'Q'.
                 l_betrg = l_betrg + crt-betrg.
           endif.
    endloop.
    loop at crt where lgart = '/102' and cumty = 'Y'.
               l_betrg1 = l_betrg1 + crt-betrg.
    endloop.
    l_betrg1 = l_betrg1 / 4.
    l_betrg = l_betrg + l_betrg1.
    write :/ l_betrg.
    endform.                    " PRINT_FORM

  • ABAP HR Overview

    I have good idea about HR. But I’m not that much expert .I’d like if you guys share your ABAP HR experience and give me some hints like how to read time data what are the basic ways and macros to read time management data. What are the different ways to read payroll data for reports? What are the ways to update cluster tables? How we update cluster tables, PCL1, PCL2, PCL3. When we use –n switch while defining infotypes. 
    How to read org structure what are the logical databases we use to read time, org and Pa and PD data? E.g. PNP, PNPCE, PCH
    Macros like “rp-provide form last” or “rp-provide-from first” . What are the other macros you guys use so often and why?
    When we usually use provide and endprovide instead of select statement.
    Any types of  things you have experienced in HR . Please mention that’ll help me to brush up my HR skills .
    Thanks a lot
    Message was edited by: Suleman Javed

    Hi Suleman,
    Try the following links
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://www.saptips.com/Previews/SAPtipsAugust-September2004TableOfContents.pdf
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d528be575e11d189270000e8322f96/frameset.htm.
    There is a book available on SAP Press, www.sap-press.com, on technical principles of SAP HR programming.
    You can additionally take a look at
    http://www.sap-basis-abap.com/saphr.htm.
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/workflow/scenarios.htm
    Pls go thru following FAQ links. It will be useful.
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.sapgenie.com/mysap/mysap_hr.htm
    You can also refer to the standard SAP course HR350 "ABAP Programming in HR" .
    reward points if it helps..
    regards,
    manikandan R

  • Saving data clusters

    Hi,
    I've just got a question concerning the best way to save my data. I'm using LV 7.0 and Vision 7.1 on a 2P Microscope.
    I'm acquiring images, heartbeat of the animal and a stimulation signal which all depend on the same internal clock.
    Now, for each image, I record simultaneously the heartbeat and the signal from the stimulation apparatus. (This equals about 50 values for each signal per image)
    Saving clusters including two arrays of data is not possible. Knowing that I would like to open and work on the files easily afterwards and play all of it back simultaneously (the film showing the cells should run above the waveforms showing the heartbeat and the stimulation signals) wht would be the best way to save this large data files?
    Converting all images into arrays and saving a set of arrays, saving everything one by one images, heartbeat and stimulation and then using a VI to open everything at once, ...
    I know this is probably not vey complicated but if anyone has some experience, I would be grateful. As we will use it to record and exmaine films lasting abour ten minutes to half an hour, acquiring images at 10-20Hz, the amount of data becomes overwhelming very quickly...
    Thanks

    But you can indeed save and read data in form of clusters( containing arrays, strings, numerics , boolean etc)
    Look at attached VI's
    regards
    Dev
    Message Edited by devchander on 01-16-2006 06:05 AM
    Attachments:
    write cluster.vi ‏27 KB
    read cluster.vi ‏29 KB

  • Regarding B1 event

    The infotypes  2000 to 2999 store time related data. But i found B1 cluster which is time events . what information is stored in B1 event in cluster table PCL1.
    thanks,

    Dear Abdul,
    PCL1 - Database for HR work area
    Database Table PCL1
    · The database table PCL1 contains the following data areas:
      B1 time events/PDC
      G1 group incentive wages
      L1 individual incentive wages
      PC personal calendar
      TE travel expenses/payroll results
      TS travel expenses/master data
      TX infotype texts
      ZI PDC interface -> cost account
    Cluster B1:
    All clusters for entry data are contained in file PCL1. This also includes cluster B1, which stores several tables containing information on the employee’s time events and on status data for time evaluation.
    Unprocessed time events
    Error table ERT
    Selected monthly balances
    Table QT, which contains various status fields for time evaluation
    Use
    If the results of time evaluation are not clear, you can use cluster reports to display the data determined. Report RPCLSTB1 allows you to view the data in c luster B1, arranged into tables.
    You can also view cluster B1 via the Time Management pool. You can display the content of cluster B1 tables for individual employees in the Error handling transaction by choosing -> Goto -> Evaluation result.
    Structure
    File PCL1 contains only temporary clusters. Cluster B1 tables are only filled if the data contained in them has not yet been processed by the time evaluation report.
    Visit the following link for more information on cluster B1:
    http://help.sap.com/saphelp_erp2004/helpdata/en/8a/98569346c411d189470000e829fbbd/content.htm
    Hope this will help.
    Regards,
    Naveen.

  • Reading Infotype 0028 Long Text

    Hi Experts,
    I have a BADI Implementation which is dealing with Infotype 0028 (Internal Medicine Service).
    My problem is that, at the time my badi implementation is triggered, long text is not yet saved to cluster table PCL1. For this reason, my statement "IMPORT ptext FROM DATABASE pcl1(tx) ID lwa_key" wasn't able to retrieve the long text of infotype 0028. I thought that if I would be able read from the buffer/memory of long text, I can get the long text value even if it is not yet saved in the cluster table.
    Is there a way that I could read the memory/buffer of long text?
    If you know other approach on how to solve this problem, kindly advice me.
    Thanks in advance guys.
    Ferdy

    Well, when i give it a little thought here it goes
    1. Is there no parameter in BADI which is storing this long text?
    2.If not then one of the way is by use of field symbol ,first you need to find it out in which
    variable the long text is stored and then you need to assign the memory of the variable
    to your field symbol memory
    The above two are just some simple feasible ideas which can be worked on
    Regards
    Bhanu

  • HR Clusters

    Hi Gurus,
    I am new to ABAP HR. I just like to know, whether the Cluster Tables in normal ABAP (SE11) is same as Clusters in HR ABAP?
    And also please give me some basic notes on CLUSTERS (from the scratch ).
    Thanks

    We generally refer to 4 cluster tables :
    PCL1 , PCL2 , PCL3 , PCL4.
    http://sap.ittoolbox.com/groups/technical-functional/sap-hr/accessing-cluster-tables-1058207
    http://fuller.mit.edu/hr/cluster_tables.html

Maybe you are looking for