Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

reagarding the header text table

anup_deshmukh4
Active Contributor
0 Likes
548

Hello Experts,

I am using BAPI_PR_CREATE bapi for creating a PR my problem is as follows i am getting the header text in a string format and i need to build the table from string for the paramater PRHEADERTEXT LIKE BAPIMEREQHEADTEXT for bapi

can i get a function module for this and

another Question is that i want to add a long text at header level just like we add at line item

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489
i am getting the header text in a string format and i need to build the table from string

I have a soln for this prob..

DATA: BEGIN OF TABLE OCCURS 10 ,
STR(100),
  END OF TABLE.

DATA WA LIKE LINE OF TABLE.

CALL FUNCTION 'IQAPI_WORD_WRAP'
  EXPORTING
    TEXTLINE                  = 'sumit12sddadsadasd3456789'
*   DELIMITER                 = ' '
   OUTPUTLEN                 = 5               " this is the length of each peice
* IMPORTING
*   OUT_LINE1                 =
*   OUT_LINE2                 =
*   OUT_LINE3                 =
 TABLES
   OUT_LINES                 = TABLE
* EXCEPTIONS
*   OUTPUTLEN_TOO_LARGE       = 1
*   OTHERS                    = 2
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards,

Sumit Nene

2 REPLIES 2
Read only

Former Member
0 Likes
490
i am getting the header text in a string format and i need to build the table from string

I have a soln for this prob..

DATA: BEGIN OF TABLE OCCURS 10 ,
STR(100),
  END OF TABLE.

DATA WA LIKE LINE OF TABLE.

CALL FUNCTION 'IQAPI_WORD_WRAP'
  EXPORTING
    TEXTLINE                  = 'sumit12sddadsadasd3456789'
*   DELIMITER                 = ' '
   OUTPUTLEN                 = 5               " this is the length of each peice
* IMPORTING
*   OUT_LINE1                 =
*   OUT_LINE2                 =
*   OUT_LINE3                 =
 TABLES
   OUT_LINES                 = TABLE
* EXCEPTIONS
*   OUTPUTLEN_TOO_LARGE       = 1
*   OTHERS                    = 2
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards,

Sumit Nene

Read only

0 Likes
489

Hello experts your views on adding a one more header note like extra long text for PR ?