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

CALL_FUNCTION_CONFLICT_LENG error

Former Member
0 Likes
764

Hi freinds

i m getting run time error CALL_FUNCTION_CONFLICT_LENG

while using the call function CALL FUNCTION 'SAVE_TEXT'

pls help me by sending sample code

regards

4 REPLIES 4
Read only

Former Member
0 Likes
581

You will find the sample code here

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
581

Hi,

i think ur getting this problem bcz wrong passage of parameters to the FM. Try to pass same type as parameters of F.M

Regards

Rajesh

Read only

Former Member
0 Likes
581

Hi,

Check this sample code...


REPORT  Z_TEST_SAVE_TEXT                        .

TABLES:MAKT.
DATA: IT_LINSS TYPE STANDARD TABLE OF TLINE WITH HEADER LINE,
      IT_TDHEAD TYPE  THEAD .

CALL FUNCTION 'READ_TEXT'
  EXPORTING
*   CLIENT                        = SY-MANDT
    ID                            = '0002'
    LANGUAGE                      = 'E'
    NAME                          = '0000000241'
    OBJECT                        = 'VBBK'
  TABLES
    LINES                         = IT_LINSS
* EXCEPTIONS
*   ID                            = 1
*   LANGUAGE                      = 2
*   NAME                          = 3
*   NOT_FOUND                     = 4
*   OBJECT                        = 5
*   REFERENCE_CHECK               = 6
*   WRONG_ACCESS_TO_ARCHIVE       = 7
*   OTHERS                        = 8
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


IT_LINSS-TDLINE = 'ADDITIONAL TEXT'.

APPEND IT_LINSS.

IT_TDHEAD-TDNAME  = '0000000241'.
IT_TDHEAD-TDID = '0002'.
IT_TDHEAD-TDSPRAS ='E'.
IT_TDHEAD-TDOBJECT = 'VBBK'.
*APPEND IT_TDHEAD.


CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
*   CLIENT                = SY-MANDT
    HEADER                = IT_TDHEAD
   SAVEMODE_DIRECT       = 'X'
  TABLES
    LINES                 = IT_LINSS
 EXCEPTIONS
   ID                    = 1
   LANGUAGE              = 2
   NAME                  = 3
   OBJECT                = 4
   OTHERS                = 5
          .
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

vijay