‎2020 Jan 22 12:12 PM
you have an example code for the fm SAVE_TEXT to modify the texts containing the delivery?
‎2020 Jan 22 12:32 PM
nick.reyan
Try the Below Code:
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = HEADER
savemode_direct = ABAP_TRUE
TABLES
lines = LINES
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.To brief you on few parameters of these FMs are given below:
Text Id:Which will be differing for each transaction level texts.
Text Object:This parameter also plays a similar role just like Text Id.
Text name :In Case of standard texts the text name will be the name which we used in creating a standard texts, in other transaction oriented texts it will be either concatenation of Client and document number or concatenation of Client and few other fields which can be found out through the view relating to that particular transaction.
Language:This is the field where we enter our desired language keys maintained for each language. The language Key for each language can be obtained from the data base transparent table T002.
LINES Table should hold the text that you want to update.
In any standard Texts you can get the above details by navigating to GO TO-->HEADER.
Regards!
‎2020 Jan 22 12:23 PM
‎2020 Jan 22 12:32 PM
nick.reyan
Try the Below Code:
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = HEADER
savemode_direct = ABAP_TRUE
TABLES
lines = LINES
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.To brief you on few parameters of these FMs are given below:
Text Id:Which will be differing for each transaction level texts.
Text Object:This parameter also plays a similar role just like Text Id.
Text name :In Case of standard texts the text name will be the name which we used in creating a standard texts, in other transaction oriented texts it will be either concatenation of Client and document number or concatenation of Client and few other fields which can be found out through the view relating to that particular transaction.
Language:This is the field where we enter our desired language keys maintained for each language. The language Key for each language can be obtained from the data base transparent table T002.
LINES Table should hold the text that you want to update.
In any standard Texts you can get the above details by navigating to GO TO-->HEADER.
Regards!
‎2020 Jan 22 12:41 PM
I am not a developer, but why don't you simply place a break point in the FM and then add a text via the corresponding standard transaction? In this way you will see how SAP does it... at least this is the approach that I frequently use when I have to prepare development specifications.
You may need the help of a functional consultant to understand what kind of texts and textids you are expected to modify. Depending on the kind of texts the header parameter will be filled differently in the case of SD deliveries ( VBBK vs VBBP for example).
‎2020 Jan 22 7:39 PM