Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Requested function & is not available here.

Former Member
0 Likes
10,197

Hello Experts

I need a quick help on how to get through an error " Requesting function & is not available here".

My requirement is to add a push button in the VA21 quotation screen, so that when the button is clicked it should default all the Order quantities to 1.

I have added the button and wrote my logic in PAI of the screen. But when testing I am not able to proceed with this error occuring.

Please help

Thanks

Navya

5 REPLIES 5
Read only

archanapawar
Contributor
0 Likes
7,597

Hi Navya,

Did you check whether this is standard error message? Double click on the message displayed, and note the message class and message number.

Now, Get into debugging mode and put breakpoint at statement 'message'.

It will stop at every message you encounter in the program. Execute all until you get to the desired message. Look for your message class and number that you got after execution.

This way you will come to know why the error message is coming.

Read only

former_member201275
Active Contributor
0 Likes
7,597

Please post your PAI code (specifically where you are stting sy-ucomm).

Alternatively please try this logic:

sy-ucomm = 'xxxx'.

fcode = sy-ucomm.

Read only

0 Likes
7,597

PAI Module code

data: lwa_vbap like line of xvbap.

data: lv_counter type vbap-posnr.

case sy-ucomm.

  WHEN 'QNTY'.

loop at xvbap into lwa_vbap.

  lv_counter = lv_counter + 1.

  lwa_vbap-posnr = lv_counter.

  lwa_Vbap-kwmeng = 1000.

  modify xvbap from lwa_vbap index sy-tabix TRANSPORTING posnr kwmeng."pvpos kwmeng.

endloop.

ENDCASE.

Read only

0 Likes
7,597

yo need to move your ucomm to fcode i.e.:

fcode = sy-ucomm.

Read only

0 Likes
7,597

Hi All,

You can maintain the required custom function codes in the T.code VFBS as follows.

1. Maintain related program name.

2. Check Function Codes radio button --> Change

3. Maintain the individual entries for each custom function codes which you want.

4. Check Development Support radio button, maintain an entry for the users who need authorizations for the program and function codes.

Best regards

Siva Kukkala