Your Ref ship number in Sales order Header
Hi all,
I have a requirement to update Your Reference Ship number in Purchase order data Tab of CRM sales order(Header) with a number coming from an RFC destination.
I am using BADI ORDER_SAVE Method CHANGE_BEFORE_UPDATE to do the processing of RFC destination.I have used FM 'CRM_SALES_PUT_OB' to put the number in buffer but still its not updating the database table CRMD_SALES with number.
Is there any FMs to update the same??
Thanks,
Srilatha
Hi ,
Try CRMXIF_ORDER_SAVE .
Please tell if it works .
Ajith
Similar Messages
-
Shipping conditions in sales order Header
Hi
For certain users , field shipping conditions VSBED (Header) needs to be in display mode only in T-code Va02
i am creating a security object and that will be assigned to those user roles.
I need user exit which can be used to trigger this change ( executing security object)
SriThe subroutine called USEREXIT_FIELD_MODIFICATION in include program MV45AFZZ of main program SAPMV45A is a good place to try your concept.
Regards,
Ken -
Assignment number Field in sales order header
Hi All,
Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
I need to specify the assignment number while creating a new order through IDoc.
Thanks.
Regards,
RiyazHi,
Use transaction we60 to find the relevant documentation for your idoc type.
regards,
Jakub -
Serial number in sales order creation
HI all,
please help to me........
My requirement a add the serial number BAPI sales order.
problem is their no serial number in bapi structure.
How to add serial number crate a salesorder bapi.
serial number is RIPW0-SERNR.
Thanks & Regards,
SReddy.hi,
refer to this link
http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/content.htm
refer to this code...
Also if you set the * CONVERT_PARVW_AUART = 'X' parameter to 'X' you can use sold to party as SP and ship to party as SH.
REPORT ZEX_BAPISALESORDCRT .
--Data Declaration--
Data: st_BAPISDHEAD like BAPISDHEAD, " Sales Order Header Data
ta_BAPIITEMIN like BAPIITEMIN occurs 0 with header line, " Ln item
ta_BAPIPARTNR like BAPIPARTNR occurs 0 with header line, " Partner
d_BAPIRETURN1 like BAPIRETURN1, " Bapi return msg
d_vbeln like bapivbeln-VBELN. " Sales Order Number
Move the data to create sales order in the repective parameters------*
move: 'TA' to st_BAPISDHEAD-DOC_TYPE, " Sales document type
'15493' to st_BAPISDHEAD-PURCH_NO_C,
'00010' to ta_BAPIITEMIN-ITM_NUMBER,
'Y-351' to ta_BAPIITEMIN-MATERIAL,
'1100' to ta_BAPIITEMIN-PLANT,
'1' to ta_BAPIITEMIN-REQ_QTY,
'AG' to ta_BAPIPARTNR-PARTN_ROLE, " Sold to Party
'0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
Append the internal tables-------------------------------------------*
append ta_BAPIPARTNR.
clear ta_BAPIPARTNR.
append ta_BAPIITEMIN.
clear ta_BAPIITEMIN.
Move ship to party---------------------------------------------------*
move: 'RG' to ta_BAPIPARTNR-PARTN_ROLE, " Ship to party
'0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
Append the internal tables-------------------------------------------*
append ta_BAPIPARTNR.
clear ta_BAPIPARTNR.
Call the Bapi to create the sales order
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = st_BAPISDHEAD
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = d_vbeln
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = d_BAPIRETURN1
TABLES
ORDER_ITEMS_IN = ta_BAPIITEMIN
ORDER_PARTNERS = ta_BAPIPARTNR
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
if d_vbeln <> space.
write: 'Sales order No. ', d_vbeln.
endif. -
How to include a new Z Partner Function in Sales order header drop down lis
Hello SAP experts,
We have come up with a new requirement to include a custom Partner Function-ZI in dropdown of SO header-Partners field.
Current scenario- Presently we are maintaining this partner function ( Say ZI- Institute ) in customer master data-Sales area tab.There could be more than one partners under this PF in master data. While entering sales Order, all partners associated are displayed in Header- partners tab, where only SP, SH, BP, PY partner functions are displayed.
Requirement- 1. Is to provide Drop down of this ZI-Institute partner function (which I did not find presently) in SO header-partners field and user should be able to provide one of partner function as available in Customer master ( as there are more than one partners that can be set in Customer master data but user need to be able to provide ONE of this ZI partner fucntion in DROPDOWN of PF tab in SO header ).
2. In addition, How can I link this new partner function in related sales reports against that particulat order and invoice?
Kindly suggest your valuable inputs as what should be the procedure to get this.
Many thanks in advance.Hi,
Go to partner determination by VOPA
OR
IMG >> SD >> Basic function >> Set up partner functions >> set up partner function for sales document header
click on partner function and Maintain partner function ZI and back
Then select your existing partner determination procedure (Standard is TA) and click on PARTNER FUNCTIONS IN PROCEDURE and add partner function. and make it mandatory so even user forget to mention then at the time of saving system can remind user
Then double click on PARTNER DETERMINATION PROCEDURE ASSIGNMENT
Assign partner procedure to sales document
Now when you creating sales order go to header partner tab and enter you institute partner number
For sales order and invoice report
Execute this report by selecting partner function ZI in VA05N and VF05 respectively
kapil -
Sales group not filled form sales order header in PGI accounting Document
Hi all,
we are creating a sales order . when sold to and ship to is entered the sales group at the header level is fetched from the customer master automatically.
Now after changing the sales group,different from customer master,the sales order got saved as usual with a warning mesaage 'sales group is diiferent from customer master'.
After doing PGI and billing , the sales group fetched in billing document is same as that of sales order header,but when good issue delievry document is displayed , in accounting document of the material document (ie. in FB03),the sales group in profit segment tab is getting filled from customer master.
Now the requirement is to fetch the sales group from sales order header instead of customer master.hi
check your copy control settings and change if required -
Sales order header data change by using the ORDERS05 IDOC
Hello Team
I am getting sales order number and some code value from the legacy system. i need to check whether the sales order is avialable in SAP or not. if it is there, i need to update the CODE value (ie for example ABC100) in sales order header data> order data> your reference field. For doing this i am using the IDOC type ORDERS05 and message type ORDCHG message type.
Now i want to know what are the mandatory fields which i need to do the mapping for the IDOC ORDERS05, to change the sales order header data. please check and suggest me the required fields of the IDOC to be mapped, so that i can change the sales order header data.
Please correct me if i am doing something wrong here.
Regards
RjHello chirag
Thanks for your reply. My requirement is to change the sales order which is already avialable in SAP. Just i need to change the header data of the sales order, for example if i am getting the sales order as 1000 and CODE as ABC100. i need to change the Sales document number 1000 and put the code ABC100 in sales order header data>orders data>your reference field.
So now i want to know the below points
1. what are the mandatory fields for which i need to pass the values for the IDOC ORDERS05.
2. what is the user-exit used for picking up those values from SAP because i am getting only sales order number and CODE values from legacy system.
Please check and suggest me accordingly.
Regards
Rj -
Sales tab in Sales order header
Hello Gurus
When i create a sales order and delivery number for my warehouse. the the 'Delivery status' field of Sales tab in the sales order header data is automatically getting updated 'Fully delivered' .If i create a sales order with out saving the entry and if i go to 'Delivery status' field to check for the delivery status it says 'Not delivered'
Can you please let me know how this field is getting updated .Is there a config where i can control this .
ThanksHi,
Once you create a delivery for the respective line item for same qty the delivery status will be change to fully delivered.
But when you create a sales order in VA01 and before saving you see the status its " Not delivered" because the line item deliver has not been donr ( delivery document not created). Its an standard SAP behavior.
Also check the copy control in VTFA in update document flow field at item category level
Hope this will help you to resolve your query!!
Regards,
Krishna O
Edited by: Krishna O on May 28, 2010 7:16 AM -
Bdc for sales order header text
we need to write a bdc program for va01. In that we need to
upload header text also .
So please kindly tell me how to upload flat file to va01 along with
header text.And how we need to declare the flat file.
if it is not possible through bdc then tell me how to do with bapi.
thank you so much for all the repliesHi,
Using BDC, You can not uplaod sales order header text. You can upload the header text using FM
CREATE_TEXT.
Here giving sample code. This code is written for Material master text. You change this code according to your requirement
REPORT ZMM_INSERT_LONGTEXT.
*Internal table to hold long text...
DATA:
BEGIN OF T_UPLOAD OCCURS 0,
MATNR LIKE MARA-MATNR, " Material number
ID(2) TYPE C, " Identification
LTEXT LIKE TLINE-TDLINE, " Long text
END OF T_UPLOAD,*Internal table to hold long text....
T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
W_GRUN LIKE THEAD-TDID , " To hold id
W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
" To hold object id
LV_VALUE(70). " Value to hold material number
START-OF-SELECTION.* This perform is used to upload the file
PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
PERFORM PLACE_LONGTEXT.
*& Form create_text
* This routine used to create text in MM02 transaction
* Passed the parameter w_grun to P_C_GRUN
* and lv_value to P_LV_VALUE
FORM CREATE_TEXT USING P_C_GRUN
P_LV_VALUE. DATA:
L_ID LIKE THEAD-TDID,
L_NAME(70). MOVE : P_C_GRUN TO L_ID,
P_LV_VALUE TO L_NAME. CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = L_ID
FLANGUAGE = SY-LANGU
FNAME = L_NAME
FOBJECT = W_OBJECT
* SAVE_DIRECT = 'X'
* FFORMAT = '*'
TABLES
FLINES = T_LINE
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
CLEAR LV_VALUE.
ELSE.
DELETE T_LINE INDEX 1.
ENDIF.ENDFORM. " create_text*&---------------------------------------------------------------------*
*& Form upload_file
* This routine is used to upload file
* No interface parameters are passed
FORM UPLOAD_FILE . CALL FUNCTION 'UPLOAD'
EXPORTING
* CODEPAGE = ' '
* FILENAME = ' '
FILETYPE = 'DAT'
* ITEM = ' '
* FILEMASK_MASK = ' '
* FILEMASK_TEXT = ' '
* FILETYPE_NO_CHANGE = ' '
* FILEMASK_ALL = ' '
* FILETYPE_NO_SHOW = ' '
* LINE_EXIT = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* SILENT = 'S'
* IMPORTING
* FILESIZE =
* CANCEL =
* ACT_FILENAME =
* ACT_FILETYPE =
TABLES
DATA_TAB = T_UPLOAD
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. SORT T_UPLOAD BY MATNR ID.
ENDFORM. " upload_file
*& Form place_longtext
* This routine places the text in MM02 transaction
* No interface parameters are passed
FORM PLACE_LONGTEXT . LOOP AT T_UPLOAD. T_LINE-TDFORMAT = 'ST'.
T_LINE-TDLINE = T_UPLOAD-LTEXT.
APPEND T_LINE. IF T_UPLOAD-ID EQ 'BT'.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'GRUN' TO W_GRUN. "Test ID for Basic data text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IT'.
CLEAR W_GRUN.
MOVE T_UPLOAD-MATNR TO LV_VALUE.
MOVE 'PRUE' TO W_GRUN. "Test ID for Inspection text
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF. IF T_UPLOAD-ID EQ 'IC'.
CLEAR W_GRUN.
MOVE : T_UPLOAD-MATNR TO LV_VALUE,
'IVER' TO W_GRUN.
"Test ID for Internal comment
PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
ENDIF.
ENDLOOP.ENDFORM. " place_longtext -
What's the name of FM for getting Sales Order Header / Item Status info
Hello All:
Do you know what's the name of Function Module for getting Sales Order Header / Item Status Overview ? Any sample code will be very much appreciated.
Basically, I am trying to create a Webpage where user can enter the Sales Order document number and will return the Sales Order: Status Overview.
Thanks,
Dipankar BiswasThanks everybody ! Appreciate for your prompt response. I was also looking for some sample code, and I did find some on. And here is one. I still have to try the code, but here is for all your reference:
*& Report ZBAPI_SALESORDER_GETSTATUS *
*& Read and Display the Sales Order Items and Status of the Order *
REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
TABLES: vbap. "Sales Document Item Data.
DATA: wa_bapireturn TYPE bapireturn,
wa_bapisdstat TYPE bapisdstat,
it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
TYPES: BEGIN OF ty_mat_name,
matnr TYPE makt-matnr,
maktx TYPE makt-maktx,
END OF ty_mat_name.
DATA: wa_mat_name TYPE ty_mat_name,
it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
START-OF-SELECTION.
SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = p_vbeln
IMPORTING
return = wa_bapireturn
TABLES
statusinfo = it_bapisdstat.
IF wa_bapireturn IS INITIAL. " Successful Execution.
WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
ULINE.
LOOP AT it_bapisdstat INTO wa_bapisdstat.
WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
40 wa_bapisdstat-prc_stat_h, " Processing Status
50 wa_bapisdstat-dlv_stat_h, " Delivery Status
60 wa_bapisdstat-itm_number, " Item Number
80 wa_bapisdstat-material, " Material
90 wa_mat_name-maktx, " Material Description
130(10) wa_bapisdstat-net_price. " Net Price
CLEAR wa_bapisdstat.
ENDLOOP.
REFRESH it_bapisdstat[].
ELSE.
WRITE: wa_bapireturn-message.
ENDIF. -
Hi All,
I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I moved them to Test system.
In Test system I checked the header texts, only the following text id's are comming. They do not have any data and remaining textid's are not comming.
DEV
Form Header
Header note 1
Header note 2
Shipping instructions EN
SAC code C000
SAC code I410
SAC code E740
Carrier requested by customer
PST EN
PED EN
ZTR EN
TEST
PST
PED
ZTR
I went to VOTXN and checked sales order header texts -> Textprocedure -> Z1-Order Text Procedure, Text Id's in this procedure, I see 11 ID's there in Dev and in test system I see only PST, PED and ZTR. I created these three in text object VBBK sales docu header. It is working fine in Dev and when I move these to Test system only these 3 id's are showing up. I wrote the code for this in ZXVEDU06. How come the remaining Id's are not showing here and values are not comming for these 3 Text Id's.
Can Someone please help me with this.
Thanks,
Veni.Hi Bhasker and Bill,
Thankyou for your valuable information.
Bhasker, I added all texts again and trasported. Now in test system I can see all of them.
I commented out all the code in ZXVEDU06 and created a sales order, as you said it picked up all the texts automaticaaly. This is the first time I am doing this work, so by someone's suggestion in SDN I created the include and wrote the code in ZXVEDU06.
It is working fine for this customer but if I try to create sales orders for other customers then I am getting the following error.
I/O error for text VBBK 0023 EN
I/O error for text &1 &2 &3 &4
Message no. TD607
Diagnosis
You want to read a text from the database, delete it, or save it to the database.
System Response
An error occurred when the database was accessed.
Procedure
Try repeating the procedure. If the error recurs, contact your system administrator.
Can someone please help me with this problem.
Thanks,
Veni. -
How to find Idoc Number on sales order screen .Also any table that holds both Idoc number and sales order number?
Appreciate your Help Thanks!Hi
go to header-> output in the sales order and u will find the idoc no there
Ranga -
Complete delivery indicator in the sales order header level
my order quantity is 10 and having the complete delivery indicator in the header level
Complete delivery indicator in the sales order header level
when i am doing the partial delivery i got below error
Delivery quantity is less than quantity of 10 PC assigned to batches
this is warehouse linked.
Please let us know how to do the partial delivery.
when i click on the bacth icon to reduce the quantity it is greayed out.
is there any posiblity to reduce the quantity in the transfer order
Please do the needfull
thanks
Raju.Hi
Usually this Complete delivery indicator flow from Customer master data. you need to change this data in Customer Master
Sales Area Tab under Shipping view Remove the Complete delivery indicator, also in Partial delivery per item keep the field Blank ( Partial deliveries allowed )
I hope this will solve your issue
Award if useful to you -
Creating multiple partner function for a sale order @ header level
Hi All,
I have a requirement where in i have to create more than one partner funtion for a sale order @ header level. But the system did not allow this sort of scenario and i got the error,
Partner function ZZ can only occur 1 times in procedure TA (Sales Document Header)
the function module that was giving this error was SD_PCHECK_PARVW_COUNT_OK
here the function module checks if a partner function already exists if so it throws that error. This also updates the VBPA table where partner function is one of the key fields.
Our issue is that we have to allow the system to enable posting 2 or more partner function for the same sale order. It was also verified that the unique key was unchecked during configuration.
is there any other way of over coming this issue as we are updating the standard table. Is it possible??
Thanks a lot in advance for your reply....I believe this is a configuration setting, based upon the details of your post. Typically, a sales order can have multiple partner functions, but usually the partner type is not duplicated at a single level (header or one item). For example, it would not be logical to have multiple ship-to partners at the header level...these would be unique at the item level, if required.
Speak to your SD functional specialist about the configuration controls for partners, if you must have more than one partner with parvw = ZZ, for the entire order (header level).
Edited by: DaveL on Aug 23, 2011 3:00 PM -
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.
Maybe you are looking for
-
Hello, I've created a from that is opened when a menu item is clicked. But when this form is closed, I cannot open it again when I click the menu item again. Does anyone have a working example of how to open a form created with screen painter. And wh
-
How to export contacts and change vcf to csv file
I need to export the contacts so I can make updates and import them into my marketing system. iCloud exports in only ,vcf, which cannot be imported anywhere I can find.( that is the entire file, not one contact at a time) I am very frustrated and do
-
What can be done about the terrible font rendering in Adobe Flash 11.6?
Some fonts in the latest version of Adobe Flash are terrible. They are almost unreadable! Take a look at the fonts rendered from Adobe's own site: (Can you read what version or OS or Browser?) I have other sites where the fonts are readable but th
-
How can I custom size photo paper to 11" x 14" in PSE 11?
I have a Canon PRO-10 printer. I made the custom size change to 11 x 14 in the driver's printer properties, but it does not show up as a choice when I open the dropdown in PSE 11. Is there no way to use custom size paper in PSE 11? What am I doing
-
[Solved!] ssh & sshfs problems guides and links enclosed
http://home.comcast.net/~pudges-place/s - page1.html Is a very good guide to setting up ssh/sshfs under Arch http://wiki.archlinux.org/index.php/SSH http://wiki.archlinux.org/index.php/Sshfs Last edited by Mr Green (2007-11-07 21:04:49)