How to add a field in sales order
Dear All,
First I created a ZTable in which there are 15 fields exist then I append structure in ZVBAP which contain only one field from this ZTable. Now I place this field in the Subscreen 8459 of Sales Order under "Additional Data B" by using access key. Also i have Access to edit the module MV45AFZZ.
Then I wote the code in the
FORM userexit_save_document_prepare.
IF XVBAP-ZZSPENR = ''.
MESSAGE 'SPECIFICATION NO. IS NOT SPECIFIED' TYPE 'E'.
ELSE.
VBAP-ZZSPENR = ZSPEC-ZSPENR.
ENDIF.
ENDFORM.
so that while saving it Checks that field in screen and then if it has value then save it to in the VBAP Table.
I think I have to write the code into the module
FORM userexit_move_field_to_vbap.
VBAP-zzfield = xxxx-zzfield2.
*{ INSERT ID3K908846 1
DATA: zlgort LIKE vbap-lgort.
IF vbap-pstyv EQ 'ZWP'.
CHECK vbap-lgort IS INITIAL.
GET PARAMETER ID 'LAG' FIELD zlgort.
vbap-lgort = zlgort.
ENDIF.
*} INSERT
WA_XVBAP-ZZSPENR = xvbap-zzspenr. "but this line gives * me error cause I have to move the screen fields into * the VBAP Table. So that after this it checks in internal table XVBAP that the field ZZSPENR has value or not ?
ENDFORM.
But when I checks XVBAP TAble it shows all entries that I fill in Sales Order except ZZSPENR (My Field)
Thanks in advance.
Regards.
Adams.
Helpful answer will be appretiated.
hi Amams
check this link
Adding Fields to Sales order
i think it may give u some idea
Regards,
Naveen
Similar Messages
-
How to add three fields in Sales order item level and supress/hide many
Hi Gurus,
My client requirement is :
1. Three fields to be added at Sales order Item level and they should flow till billing.
2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
Please share your experiences and help me.
BEST REGARDS
SrikanthHi Subba Rao
in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
and after that he dont want to see maximum fields displayed in VA01 Screen.
I think it makes sense.
Regards
Srikanth -
How to add a field in sales order header
Hi all,
I need to add a custom field say a check box in sales order header in additional data B tab.
let me know step by step.
Points will be rewarded.
Thanks.
Ramyaadditional data B in sales order
sales order - Additional data B
Add new fields to Additional Data B tab in sales order
Reward Points.. -
How to get Changed fields in Sales order to create a report
Dear Gurus,
How to get the log from sales order for the change of particular field.
In my scenario, If an user remove the delivery block from sales order I want to capture the date on which this delivery block
is removed and by whom (User)?
I know that I can get the log of change but can I get in the form of field updates because further I want to use that date and user name to create a report.
I hope u got my query. Please reply soon that I can create a report.
Thanks in advance.
regards,
SanjayHi
You can use the table CDPOS for tracking the changes at the Table level with the Sales order number
or Else you can also use AUT10 transaction to track the logs/chanages with START DATE, END DATE and the Transaction code in your case it is VA02
Please check and revert back
regards,
santosh -
How to make a field in sales order a required field
Hi,
How do i make a certain field in sales order a required field. I want to make the assignment field in accounting tab a required field. How do i configure this.
Thank you.
RachelleIn you know the Transaction and screen Variant Configurations.
Use T-code SHD0
Put your Sales Order t-code There : Va01
Then Select the feilds or tabs whatever you want as mandatory , optional.
Customize as per your requirement and save the variant.
Next GO to the Sales Document types :
There In the Transaction flow you will find at variant feild.
Assign this variant there.
Next when ever you do sales Order for that Document type the feilds will be taken in the fashion of the variant.
regards,
SAP SD -
How to make a field in Sales order as Display
Hi Friends,
I want to make the field pricing date in sales order as display only. Currently the field is changeable.
Can someone please tell me how can i do this.
Regards,
Wasim.hi
Follow the below steps.
T-Code SE51(Screen Painter)
Give Program Name SAPMV45A (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1 and then select technical details)
Screen Number 4440(before doing this confirm from the field from sales order, keep curcer on the pricing date press F1 and then select technical details)
Select Attributes radio button.
Go to Element list Tab. Inturn select Special Attribute tab in Subscreen.
For Field Name "VBKD-PRSDT" make Input as "OUTPUT" (DISPLAY).
Hope this will help you -
How to add line item to sales order item table?
Kindly help me the with the below requirement .
Add line item to sales order(va01) dynamically on click of button. The button is also custom created push button.
In the above requirement I have added the pushbutton to va01 tcode. But when I click on that button I need to add line item to sales order item table.
I tried a lot but I am not successful. If possible can u please help on this.
Regards,
RachelHi!
It's quite easy even in the standard SAP to add a line item for a customer order, I don't think it worth to develop a new button for this.
However if you wanted to add a line automatically, the you can do the following in the program MV45AFZZ, FORM USEREXIT_SAVE_DOCUMENT.
You can use similar code, but with some modifications.
DATA: lv_posnr.
LOOP AT xvbap.
MOVE xvbap-posnr TO lv_posnr. "get the last posnr
ENDLOOP.
ADD 10 TO lv_posnr.
MOVE 'XYZ' TO xvbap-matnr. "enter your material number here
MOVE lv_posnr TO xvbap-posnr.
* fill additinal field data in XVBAP if necessary
MOVE 'I' TO xvbap-updkz. "Insert line
APPEND xvbap.
Regards
Tamá -
How to create a job card and how to add waranty card in sales order
I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
painful area is how to create a job card and how to add waranty in sales order.
Regards,
VenkatHi,
Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
Regards
Krishna -
How to add a button in Sales Order screen?
Hi,
Basically I want to add a new button "Show My lookup" in sales order screen and when clicking the button I want to show a form.
Please anyone tell me how to do this?.
thanks in advance
MinaHere is a sample ItemEvent that adds a custom button to Sales Order Entry, and loads a form from XML when it is clicked. Make sure you give the forms unique identifiers when you create them - the sample just uses a hardcoded value.
Hope it helps,
John
Private Sub sboApp_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
On Error GoTo ErrorHandler
Dim sboForm As SAPbouiCOM.Form
Dim sboItem As SAPbouiCOM.Item
Dim sboBtn As SAPbouiCOM.Button
Dim objXMLDoc As MSXML2.DOMDocument
Dim objXMLErr As IXMLDOMParseError
Dim objXMLElem As MSXML2.IXMLDOMElement
Dim strIdentifier As String
If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 139 Then
'Add Custom Button
Set sboForm = sboApp.Forms(FormUID)
Set sboItem = sboForm.Items.Add("AZU_BTN", it_BUTTON)
sboItem.Top = sboForm.Items("1").Top
sboItem.Width = "80"
sboItem.Left = sboForm.Width - 105
Set sboBtn = sboItem.Specific
sboBtn.Caption = "Custom Button"
End If
If pVal.EventType = et_ITEM_PRESSED And pVal.Before_Action = False And pVal.ItemUID = "AZU_BTN" And pVal.FormType = 139 Then
strIdentifier = "AZU_XXX" 'You should set this to a unique value each time
Set objXMLDoc = New MSXML2.DOMDocument
objXMLDoc.async = False
objXMLDoc.validateOnParse = True
objXMLDoc.Load (App.Path & "\Config\AZU_CUSTOM.srf")
Set objXMLErr = objXMLDoc.parseError
If (objXMLErr <> 0) Then
MsgBox "Failed to load XML screen definition."
Exit Sub
Else
For Each objXMLElem In objXMLDoc.getElementsByTagName("form")
objXMLElem.setAttribute "uid", strIdentifier
Next
sboApp.LoadBatchActions objXMLDoc.xml
End If
End If
Exit Sub
ErrorHandler:
MsgBox Err.Number & " " & Err.Description
End Sub -
Hi All,
I want to add new fields to the Additional Data A of the sales order header and
and new fields to the Additional Data A of the sales order item. Can anyone please suggest me if there are any user exits or BADI's for this.
Thanks,
Nammi.Hi Pavan,
The BADI which could have been used was BADI_SD_TAB_CUST_H but its made for SAP internal use only.
if you are working on ECC 6. May be you can try implementing this badi as an extension to SAP standard program and see if it works.
Regards,
Vikas
<b>Encourage by rewarding points if useful.</b>
Message was edited by:
Vikas Taneja -
How to Activate EAN field in sales order
Hi Guru's
Can anybody give me the T.code/path for Activating the EAN field at the sales order level i.e in salesA tab in item overview screen.
Thanks®ards,
NagendraHello Nagendra,
I wanted to know, in which scenario you need EAN field to be filled in Sales Order esp in Retail Scenario.
You will really have to look at the business need on this. In IS-Retail, you have multiple EANs for an article. Which EAN should SAP propose?
Further in a business scenario When a customer is going to buy or order, the customer wouldn't buy the product looking at the EAN. So i am still curious to know.
In case the business need is genuine, please raise OSS Note for the same.
Regards -
How to add material characteristics in sales order via BAPI?
Hi all!
I'm trying to use BAPI_SALESORDER_CREATEFROMDAT1 to create a sales order with one item that has some characteristics, but i can't seem to get it work. It creates the salesorder with the item but without characteristics data. Can somebody tell me what could be wrong?
Here's the code:
header-doc_type = 'TA'.
header-sales_org = '3000'.
header-distr_chan = '10'.
header-division = '00'.
items-itm_number = '000010'.
items-material = 'CP-12'.
items-req_qty = '1000'.
APPEND items.
partners-partn_role = 'AG'.
partners-partn_numb = '0000050000'.
APPEND partners.
c_ref-posex = '000010'.
c_ref-config_id = '000001'.
c_ref-root_id = '00000001'.
APPEND c_ref.
c_ins-config_id = '000001'.
c_ins-inst_id = '00000001'.
c_ins-obj_type = 'MARA'.
c_ins-obj_key = 'CP-12'.
c_ins-complete = 'T'.
c_ins-consistent = 'T'.
c_ins-quantity = '0'.
c_ins-quantity_unit = 'ST'.
c_ins-class_type = '300'.
APPEND c_ins.
c_val-config_id = '000001'.
c_val-inst_id = '00000001'.
c_val-charc = 'CP_12_ADD_ON'.
c_val-value = 'F'.
c_val-valcode = '1'.
APPEND c_val.
c_val-charc = 'CP_12_COLOUR'.
c_val-value = 'M'.
APPEND c_val.
c_val-charc = 'CP_12_MODEL'.
c_val-value = 'M'.
APPEND c_val.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
order_header_in = header
convert_parvw_auart = 'X'
IMPORTING
salesdocument = salesdoc
return = return
TABLES
order_items_in = items
order_partners = partners
order_cfgs_ref = c_ref
order_cfgs_inst = c_ins
order_cfgs_part_of = c_prt
order_cfgs_value = c_valBAPI_SALESORDER_CREATEFROMDAT1
"(obsolete from 4.6 version)
BAPI_SALESORDER_CREATEFROMDAT2
please see the version and change the BAPI
reward points if it is usefull ....
Girish -
How to add a partner in sales order item by enhancement?
Hi expert,
Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
Thanks and best regards
LanceHi Lance,
You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
You have to pass the following values to the FM:
COMWA-KUNNR <- the changed partner code
COMWA-PARVW <- parter role
COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
You'll get the result in parameter XVBPA, which can be used for append the internal
table XVBPA in the userexit.
BR,
Barna -
HI,
How to add additional fields in sales order in additional data tabHi ..
Hope this link helps you.
Link: [Additioanl tab enhancement|https://forums.sdn.sap.com/search.jspa?threadID=&q=salesorderadditional+tab&objID=f233]
Thanks,
Naveen.I -
Add field to Sales Order line item
I need to add a field to Sales Order line item, can you tell me a user exit??
Hi,
You can a new field in the additional data B tab of the sales order line item..
Check the program SAPMV45A and screen number 8459
Thanks,
Naren
Maybe you are looking for
-
Windows 7 installation on NB10T-A-103
Hi just say me how can i install windows 7 on this notebook? Can i do it?
-
A document page opens that is too big for the display and runs off the end of the monitor
How do you fix a problem where document pages open that are too big for the display and runs off the end of the monitor? The borders are off the monitor so there is no window edge to grab and adjust.
-
Help please on advanced MySQL...
Dear all: Sorry for posting some MySQL-related topics here, which neverthess is a portion of a Java intensive project =) I tried to ask for some help on MySQL forum but it seems here would be more gurus on MySQL!! Basically I need to do some manipula
-
Airport Extreme / Netgear router
Please could somebody walk me through this step by step as I am pulling my hair out ... I have a Netgear DG834 router which is connected to my broadband connection and is feeding my Macs. I have bought an iPad2 and have been trying to connect my Airp
-
Cant download facebook app,
My iphone wont let me install facebook app,it tells me i need to update my software