cancel
Showing results for 
Search instead for 
Did you mean: 

VOFM formula on output control based on item category(PSTYV)

Former Member
0 Kudos

Hi Gurus,

I created an Output Control requirement in VOFM.

In the requirement ABAP codes, may I know how can I access the list of item lines category (looking for vbap-pstyv in particular) while I am creating the sales order in VA01, because the sales order is not saved yet, so I cannot get from table VBAP ?

Any way to find the variables available ?

Thanks in advance.

Best Regards,

Vasumathi

Edited by: komma vasumathi on Jun 22, 2009 3:26 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi there,

When the sales order is created, all data is stored in the internal tables 1st in USEREXIT_SAVE_DOCUMENT_PREPARE, MV45AV0V_VBAP-PSTYV_VALUES

in MV45AFZZ.

So you can refer the fields from there. Item catg is stored in XVBAP table.

But 1 doubt. Why do you want to trigger the O/p before the order is saved? Usually any O/p is triggered after saving the doc.

Once the document is saved, data is stored in data base tables & you can refer from them.

Regards,

Sivanand

Former Member
0 Kudos

Hi ,

Thanx for the solution .

Answers (0)