03-23-2009 11:19 AM
Hi Experts,
How can I add three custom fields ( pack size, No of Packs, Packing type)
into Table Controle of Sales Order Creation ie VA01.
I have append the structure for these fiels in Table VBAP.
But any one can Describe that how to display into Itemlevel Table controle and Update it into table VBAP.
Thanks,
D Tarun Kumar
03-24-2009 10:34 AM
Hi,
Its Displaying and Updating the Table but
how can we make mandatory this Tab because untill we goto the tab its not working as mandatory.
03-23-2009 11:57 AM
03-23-2009 1:41 PM
Hi,
Check the link :
And follow the same way in ur program.
Enhancement is : V45A0003 Exit: EXIT_SAPMV45A_004
Hope this helps you.
Regards,
Qamar.
03-24-2009 10:34 AM
Hi,
Its Displaying and Updating the Table but
how can we make mandatory this Tab because untill we goto the tab its not working as mandatory.
03-24-2009 11:45 AM
Hi,
What i suggest is that make the screen fields in this screen mandatory ie maybe atleast one fileld also.So then it will be mandatory to enter in that screen.
Let me know if this works.
Hope this helps.
Regards,
Qamar.
03-24-2009 12:44 PM
Dear Qamar Javed,
I does the same but its not working until I am not selecting the tab .
And one more prob is that its not updating Procurement Tab => Confirmed Qty.
Becoz user wonu2019t enter the quantity they will fill only packsize and no of packs
Then quantity should come as ( packsize * no_of_packs ).
For that I have code in PAI as
DATA QNT TYPE ZPACKSIZE VALUE '0.000'.
QNT = VBAP-PACKSIZE * VBAP-PNPACKS.
CASE SY-UCOMM.
WHEN OTHERS.
MOVE QNT TO RV45A-KWMENG.
MOVE QNT TO VBAP-NTGEW.
MOVE QNT TO VBAP-BRGEW.
MOVE QNT TO VBAP-KLMENG.
MOVE QNT TO VBAP-KBMENG.
MOVE QNT TO VBAP-LSMENG.
MOVE QNT TO VBAP-KWMENG.
MOVE QNT TO VBEP-WMENG.
MOVE QNT TO VBEP-CMENG.
MOVE QNT TO VBEP-BMENG.
ENDCASE.
When I enter the Quantity there is no problem except mandatory Issue.
In exit I worked only for screen 8459.
INCLUDE MV45AOZZ. " User-modules PBO
INCLUDE MV45AIZZ. " User-modules PAI
As you suggested.
Thanks and Regards,
D Tarun Kumar
03-24-2009 1:03 PM
Hi,
What i know is that Procurement tab confirmed quantity is related to other modules of SAP and it gets updated automatically, and tells the delivery quantity etc by checking the stocks of that material and tells the expected delivery date of the remaining goods.
In which business scenario you want to update the confirmed quantity field manually.
Or change the sy-ucomm value check as SPACE or Others. This might help.
Hope this helps.
Regards,
Qamar.
Edited by: Qamar Javed on Mar 24, 2009 6:36 PM
03-24-2009 1:16 PM
Hi,
If you enter normaly than every thing is fine but when I am entering it from Additional Data B
then only its not updating.
I doesn't use the screen 8460
is the prob due to this.
Edited by: Devalla T Kumar on Mar 24, 2009 2:29 PM
03-24-2009 1:43 PM
Hi,
Ok,can you check the same or implement the same in the screen 8460.And check whether its still giving error.
Let me know if this works.
Hope this helps.
Regards,
Qamar.
03-25-2009 5:18 AM
03-25-2009 5:22 AM
Hi,
Is it working now??Or still giving a problem??
Regards,
Qamar.
03-25-2009 5:25 AM
Hi
I commented the PBO & PAI Modules of screen 8459 and pasted the same for screen 8460.
so its not displaying the input field anywhere and not updating the line item Quantity also.
03-25-2009 5:30 AM
Hi,
Ok, i understood what you do is use the 8459 screen only as done previously, in the PBO of 8460 screen write the update quantity statement.And also one thing use the customizing include in the tables.So that it is reflected in every SD related modules.Or use a breakpoint in the 8459 PAI and check whether the values are being passed properly or not.
Hope this helps you.
Regards,
Qamar.
03-25-2009 5:36 AM
Now i have activated both screens but the PBO & PBI modules are used same .
But the same problem.
03-25-2009 5:40 AM
Hi,
In the screen 8460 dont have the same statement in both the screen use only screen 8459,but in in the PBO of 8460 use your move statement :
MOVE QNT TO RV45A-KWMENG.
MOVE QNT TO VBAP-NTGEW.
MOVE QNT TO VBAP-BRGEW.
MOVE QNT TO VBAP-KLMENG.
MOVE QNT TO VBAP-KBMENG.
MOVE QNT TO VBAP-LSMENG.
MOVE QNT TO VBAP-KWMENG.
MOVE QNT TO VBEP-WMENG.
MOVE QNT TO VBEP-CMENG.
MOVE QNT TO VBEP-BMENG.
And use a breakpoint in the PBO of screen 8459, and check whether every value is being properly copied or not.
Hope now this is clear.
Regards,
Qamar.
03-25-2009 6:05 AM
Hi,
When I am doing like this,
&----
*& Module ACTION_AT_INPUT_8459 INPUT
&----
MODULE ACTION_AT_INPUT_8459 INPUT.
DATA QNT TYPE ZPACKSIZE VALUE '0.000'.
QNT = VBAP-PACKSIZE * VBAP-PNPACKS.
ENDMODULE. " ACTION_AT_INPUT_8459 INPUT
&----
*& Module ACTION_AT_INPUT_8460 INPUT
&----
MODULE ACTION_AT_INPUT_8460 INPUT.
CASE SY-UCOMM.
WHEN OTHERS.
MOVE QNT TO RV45A-KWMENG.
MOVE QNT TO VBAP-NTGEW.
MOVE QNT TO VBAP-BRGEW.
MOVE QNT TO VBAP-KLMENG.
MOVE QNT TO VBAP-KBMENG.
MOVE QNT TO VBAP-LSMENG.
MOVE QNT TO VBAP-KWMENG.
MOVE QNT TO VBEP-WMENG.
MOVE QNT TO VBEP-CMENG.
MOVE QNT TO VBEP-BMENG.
MOVE 'KG' TO VBAP-VRKME.
MOVE 'KG' TO RV45A-VRKME1.
MOVE 'KG' TO VBEP-MEINS.
ENDCASE.
ENDMODULE. " ACTION_AT_INPUT_8460 INPUT
Then its not updating atleast the line item Quantity.
I put break points in both PAI of screen 8459 and 8460
but its not enter the screen 8460.
I think no need of 8460 screen updation.
Thanks
03-25-2009 6:18 AM
Hi,
Ok dont use 8460 screen anymore. Use 8459 screen only.And paste the code which you were using previously.
Regards,
Qamar.
03-25-2009 6:36 AM
Hi,
Could I display the input fields with screen 4001 table controle
if it is possible than all the problems will be solved.
03-25-2009 6:48 AM
Hi,
Then you have to enhance the code either by implicit enhancement or by explicit way. And the table control pf procurement tab is in screen 4920, if you have debug it and checked it to be 4001 then its ok.
For implenting Implicit enhancement check this link:
Hope this helps.
Regards,
Qamar.
03-25-2009 11:58 AM
Hi,
If you got the solution mark this thread as answered.
Regards,
Qamar.
04-03-2009 8:19 AM
Hi Experts,
I have added three custom fields ( pack size, No of Packs, Packing type)
into Order Creation ie VA01. data is also updating.
Now i need to update the same fieds in VL01N & VF01 (Delevery and Billing)
but the data should come automaticaly display from sales orded data which is stored in table VBAP
So plz tell me the Screen Exits for both and the Exit to display the data on it by default.
Thanks,
D Tarun Kumar
04-03-2009 9:45 AM
Hi,
Check this link:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/codeforfindingthelistofBADI%2527sandEXITS
It list out all the enhancements for a particular tcode.
Hope this helps.
Regards,
Qamar.