cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing Routine : Can we get the VBAP Data in this pricing routine.(VOFM)

Former Member
0 Kudos

Hi All,

I have Created a Picing routine 901 in VOFM ->Requirements ->Pricing.

in the Form KOBED off the routine 901 can we access the Item Level Data of Sales Order?

One way is in the User Exit MV45AFZZ in Fom USEREXIT_PRICING_PREPARE_TKOMP

Export VBAP line item into the memory and then when the picing routine is triggered

Import it from the Memory and use it.

Any other efficient way/ or easeir way? Please Reply....

Edited by: Mohammed Iqbal on Sep 2, 2008 10:39 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohammed,

did you check if xvbap is flowing there

ithink it should

xvbak xvbap and xkonv should serve your purpose

if not put a debug point and then when it comes there activate the new debugger and then go to Global parameters, here you will get a list of all the global tables flowing into the pricing routine.

Regards,

ravi

Former Member
0 Kudos

Hi Ravi,

None of xkonv ,xvbak,xvbap are available.

thanks

Former Member
0 Kudos

XKOMV flows in for sure

can you try to map data according to that

regards,

ravi

Former Member
0 Kudos

Hi,

You can access xvbap table using field symbols.

Try below mentioned code in routing:

constants: c_xvbap TYPE char30 VALUE '(SAPMV45A)XVBAP[]' .

FIELD-SYMBOLS: <fs_xvbap> TYPE ANY TABLE.

data: wa_xvbap TYPE vbapvb.

DATA: it_xvbap TYPE TABLE OF vbapvb.

ASSIGN (c_xvbap) TO <fs_xvbap>.

"xvbap

LOOP AT <fs_xvbap> INTO wa_xvbap.

APPEND wa_xvbap TO it_xvbap.

ENDLOOP.

Then later you can use internal table it_xvbap. Hope this will work for you.

Sumit

Former Member
0 Kudos

Sumit Thanks Very Much that is Superb Solution!

Edited by: Mohammed Iqbal on Sep 4, 2008 9:10 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mohammed,

did you check if xvbap is flowing there

ithink it should

xvbak xvbap and xkonv should serve your purpose

if not put a debug point and then when it comes there activate the new debugger and then go to Global parameters, here you will get a list of all the global tables flowing into the pricing routine.

Regards,

ravi