cancel
Showing results for 
Search instead for 
Did you mean: 

Text Determination

Former Member
0 Kudos

Hello friends,

I have requirement to conditionalize default export text (e.g. Z020) based on sales organization. On sales order create, we need to pull out SAP script text into order header text (e.g. Z020). This works well with customizing. Now with 2nd site going live, verbage would be different and this is what i thought:

1. Z-table to map sales org to corresponding SAP script text id

Sales org SAP script text id

2000 Z_2000_EXPORT_TEXT

3000 Z_3000_EXPORT_TEXT

2. Sales order user exit on VA01 save, would find SAP script text id for a sales org and copy that text to Z020.

Let me know if you see better solutions,

thanks,

Hetal

Accepted Solutions (1)

Accepted Solutions (1)

valentin_catalin2
Active Participant
0 Kudos

Hi,

I can recommend you other solution. In the access sequence assigned to your text id (in your text procedure) you can have a line which use a special data transfer routine - a new one.

Here is an example which is extracting different standard texts for different plants:

 data: l_st_text like REFERENZ-TDNAME.

  concatenate 'Z_POSTEXT_'
               ftvcom-werks
               into l_st_text.

  REFERENZ-TDID     = 'ST  '.
  REFERENZ-TDOBJECT = 'TEXT      '.
  REFERENZ-TDNAME   = l_st_text.

In the given example the standard text has the same beging as name "Z_POSTEXT_" and the rest is the plant code.

Regards,

Valentin

Former Member
0 Kudos

Hi Valentin,

thank you, let me try that out once get access key. Would keep you posted,

best regards,

Hetal

Former Member
0 Kudos

Hi Valentin,

Your solution works well, i awarded points to you.

best regards,

Hetal

Answers (0)