cancel
Showing results for 
Search instead for 
Did you mean: 

copy customer master text into Sales Document

Former Member
0 Kudos

I have the standard VOTXN set up for an extra customer master header text field. Now I would like this field to be copied into any new sales documents that are created. Do I need to do a VOFM routine for this ?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi! Pri,

You can achieve your objective as follows:-

Follow the menu path

IMG>S & D>Basic func>Text Control>Define And Assign Text Determination Procedures> On the screen here click on radio button Sales Document - Header(basically you are selecting here the target object where the text has to be copied) & click on tab 'Change'

You would be directed to screen 'Text Determination procedure Sales Doc header overview', on the left side margin select >Text procedure assignment> Check if there exists an entry against your selected Sales Doc type, if not make an assignment.

Ex. In the standard version of SAP against Sales document type OR the assignment is '01'.

Now on the left side margin select >Textprocedure> select a text procedure(from the ex. above say select the entry '01' > click on> Text ID's in Textprocedure> There would be some Text IDs available here(these are the targets where text from the source is copied). In the last column there are mentioned 'Access Seq' for each of the text IDs(Lets say you select the text ID 0001, then 'Acc Seq' in the standard system is '1'.

Now on the left margin select Access Sequence> select the entry '1'>click on Access sequence for Text ID's, in this table you can maintain the entries for the source of text (lets say Customer master texts or text from Material Master). Ex. KNVV is text object for Customer Master or MVKE is text object for texts in the material master.

If you want to copy the text from Customer master mention value 'KNVV' under the heading 'text object' , and in the third column we would be more specific of which text ID to use out of the available ones in the text object 'KNVV'.

this way you can have a text copied from Customer Master to Sales order.

Hope this helps. Give your feedback.

Regards,

PATHIK

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shankar ,

Did u get the solution ?because I have simlar requirement .

Please help me what to write that subroutine .

Thanks in advance

Regards,

Suma

Former Member
0 Kudos

Hi,

Follow these steps..

1) T-code VOTXN ,for the text object Customer>Sales and distribution>click the Text types-->create your 4 digit Text ID

2) Come back to initial screen of this t-code and again selct the text object Customer-->Sales and distribution and click change. Select the text procedure and double click on the Text IDs in text procedure.Here you create a new sequence and select the 4 digit Text ID you have created initialy.

3)Asign the Text procedure which you have selected in step2 and double click onText procedure assignment .Here you assign the Text ID to the Customer Accout group.

4) In the customer master,sales area tab>Extras menu>text,Select the text which you have created now and enter text into it. and save.

The text which you have created now ,can be used for multiple purpose(Ex.sales order,delivery,billing,pricing,inforecords,legal). for example in this case, You just want to display this text during sales order processing,then proceed as follows,

5)T-code VOTXN ,for the text object Sales document>Header>click the Text types-->create your 4 digit Text ID.

6)Come back to initial screen of this t-code and again selct the text object Sales document-->Header and click change. Select the access sequence and create new acces sequence(This access sequence is similar to that of in Pricing).Select this acces sequence and double click the access sequence for text ids.Here in the first column this is Serial no.second column is text object(This is the area from which text has to be refer.In our case we have created the customer Text object for sales and distribution area,so i.e.KNVV) and the next column is Text id,This is the id which we have created at customer text object for sales and distribution initialy,at step 1). The next column is partner function,it will identify for which parter this text has defined.Next 2columns are Languages(if you want to define for all langugage or specififed language),next column is for specified languge for partner function.if you have any requirement to be fulfilled you can create those requirements in the next columns or else leave blank,save and come back to text proceudure.id.

7)Select the text procedure(for ex.01-Sales header) and double click on the Text IDs in text procedure.Create new entries Fill in the sequence and the text id which we have created for sales document-header(in step 5).There is a small check box in the 3rd column which is used whether the text should be refered or copied(this is used if you want to modify the text during the sales order processing or just dispaly the originail text as it is),next column is whether the text should be displayed while creating or it is not obligatory, last column is acces s sequce,this is nothign but the sequence which we have created in step 6) and save.

8)in the final step assign the text proceudre id to the particualre sales order.

As already we have created the customer text in the customer master record,so during the processing the sales order,the text should be displayed once the customer number is keyed in.

Please reward,if this helps you..

Regards

Simu

Former Member
0 Kudos

Thanks that is helping, one more question.

Does the Access Sequence number have to be the same as the text ID (ala in step 6) , or can it be something different ?

ie. if I have text ID 1002 can I assign it to access sequence 4, or does it have to be assigned to access sequence 1002 (the same specific number) ?

THanks again in advance

Former Member
0 Kudos

Hi !! Bill,

Yes u can use any acess sequence you want. There is no such limitation.

Also provide the feedback if your issue is solved?

Regards,

PATHIK

Former Member
0 Kudos

Hi Pathik and Simhadri,

I have a similar case where a text message will popup when a user tries to insert a new line item into an existing sales order. (VA02). This popup message is stored in customer master text field. I have a require to write small code using VOFM text.

The details are as follows.

have requirement from the business that whenever a user tries to add a line item to the existing sales order (VA02), a pop up message should appear as instruction. (No hard Stop). This message is stored in the customer master text information.

I have made all necessary config and need to complete this VOFM routine which I need to assign this to the access sequence of the text determination.

My config details are as follows;

Text ID created at both customer as well as Sales Item ZNLN

The access sequence object ID KNVV_ZNLN.

I need to add the appropriate code to say that whenever an insert of new line item in VA02, get a opp message whcih is stored in Customer master as text ID ZNLN. I have to add thhis in the following program.

FORM BEDINGUNG_PRUEFEN_900

USING BP_SUBRC.

*{ INSERT RS1K902605 3

*

BP_SUBRC = 0.

IF FTVCOM-VBELV IS INITIAL

OR FTVCOM-POSNV IS INITIAL.

BP_SUBRC = 4.

ENDIF.

*} INSERT

ENDFORM.

Will you help me in inserting the code as requested. I would really appreciate your help. Your earllu reply is highly appreciated.

Thanks for your help

Shankar

Former Member
0 Kudos

Hi Shankar ,

Did u get the solution ?because I have simlar requirement .

Please help me what to write that subroutine .

Thanks in advance

Regards,

Suma