Enchancement in va01
hi experts,
Im doing an enhancement in VA01.
The BADI I am using is cfop_det_prep . My task is in the Conditions TAB in Item Conditions. My main purpose is that i want to pick the value of Discount (Condition : SOC) (Screen Field : KOMV-KBETR ) and Price(Condition PR00 ) .
But the interfaces show that structures of table vbap and vbak are only there.
Is there any way other than interfaces to pick the value from the KOMV Screen Field
Thanks in advance guys.
Hi Pawan,
My requirement is that in VA01 --> Item Conditions --> Conditions Tab , when the user enters a Customer Discount (Condition SOC ) he should be restricted to only 5 values i.e 1% 2% 3% 5 % .. I have found the BADI for that CFOP_DET_PREP.
In the Interface there only these are available.
i table of structure vbap and vbak.
The value which i want is stored in KOMV-KBETR Screen Field but has no I_table assigned to it in the interface.
If any method is possible please let me know .
Thanks a lot.
Similar Messages
-
Enchancements for sales order header - VA01
Hi,
Could any one suggest is it possisble to enhance the additional data tab B(Screen number 8309) of the sales order header like below mentioned.If its possisble please suggest the procedure.
I need to create a new field in the screen number 8309 of VA01 with drop down box, a possisble list of 7 entries to be provided and if cursor is placed on a value of the list a box(item Box) should be open with the list of possisble values again like this there will be 3 items box and finally the user should be able to select the field and save it.
For EX just like Go->header->Additional functions->Additional data B.
Regards,
NagendraHi Nagendra,
First append the requisite custom field in the structure of VBAK (since the Additional Tab B is for Header data).
Go to screen number 0312 in program SAPMV45A and develop the screen layout along with the Custom Field of VBAK structure, as it is done in normal module pool programming.
Then in the PAI and PBO section of the screen define PAI and PBO modules or use the already defined modules.
Then double click on the module and create the modules in Inlcudes MV45AOZZ (PBO) and MV45AIZZ (PAI). Write your requisite code in the created PAI and PBO modules.
In case the screen field name does not match with the table field name (e.g., let us say that the custom field in table VBAK is "ZZCUSTOM" and the screen field is "CUSTOM1"), the field value from the structure/table (i.e., assign VBAK-ZZCUSTOM to the screen.) has to be assigned to the screen field (CUSTOM1) in the PBO module and in the PAI module the value from the screen field has to be assigned back to the structure/table field.
In PAI : VBAK-ZZCUSTOM = CUSTOM1.
IN PBO : CUSTOM1 = VBAK-ZZCUSTOM.
But if the screen field name is VBAK-ZZCUSTOM then the above assignments need not to be done. It will be handled by the system itself.
As for the list box, while defining the screen layout, define the field property as list box.
But I dont think that the second list of possible entries is not possible by using listbox.
Instead you can do define a normal F4 help for the 1st list of possible entries. Then when the user selects a entry you can call a modal screen (i.e., pop up screen) with the 2nd list of possible values. When a user selects a entry from this list you can put that value in the screen field.
Hope this helps.
Regards,
Abhisek. -
Temporarily Increase Customer credit limit for va01
Hi,
My requirement is we want increase credit limit for customers for 1 or 2 days in temporarily basic or va01 order release purpose .
I maintained customer wise temporary credit & valid from and to dates in a z-table. How to solve this problem without using credit management FD32.
regards,
moon.Your requirement to increase Credit LImit of Customer for 1 - 2 days based on a Z-Table is not possible in SAP Standard. Also you dont want to use FD32.
Now in OVA8, Under Checks you have three Boxes for User 1, 2, & 3. There are the Enchancement Points give by SAP for you to implement your Z-Requirment in Credit Management.
You Requirement will have to be mapped in a Z-Development, speak to your ABAPer & he can write a code in User Exit which will refer your Z-Table & do the needful.
Hope this helps,
Thanks,
Jignesh Mehta -
Dear,
Process : Actually , I am going to create CR memo request in VA01 without reference of Invoice . So ,in this case ,I have got one Issue as Z error .Please help me in this issue ,how to solve step be step .
Note : 1. Actually , I am SD,MM and PS Consultant not ABAP consultant .I got this issue yesterday but still fight with system with debugging level .
2. ABAP Consultant not available thats why taking charges to solve this issue .
Advance Thanks ,
NarenFirst of all thanks for both ,
Coming to the point ,I went to SE91 and gave the Message Class as ZVIV and clicked on execute .there I have seen 182 Message and I unticked the Self Explanatory and saved . Now again ,I raised new Credit Memo Request in VA01 and I didnt get before error but I got another erro as " Red round Mark" with Save (Control + Save ) .
The Red Round Mark doesn't stand on screen to capture or else to see the Problem .That is coming and going immediately .
Note : Please help one this Issue .
Thanks,
Naren -
How to restrict the order reason in Tcode Va01 while creating sales order
Hi Gurus,
My requirement is
while creating sales order in VA01
if order type is Zvol
than the list of order reasons has to be restricted.
Now 15 are coming from OVAU tcode
I need only 5 from these.
Thanks & Reagrds
kals.Hi,
By doing the user exit in IW32 we achieved the requirement of restriction of maintenance order TECO functionality if any Service Entry sheet pending with reference of maintneance order.
regards
JKM -
Creation of delivery when sales order is saved in VA01
Hi All
We got the requirement in such a way that
we are creating sales order of type (ZOR -standard order ) . Configrration is donde in such a way that when the order is saved one dilvery will be created for that order of deilvery type ZLF .as this is assginned as default delivery type in VOV8 .
Hre we have two delivery types ZLF and ZF and we have diffrent different item categories for that sales order like ZZTC , ZPU ,
ZTDP .
our requirement is as follows
when we create sales order through va01 (order type - ZOR standard order ) having onlu one item category ZPU then delivery should be created of type ZLF it is happing correctly .
when we create a sales order through va01 having non ZPU item categroies like ZZTC and ZTDP dlivey should not be created automatically for that sales oder on saving that order . this is also happeing correctly
but the problem is
when we create a sales order having diffrene item categories ( one condiotn here one item should be ZPU) and other item is ZZTC while saving the sales order delivery is getting created partially for one item only not for two items i mean delivery is getting created only for item categroy zpu the item with type ZZTC is not gettting added to that delivey .
for exmaple
sales order 1234
item category ZPU
item category ZZTC
delivery created with only one item ZPU
May i know any requirments (routines ) are thre to solve this in VOFM .
let me know how to hanlde this issue .
Regards
Sunil
Moderator Message: It looks like you are using the forums to get your work done for free. This is not a help-desk to get your Consulting work done. Also you have closed only 1 out of total 68 questions till date. Since you are such a lazy and irresponsible forum member, Im giving you the final warning against breaking the rules of this forum. One more violation and you userid will be deleted.
Edited by: kishan P on Oct 14, 2010 4:36 PMHi Mohanty,
I think the Immediate Delivery under Shipping for that order type may have value A or X, Clear that value.
1) Goto VOV8 tansaction.
2) Select the Sales order type (For eg: OR for standard order) and double click on that
3) Under Shipping tab, Set Immediate Delivery with Blank value
Plz reward points if it is helpful
Thanks,
Vinay -
Creation of delivery when sales order is saved through VA01
Hi All
We got the requirement in such a way that
we are creating sales order of type (ZOR -standard order ) . Configrration is donde in such a way that when the order is saved one dilvery will be created for that order of deilvery type ZLF .as this is assginned as default delivery type in VOV8 .
Hre we have two delivery types ZLF and ZF and we have diffrent different item categories for that sales order like ZZTC , ZPU ,
and ZTDP .
our requirement is as follows
case1:
when we create sales order through va01 (order type - ZOR standard order ) having onlu one item category ZPU then delivery should be created of type ZLF it is happing correctly .
case 2:
when we create a sales order through va01 having non ZPU item categroies like ZZTC and ZTDP dlivey should not be created for that sales oder on saving that order .one success message is thwoing as salers order has been created but delivry cannot be created for this order .this is is also happeing correctly . for this we have copied a rottine no 102 from VOFM and we have added some logic
but the problem is
when we create a sales order having diffrene item categories ( one condiotn here one item should be ZPU) and other item is ZZTC while saving the sales order delivery is getting created partially for one item only not for two items i mean delivery is getting created only for item categroy zpu the item with type ZZTC is not gettting added to that delivey .
for exmaple
sales order 1234
item category ZPU
item category ZZTC
delivery created with only one item ZPU
May i know any requirments (routines ) are thre to solve this in VOFM .
let me know how to hanlde this issue .
Moderator Message: Spec-dumping is not allowed
Edited by: kishan P on Oct 14, 2010 4:31 PMHi Mohanty,
I think the Immediate Delivery under Shipping for that order type may have value A or X, Clear that value.
1) Goto VOV8 tansaction.
2) Select the Sales order type (For eg: OR for standard order) and double click on that
3) Under Shipping tab, Set Immediate Delivery with Blank value
Plz reward points if it is helpful
Thanks,
Vinay -
User exit for sales order creation VA01.
Hi friends,
While creating Sales order, before saving the document, I need to check the Customer (Sold to pary?) details in KNEX table. KNEX-KUNNR KNEX-TDOCO KNEX-DHRCO. if condition fails, I need to display an error message V1525,
which should contain
1)customer(sold-to -party?KNEX-KUNNR)
2)partner function PARVW (VBPA-PARVW?)
3)country LNDEX KNEX-LNDEX
Functional spec says, 1)V45A0002
2)V45A0003
3)V45S0001
4)V50EPROP User exits can be levaraged.
1)triggers before we enter customer (sold-to-party) in VA01. so may not be used.
remaining i tried, but I am not able to get the proper PARVW, LNDEX from function module parameters / structures like VBAP/VBPA etc.
Please help me the way.
i) the above user exits can be used?if not, help me with user exit name.
ii)if yes, how to fetch PARVW , LNDEX, KUNNR...as all the primary keys must be used in the selection query.
Please help me ASAP.Hi,
Use this enhancement V45A0002.
Reward points if it helps,
Satish -
How to add custoim fields on the additiondata b tab of va01 and va02
Hi All,
i want to add the field on the Additional data B tab of the VA01 and VA02 at header level.
Already one field is there now i want to add one more field.How to proceed.
I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.
It is urgetn.Please help meI have to move the updated fields to the vbak table
The code is like this
If VBAK-ZZGrswgh less than ZTRKLMT-ZZweight OR
VBAK-ZZCubTot less than ZTRKLMT-ZZCube OR
VBAK-ZZPaltot less than ZTRKLMT-ZZPallet
CLEAR VBAK_ZZTRKLMT.
Else
MOVE X TO VBAK_ZZTRKLMT.
End if
should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?
This user exit should trigger when
VBAK-AUART Equals 'ZWH' OR
VBAK-AUART Equals 'ZFV'
Reply soon -
Adding a new field to the transaction va01
Hi,
I have added a field to the va01 transaction in the "Additional Data B" tab
by modifying screen number 8309 in program SAPMV45A.
I have also added a structure in the table vbak for this additional field on the screen.
But I can not save or display the data in that field.
Should I give the value somewhere in the code of screen number 8309 or any ohter way of this?
Regards,
UtkuHi
When you create your screen use directly the std structure VBAK and VBAP to design the input/output fields.
So for example if you have added the field ZZFIELD in VBAK, insert it in 8309.
In this way the standard program VA01'll automatically store your data in your fields.
So you don't need to write some code to store it, but only (if it needs) some code for validations in the screen flow.
Max -
How to update line items if it exceeds 17 during creation of SO in va01.
Hi,
I have implemented one logic in mv45afzz for updating IO (internal order) with respect to line items during creation of SO through VA01.
It is working fine.
My problem is: For first 17th line items it is working fine , but those line items which come after 17th not working.
Please suggest.
Thanks,
SaktiHi,
Pls find the below code for your reference.
LOOP AT xvbap INTO wa_xvbap.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wa_xvbap-matnr
IMPORTING
output = wa_xvbap-matnr.
IF ( wa_xvbap-matnr = c_matno_1 OR
wa_xvbap-matnr = c_matno_2 ) AND
wa_xvbap-updkz <> 'D'.
*Before changing container number first check first check the IO attached to
*this container number fully settled or not.
IF NOT yvbap[] IS INITIAL.
SORT yvbap[] BY vbeln posnr.
READ TABLE yvbap INTO wa_yvbap WITH KEY vbeln = xvbak-vbeln
posnr = wa_xvbap-posnr
BINARY SEARCH.
IF sy-subrc = 0 AND
( wa_yvbap-arktx <> wa_xvbap-arktx OR
wa_yvbap-z_container_no <> wa_xvbap-z_container_no.
CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
EXPORTING
input = c_sdi
IMPORTING
output = l_output1.
CONCATENATE 'ORX'
wa_yvbap-z_container_no
INTO g_objnr1.
SELECT SINGLE *
INTO wa_cobrb_sdi
FROM cobrb
WHERE objnr = g_objnr1 AND
konty = l_output1.
IF sy-subrc <> 0.
CONCATENATE 'ORY'
wa_yvbap-z_container_no
INTO g_objnr1.
SELECT SINGLE *
INTO wa_cobrb_sdi
FROM cobrb
WHERE objnr = g_objnr1 AND
konty = l_output1.
ENDIF.
ENDIF.
ENDIF.
*If the Io is fully settled, then can not change container number.
IF wa_cobrb_sdi-ersja IS NOT INITIAL.
MESSAGE s303(me) WITH 'Container can not be changed as IO already settled for' wa_yvbap-posnr.
CLEAR:wa_yvbap,
wa_cobrb_sdi,
g_objnr1.
PERFORM folge_gleichsetzen(saplv00f).
fcode = 'ENT1'.
SET SCREEN syst-dynnr.
LEAVE SCREEN.
ELSE.
*Check container number is initial or not
IF wa_xvbap-z_container_no IS NOT INITIAL AND tcode = c_va01.
CONDENSE wa_xvbap-z_container_no.
*Add 'X' to container number and serch for IO exist or not
CONCATENATE c_x
wa_xvbap-z_container_no
INTO l_aufnr.
SELECT SINGLE aufnr objnr
FROM aufk
INTO (g_aufnr,g_objnr)
WHERE aufnr = l_aufnr.
IF sy-subrc = 0. " AND wa_xvbap-arktx = l_aufnr.
l_flag = 'X'.
ELSE.
*Add 'Y' to container number and search for IO
CONCATENATE c_y
wa_xvbap-z_container_no
INTO l_aufnr.
SELECT SINGLE aufnr objnr
FROM aufk
INTO (g_aufnr,g_objnr)
WHERE aufnr = l_aufnr.
IF sy-subrc = 0. " AND wa_xvbap-arktx = l_aufnr.
l_flag = 'X'.
ELSE.
*Display error message if Io was not found or forgot to enter IO in description field
MESSAGE s083(me) WITH 'IO was not found for' wa_xvbap-posnr.
PERFORM folge_gleichsetzen(saplv00f).
fcode = 'ENT1'.
SET SCREEN syst-dynnr.
LEAVE SCREEN.
ENDIF.
ENDIF.
ELSE.
ELSEIF tcode = c_va01.
*Display error message if user forget to enter container number
MESSAGE s083(me) WITH 'container number for' wa_xvbap-posnr.
PERFORM folge_gleichsetzen(saplv00f).
fcode = 'ENT1'.
SET SCREEN syst-dynnr.
LEAVE SCREEN.
ENDIF.
IF l_flag EQ 'X'.
CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
EXPORTING
input = c_sdi
IMPORTING
output = l_output.
CALL FUNCTION 'CONVERSION_EXIT_PERBZ_INPUT'
EXPORTING
input = c_ful
IMPORTING
output = l_ful.
*Fetch 1st line of settlement rule
CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
EXPORTING
input = c_gl
IMPORTING
output = l_gl.
SELECT SINGLE *
INTO wa_cobrb_gl
FROM cobrb
WHERE objnr = g_objnr AND
konty = l_gl.
IF sy-subrc EQ 0.
*Populate values for second line settlement
wa_cobrb-objnr = g_objnr. "OBJNR
wa_cobrb-lfdnr = '003'.
wa_cobrb-konty = l_output. "Category
wa_cobrb-kdauf = xvbak-vbeln. "Order No
wa_cobrb-kdpos = wa_xvbap-posnr. "Item No
wa_cobrb-prozs = c_percent. "Percentage
wa_cobrb-perbz = l_ful. "Settlement
wa_cobrb-extnr = c_no. "No
wa_cobrb-gabpe = wa_xvbap-erdat+4(2). "From period
wa_cobrb-gabja = wa_xvbap-erdat+0(4). "From Fiscal
APPEND wa_cobrb TO gt_cobrb.
ELSE.
*Populate values for second line settlement
wa_cobrb-objnr = g_objnr. "OBJNR
wa_cobrb-lfdnr = '003'.
wa_cobrb-konty = l_output. "Category
wa_cobrb-kdauf = xvbak-vbeln. "Order No
wa_cobrb-kdpos = wa_xvbap-posnr. "Item No
wa_cobrb-prozs = c_percent. "Percentage
wa_cobrb-perbz = l_ful. "Settlement
wa_cobrb-extnr = c_no_1. "No
wa_cobrb-gabpe = wa_xvbap-erdat+4(2). "From period
wa_cobrb-gabja = wa_xvbap-erdat+0(4). "From Fiscal
APPEND wa_cobrb TO gt_cobrb.
ENDIF.
IF wa_cobrb_gl IS NOT INITIAL.
wa_cobrb_gl-gbisp = wa_cobrb-gabpe - 1.
wa_cobrb_gl-gbisj = wa_cobrb-gabja.
APPEND wa_cobrb_gl TO gt_cobrb_gl.
ENDIF.
ELSEIF wa_cobrb-ersja IS NOT INITIAL.
MESSAGE 'Container number can not be reassign' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
CLEAR:wa_cobrb,
g_objnr,
wa_aufk,
wa_cobrb_gl,
wa_cobrb_sdi.
ENDLOOP.
IF l_flag EQ 'X'.
*Create 2nd line for settlement rule.
SORT gt_cobrb[].
DELETE ADJACENT DUPLICATES FROM gt_cobrb[].
IF NOT xvbak-vbeln IS INITIAL AND tcode = c_va01.
IF NOT gt_cobrb[] IS INITIAL.
CALL FUNCTION 'K_SRULE_SAVE_UTASK' "IN UPDATE TASK
TABLES
t_cobrb_insert = gt_cobrb[]
EXCEPTIONS
srule_utask_error = 1
OTHERS = 2.
Thanks,
Sakti -
Doubt about VA01 transaction.
Good Afternoon Gurus.
I am a abap and I need understand what button i must click to call screen POSICION in VA01 .
In debug appears POSI like command but I need execute the transaction to debug the popup but I don ´ t know how call the popup.
See image .
What button I have click to call the popup of image?
My SAP is in Portuguese brasilian .
Thanks for help.The Pop up shows up when the button mentioned by JM is clicked. There is no special functionality of this button, It would just list the line which you enter at the top of the All items box.
Ex. if you have 10, 20 , 30 and 40 line item and key in line 20 at the pop up. line 20 would be first one in the line item box. It is similar to scrolling once to have line 20 displayed as the first line.
I would guess your call transaction or BDC is doing something after displaying the required line at the top of the item details.Just click the button JM says and get your pop up.
Let me know if you need further details.
Regards,
Deb -
VA01 Sales order - Header-- Accounting tab need to add a field
Dear All,
The requirement is,
1. I need to add a field in Sales order.
Path for the same is as follows:
VA01> Goto> Header--> Accounting tab
2. The field will be a date field that needs to calculate date on.
a)create a new field. ex - zchdt (chq due date)
b)when customers enters value in Assignment,
i.e vbak-zuonr
after that trigger logic is
3.vabk-kunnr = knvv-kunnr
a)sy-date + knvv-kvgr2 (exclude sundays)
example - 14 sept + 30 days = 14th october
should populate value - 14th october i.e. field (zchdt)
4. This activity needs to be triggered before the sales order is saved.
kindly know whether this is possible or not.
if possible how & which exit & also with example code.
if you could give me your contact(cell no).
Regards,
Nagendra D.S.
Mobile - +91 9819899082Hi All,
VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
when customer enters value in Assignment i.e zuonr & after that trigger logic is
1. vbak-kunnr = knvv-kunnr
2. sysdat + knvv-kvgr2 (exclude sundays)
example - 16 sept + 30days = 16 oct
in field zchdt value 16 oct as to populate
Pls help me in the code.
Regards
Nagendra -
Sales order: How to add pricing conditions at item level in BDC of VA01
Hello Experts,
Am writing BDC for sales order, in this process I need to add ITEM PRICING CONDITIONS, so, am selecting item and pressing the DOLLAR symbol button and am adding the conditions by pressing PLUS button in loop!! but am getting this erorr- Field KOMV-KMEIN (2) is not an input field!! when I execute it in we19-BACK GROUND only!! if I execute the same CODE IN we19-Fore ground, I dont have any issue!! I checked this SDN (field status in config), Google, but did not helped me!
Pls. let me know is there any other way to add conditions at item level in VA01 in BDC code?
THank youHi,
It is happening because the second row of the item level data screen is becoming display only. Please check whether In foreground mode you are pressing an extra enter to give data in the second row of the item level data after giving data in the first row and in BDC recording you have not recorded that 'Enter'.
Regards,
Gargi -
Hi,
When i use VA01 to create a new sale order , There are somes material that execute open_form for the SAPscript : PSFC_PRINT_LAYOUT , but I got the error OPen_form not opened ) this means that the call function OPEN_FORM was in error so the START_FORM can not be executed . When i debug , i saw the error was in the print_option ( ITCPO) , and the field padest = P542 , but in the SPAD i can not see this device , And i think that there are some places in SPRO where i can change the device for this function , Could you please help ou of this err ?
ThanksHi,
First check that the plant is assigned to the combination of Sales organisation and the distribution channel. If this is assigned then go to the material (MM02) check the material that it is having which language ( as per your error the language you have assigned to the material is DE, german) change it to EN,english. This might solve your error.
Reward points if useful.
Gaurav
Maybe you are looking for
-
I Installed ITunes, and now my computer can no longer find my CD-Drives?
WTH is going on?
-
Hi all, My Scenario is IDOC to File. My Requirment is to produce the Sample Text File as f1*f2*f3 f4*f5*f6 f7*f8*f9 f4*f5*f6 f7*f8*f9 f4*f5*f6 f7*f8*f9 Here Body1, Body2 Values are coming in alternative side. Based on the Occurences of E1MARAM Segmen
-
Hi, In JDBC Sender Adapter, we have Quality Of Service in processing parameters. Where as in JDBC Receiver Adapter, why don't we have the QOS. What to do if I want to send a message to Database with EOIO QOS from XI. Please clarify me. Regards Krishn
-
R1---Cloud(R4)----R2 | R3(KS) hi, I set up 3 routers, with R3 being the KS. a very simple GET VPN. It is not working. The underlying reachibility is fine. any idea? thanks, Han =====R3, KS==== crypto isakmp policy 10 encr aes auth
-
There is a case in my company, where some materials of a billing document aren't saved in COPA depending on it's Item Category. This box is not well documented and I have to look where this condition is located. I'm guessing is in one User Exit, but