Long text retrieval in HR

Long text retrieval in HR

If you need to retrieve long texts for a particular infotype you just need to run the macro: RP-IMP-C1-TX. The code below was written in version 4.5B.
REPORT ZHUGE_LONGTEXTS .
TABLES: PCL1,PA0000,T582S.
DATA: TX-KEY LIKE PSKEY.
DATA: BEGIN OF TEXT-VERSION,
        NUMMER TYPE X VALUE '02',
      END OF TEXT-VERSION.
DATA: BEGIN OF PTEXT OCCURS 200.
DATA:  LINE(78).
DATA: END OF PTEXT.
DATA: KEY1 LIKE PCL1-SRTFD.
DATA: KEY2 LIKE PCL1-SRTFD.
DATA: FINAL_KEY LIKE PCL1-SRTFD.
DATA: BLANK(7).
DATA: BLANK1(3).
PARAMETERS: PERNR LIKE PA0000-PERNR,
            INFTY LIKE T582S-INFTY,
            SUBTY LIKE PA0000-SUBTY,
            ENDDA LIKE PA0000-ENDDA,
            BEGDA LIKE PA0000-BEGDA.

IF SUBTY IS INITIAL.
 CONCATENATE PERNR INFTY INTO KEY1.
 CONCATENATE ENDDA BEGDA '000' INTO KEY2.
 CONCATENATE KEY1 KEY2 INTO FINAL_KEY SEPARATED BY BLANK.
 ELSE.
*-- if with subtypes
  CONCATENATE PERNR INFTY SUBTY INTO KEY1.
  CONCATENATE ENDDA BEGDA '000' INTO KEY2.
  CONCATENATE KEY1 KEY2 INTO FINAL_KEY SEPARATED BY BLANK1.
 ENDIF.

 MOVE FINAL_KEY TO TX-KEY.
 RP-IMP-C1-TX.

LOOP AT PTEXT.
 WRITE:/ PTEXT.
ENDLOOP.

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

This was first published in June 2003

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.