Update "Additional data b" tab.
Hi all,
I have a requirement to change SD Orders in background. Function module BAPI_SALESORDER_CHANGE is working fine, but I need to update u201Cnotification number fieldu201D at Sales Order header. In transaction VA02 notification number appears in the tab u201Cadditional data bu201D (field VBAK-QMNUM). However, I canu2019t find this field to be updated through BAPI_SALESORDER_CHANGE. Has anyone faced this issue before? Is there any technique to update vbak-qmnum in background?
Thanks,
Marcos Vilela.
Hi Marcos,
I can suggest 3 alternatives for what you want:
(1) use fm SD_SALES_DOCU_MAINTAIN instead:
It is more complicated to use, cause you have to populate all the
relevant structures and internal tables with SO data. However it can handle
VBAK-QMNUM in I_VBAKKOM
(2) use the EXTENSIONIN parameter of the BAPI
To do this, you should first create append structures for BAPE_VBAK and BAPE_VBAKX
Introduce the QMNUM field in append str. for BAPE_VBAK with data element QMNUM (12chars),
in append str. for BAPE_VBAKX with data element BAPIUPDATE (1 char)
Then populate the EXTENSIONIN parameter with 2 lines:
1. extensionin-structure = 'BAPE_VBAK'
extensionin-valuepart1 = vbak-vbeln(10 chars) + vbak-qmnum(12 chars)
2. extensionin-structure = 'BAPE_VBAKX'
extensionin-valuepart1 = vbak-vbeln(10 chars) + 'X'(1 char)
(3) simply update VBAK-QMNUM with SQL statement UPDATE.
BR,
Barna
Similar Messages
-
Is it possible to add 'Additional Data C' tab in VA01/VA02/VA03
Hi All,
Is there any way or in config that we can enhance the VA01/VA02/VA02 with one more tab other than 'Additional Data B' tab.
i want to add 'Additional Data C' tab for a requirement.
Please give your valuable comments.
Thanks,
Jaffer Ali.SHi ,
It can't done for the VA01/VA02/VA03.
these are available for the .
V45A0001 Determine alternative materials for product selection --->The Description of this enhancement tell us that it determines the alternative materials for product selection. (i.e., If one material is not available what is the other material that has to be used as an alternative. So it is item specific).
V45A0002 Predefine sold-to party in sales document--->By Description we understand that we can predefine sold-to party in the sales document. (i.e., it is used to populate the field sold-to party through user-exit while entering the data. ) But our requirement comes after entering the data in the screen and save button is pressed.
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal---->Copy packing proposal Into Out bound delivery. This description implies that whenever we create a Delivery Order from Sales Order it copies the packing proposal Based on the already created Sales order. So, there is no chance for us to save the data while we create or change a Sales order.
We can't done.
Regards,
Bharani -
Custom field in VA01 at item level in Additional Data B Tab
Hi ,
I have a requirement to add a custom field at item level in Additional Data B tab of VA01/VA02. We have to store the data in that field in the VBAP table also have to validate the data entered in the field when user hit save.
Can any body tell me step by step procedure to do that.
Appreciate your response.
Thanks,
RohitAdd append structure ZAVBAP in table VBAP in Tcode: SE11.
In this structure include the new fields to be added to the screen.
Then in Tcode : SE80
take program: SAPMV45A
take screen 8459 and add the new field.
Also add the validation in the flow logic. -
Custom field at Header level in Additional Data B tab of VA01/VA02
Kindly help me out , I have a requirement to add a custom field at Header level in Additional Data B tab of VA01/VA02.
Program: SAPMV45A
screen 8459
This can be done only through access key or not. Can any body tell me procedure to do that.
Appreciate your response.Thanks in advancePlease help me out this
-
How to update additional data for a premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
How to update additional data for Premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
Enhancement in VA01 Additional data B tab
Hi All,
I have added 2 fields in tcode VA01 in header --> Additional Function --> Addtional data B (screen 8309) which are getting saved in VBAK table in custom fields which i have added in VBAK table using append structure.
Now my requirement is, for a particular order type one of the fields which I have added in Additional data B screen should be mandatory. For that i have wriiten a code in PBO (include MV45AOZZ)
LOOP AT SCREEN.
IF VBAK-AUART = 'Z2OR' AND SY-TCODE = 'VA01'.
IF SCREEN-NAME = 'VBAK-ZZTRIPORDER'.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Now this code is working fine if I visit that screen (Additional data B screen), but it is not working if i dont visit that screen. I want that the document will not get saved if that field blank for that particular order type.
Can anyone help me please?
Thanks in advance.
Regards,
SURYAHi
If you are in the screen, it works, if no, it doesn't work. The manner to do it is with a userexit. Try it with USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ for instance.
I hope this helps you
Regards
Eduardo
Edited by: E_Hinojosa on Jul 1, 2011 9:14 AM -
IE01-IQ01 Additional data 1 tab
Hello, I have a problem.
I configure in the IMG the view additional data1, in order it will display eg the warranty (110) .
Then in the transaction IE01, i did not see any view appearing.
What could it be?HI
after you asined new data (110) in Set View Profiles for Technical Objects H2,
have you assined this H2 in Maintain Equiment Category -view profile
-pl check
-ashok -
Additional Data B Tab; screen#8309 scroll bar problem
Hi
I created additional fields to capture Quotation related information. There are about 43 custom fields added to VBAK using append structure.
These have modified the Screen#8309 to include all those fields. Looking at attributes of the screen#8309, it says Occupied 31 lines and 121 columns.
When I execute transaction VA21 and my display is average screen size, I see about 21 lines and scroll bar to see the rest of the screen. When I click on the scroll bar, the rest of previously hidden section of the screen shows blank.
If I maximize my screen, all the fields show up correctly. When the screen is in a reduced size and section that become visible when we use the scroll bar remain blank.
I compared the attributes of screen#8309 and fields I have added with other SAP Screens which are long and run into multiple screens, I don't see anything specific parameter or flag that will initialize the hidden section of the screen.
Question is how to get the hidden section of screen to populate automatically!?
Any help is appreciated.
Thanks,
Vasava KrishnamoorthyFound the answer ...
OSS Note# 302497,
There is field "Scrollable" in the field attributes of the subscreen 8309 when you edit screen 4312; this field needs to be turned on ... -
Addition of new field in VA02 and VA01 in additional data tab B
Hi,
I have added a new field called delivery date to additional data tab B in both tcodes va01 and va02. Now, while creating or changing a sales order, if the Sales group is I00 then this field should be filled up mandatorily. For va01 and va02 i have done all the required coding where all this is done on pressing the save button when we are in the additional data b tab.It would throw an error message if the date is wrong and a wrning if it is empty (provided sales group is I00). I did the coding in 4462 screen.
My requirement now is that if somebody doesnt go to the 'additional data b' tab n try to save the Sales order then also it should throw a warning or error stating that delivery date field should be filled up. Where exactly should i place the coding now? if it is screen 4900 then can someone suggest me at what place should the coding be done.
Regards,
PujaHi Puja,
Seems you have added the fields at item level in sales order and for this you must have appended the additional fields
in vbap table. So to validate these fields you can use USEREXIT_CHECK_VBAP available in MV45AFZB user exit include.
The fields you appended will be available in vbap structure, add your validation here or even in USEREXIT_SAVE_DOCUMENT_PREPARE available in MV45AFZZ which is called before saving the sales order.
Regards,
Pawan -
Re: Populating Additional data in Material master record
Hi,
I am creating material master record using BAPI_MATERIAL_SAVE_DATA. I am using the below function modules to populate date in Additional Data Tab. I am getting the existing material details from BAPI_MATERIAL_GET_ALL and passing it to
BAPI_MATERIAL_SAVE_DATA variables. I can create material successfully, but "PROPORTION/PRODUCT UNIT" TAB in Additional Data Tab is not populating.
Program populates this data for some materials and for some materials not. For example, when I try to create a new material by copying existing details from 1234 , New material will be created with 12345(say), but "PROPORTION/PRODUCT UNIT" TAB in Additional Data Tab is not populating.
Now If I put a break point, to find out what could be the issue , and then press f6 , and re-execute program for the same material 1234, then my custom program can populates data. I know its sound wiered, but I am not able to solve the issue.
CALL FUNCTION 'VBWS_UOM_READ_WITH_MATNR'
EXPORTING
i_matnr = it_mara-matnr
TABLES
e_meinh = gt_meinh
e_meinh_ws = gt_meinh_ws
e_meinh_ws_upd = gt_meinh_ws_upd
e_meinh_ws_updx = gt_meinh_ws_updx
e_message = gt_message
e_return = gt_return
EXCEPTIONS
error = 1
OTHERS = 2.
FREE: gt_message, gt_return.
CLEAR : gt_meinh_ws_upd, gt_meinh_ws_updx.
CALL FUNCTION 'VBWS_UOM_MAINTAIN_DARK'
EXPORTING
i_matnr = lv_matnr
i_kzwsm = it_mara-kzwsm
i_kzwsmx = 'X'
i_exit_by_first_error = 'X'
i_user = sy-uname
i_buffer_refresh = 'X'
i_no_update = ' '
TABLES
i_meinh_ws_upd = gt_meinh_ws_upd[]
i_meinh_ws_updx = gt_meinh_ws_updx[]
e_message = gt_message
e_return = gt_return
EXCEPTIONS
error = 1
OTHERS = 2.
LOOP AT gt_return WHERE type = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDLOOP.
Any suggestions ...Hi Karthik,
Thanks for your reply. It worked. But now I am facing strange issue. As you see my code above, i am using VBWS_UOM_MAINTAIN_DARK to update Addition data tab. however, the values of internaltable gt_meinh_ws_upd was not updated correctly inside the material master.
For example, I am filling gt_meinh_ws_upd table with the below values
gt_meinh_ws_upd-wsm = 'OZT'
gt_meinh_ws_upd-atnam ' ZABCDE'
gt_meinh_ws_upd-atwrt = 0.0023
append gt_meinh_ws_upd.
but when i see in material master, gt_meinh_ws_upd-atwrt = 0.0023 is updated with 23, instead of 0.023. I debugged th func. module many times, I didnot come acroos the code what making it to 23.
Any Idea karthik...
Thanks in Advance -
Adding Field in Additional Data B in VA02-Please help me out this
Kindly help me out , I have a requirement to add a custom field at Header level in Additional Data B tab of VA01/VA02.
Program: SAPMV45A
screen 8459
Can any body tell me procedure to do that.
Appreciate your response.Thanks in advanceHi
Check the link
http://techbays.com/2008/04/17/implicit-enhancement-in-sap-ecc-60/
There is a BADI BADI_SD_V46H0001 and Method EXIT_SAPLV46H_003.
You should be able to it without access keys.Consult your SD Functional Guy also
Regards
Sanil Bhandari -
Add buttons in Sales Order's Addtional Data B Tab
Hi All,
I want to add buttons in Sales Order's Additional Data B tab. I had try to draw a creen in painter and push a button in the screen, also assign a fcode to it.
I had try to test the button, and I find that, it could work, but after it's action, a error msg give out and said there are no this request function.
I think it may cause by the fcode passing between screen. However, I don't know how to fix it. Any sample coding could for me reference?
Thanks!Hi,
yes u can add the button with Fcode on Additional data B screen.But u have write the code in the PAI of the screen,inorder to do something,for that u need to have accesskey also...i hope while adding fields to Additional data B screen u ahve used teh accessskey for adding..zfields
Regards,
Nagaraj -
Screen for 'Additional Data B' of VA01
Hi folks,
i want to add one field cusomer no in 'Additional Data B' tab of VA01.
can anyone tell me the screen number for 'Additional Data B' of VA01 & the complete process of creating the field & validating the VBAP table?
Points will be awarded.
Regards
pabiHi Pabitra,
If you want to add fields in the item, create append structure for VBAP to add fields to standard table
In the screen mentioned , using graphic painter -> "import data from dictionary" from VBAP ->use the table and bring to the element to the screen
In PBO write logic for the field mainly to inactivate the screen for VA03 ...write the logic
if sy-tcode is 'VA03'.
Loop at screen.
screen-input= 0.
Modify screen.
endloop.
endif.
In the PAI write validations for the field if required
Pls check and revert
Reward if useful
Regards
Byju -
Additional data B in contract change mode
Hi,
in the t-code va42, at the item level , there is additional data B ( Tab) showing grey( vene no field is coming , previously there was fields), i need to put fill the entry there, pls advice how to make it visibleAnswered by OWN.
Regards:
Sridhar.J
Maybe you are looking for
-
Report output as per order of material in variant
Dear Friends, I have developed a report that reports production figures of different materials, sorted by material (alphabetically). The requirement of the user is that the list should be as per the order of different materials mentioned in the varia
-
Exception on a select condition in a Function Module
Abap Experts, I have function module. The selection conditions fails sometimes. Even if it fails I want to carry out the remaining part of the function module. Wondering how to create a exception on a selection condition. Any suggestions appreciated.
-
hey i am having a problem with the XML... my source table is oracle data base table for example lets take Employee table from scott...i wan the same table to be loaded in the XML... can any one help me in doing this its . thanx praneeth
-
Set search text when form is in query mode
Hi forum members, is it possible to set the value of a textfield when a form is in query mode? In our form you can enter query mode with F7 and execute the query with F8. When you go back to query mode with F7 and then press F7 again, the search crit
-
MBE issues and rendering errors
Just finished two seperate projects each 25 minutes. They both used Magic Bullets vignette and various filters. The first rendered out and export through compressor no problem. The second would get a funyy AE parameter error when trying to render and