‎2013 Oct 10 5:56 PM
Dear All,
I already gone through many forum but i could not find any solution so that i came to post here.
I have added the Custom tabstrip and table control using implicit enhancement in VF01 / VF02 / VF03 item data like below screen shot.
Here From the screen shot, based on Drop Down selected value the employee number and employee name are get disable dynamically. For example if suppose user select Active the employee name get disable and employee number get enable and give F4 help else user select Third Party or Others the Employee number get disable and employee name get enable. For that i created the Function code for that Drop down box, But when i selected the value from that drop down, it through the error like below screen shot,
For this I added the my custom function code in VFBS Tcode. After that it through the same error while i'm clicking Standard button like below.
Please suggest me to fix my problem.
Thanks & Regards,
John.
‎2013 Oct 11 6:13 AM
‎2013 Oct 11 6:25 AM
Please check if you have followed all the steps mentioned in the following link:
http://scn.sap.com/message/7976295
also, in PAI of your pushbutton, try resetting sy-ucomm and fcode.
Regards
‎2013 Oct 11 6:42 AM
I already gone through your link,but it show the below error,
""For this I added the my custom function code in VFBS Tcode. After that it through the same error while i'm clicking Standard button like below"".
Please give me suggestion.
Thanks and Regards,
John.
‎2013 Oct 11 6:21 AM
Hi John,
You should handle the function code in your main screen and not your subscreen.
I hope you are handling the user command now in the subscreen level. You have to find the user command module in the main screen and then put your code there for handling the drop down.
Thanks,
Ajay Bose
‎2013 Oct 11 6:37 AM
Hi Ajay Bose S,
Can you please give me the step to elaborate your suggestion ? I have found the main screen as 6106 in that where can i
""You have to find the user command module in the main screen and then put your code there for handling the drop down""
Please Give suggestion.
Regards,
John.
‎2013 Oct 11 7:09 AM
Hi John,
Usually the user command module in a screen will be at the bottom, in PAI event, after all the FIELD statements. Check if you have any such module that checks for the OK code and handles the user command. You can then enhance this module (you can enhance the subroutine called inside this module) and do your handle drop down accordingly.
Also you might have to add your OK Code in some table like T185 (you can check this when you debug the user command module) to prevent it form throwing the error.
Please let me know if you need any help.
Thanks,
Ajay Bose
‎2013 Oct 11 12:11 PM
Hi
As you said i have to add my custom fcode some where in table, i did that in tcode VFBS. As
netweaver developer mention above. After that i got the same error while clicking standard button like back or save.
Suggest me to fix my problem.
Still i'm in confusion to complete my requirement.
Thanks & Regards,
John.
‎2013 Oct 11 12:28 PM
Hi John,
Proceed like below:
1. First find out where the error is triggered. You can find this by debugging. Check the error message technical info by double clicking on the message when it is shown to you. Form that you will get the message number. Now before triggering your function code you can activate the debugger and then in MENU option in debugger use Breakpoint at -> Message option. Give your message class and message no.
2. Once you find out where this error is triggered, you can identify which table is queried to check for the function code like for example T185*. You can then either maintain entry in that table or maybe you can bypass the error message in case your function code is triggered. But first you have to find out the originating point of the error. Once it is done your problem will be solved.
Thanks,
Ajay Bose
‎2013 Oct 18 5:29 PM
Hi Ajay,
Thanks for your response, I have completed everything but i have struct one place when entering the Billing document number in VF02, Consider there is 3 line item for each line item user enter the value for my custom tab strip finally user click on save button from the line item screen the, each table control value should be store to my Database table how can i do? Kindly give me suggestion.
Regards,
John.
‎2013 Oct 18 6:23 PM
You can use enhancement "SDVFX008" to update your own table. Make sure that you include VBELN,POSNR in your Z-table.
Regards
‎2013 Oct 20 9:56 AM
Hi John,
What is the enhancement you are using ?
Thanks,
Ajay Bose
‎2013 Nov 12 11:24 AM
Hi Ajay,
I used implicit enhancement for update the data on my database table.
Regards,
John.
‎2013 Nov 12 11:50 AM
Hi John,
You can use a deep structure for your requirement.
Create an internal table with deep structure as below:
types: Begin of ty_data,
itemno type vbrp-posnr,
items type zstruct occurs 0, " Here zstruct is the structure of your table control's internal table.
end of ty_data.
data: it_data type table of ty_data.
Now your internal table it_data will be able to hold multiple line items for each line items. All you have to do is move the items for each item no into one separate internal table before it is shown in the table control. Then use that internal table for table control display.
Similarly once data is entered by user you can move back the data to your main internal table it_data. Hope it is clear for you.
If you are not familiar with reading and storing data in internal tables with deep structure check the below thread:
https://scn.sap.com/thread/749578
Thanks,
Ajay Bose