Application Development 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: 

Enhancment in VA01

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

21 REPLIES 21

qamar_javed
Participant
0 Kudos

Hi,

For header

program is SAPMV45A , Screen 8309, and 8310

For Item

Program is SAPMV45A, screens 8459, and 8460

INCLUDE MV45AOZZ. " User-modules PBO

INCLUDE MV45AIZZ. " User-modules PAI

Just check this link :

Hope this helps.

Regards,

Qamar.

Edited by: Qamar Javed on Mar 23, 2009 5:28 PM

qamar_javed
Participant
0 Kudos

Hi,

Check the link :

http://tinyurl.com/cmxbwp

And follow the same way in ur program.

Enhancement is : V45A0003 Exit: EXIT_SAPMV45A_004

Hope this helps you.

Regards,

Qamar.

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

Hi,

Is possible to move this input fields into first screen.

0 Kudos

Hi,

Is it working now??Or still giving a problem??

Regards,

Qamar.

0 Kudos

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.

0 Kudos

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.

0 Kudos

Now i have activated both screens but the PBO & PBI modules are used same .

But the same problem.

0 Kudos

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.

0 Kudos

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

0 Kudos

Hi,

Ok dont use 8460 screen anymore. Use 8459 screen only.And paste the code which you were using previously.

Regards,

Qamar.

0 Kudos

Hi,

Could I display the input fields with screen 4001 table controle

if it is possible than all the problems will be solved.

0 Kudos

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:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/how%252bto%252bdo%252bimplicit%252benhanceme...

Hope this helps.

Regards,

Qamar.

0 Kudos

Hi,

If you got the solution mark this thread as answered.

Regards,

Qamar.

Former Member
0 Kudos

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

0 Kudos

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.