cancel
Showing results for 
Search instead for 
Did you mean: 

SAP VOFM

Former Member
0 Kudos

I have a require 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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shankar

i would do it like follows :

Mv45afzz - Userexit for VBAP

Ask with sy-tcode the Trancastion VA02

ask with Field T180-?? ..typ if the position is changes or new

If new

FB popup to decide

( sorry - i have no SAP-System at home - so the names not exact )

Hans

Answers (0)