USEREXIT_ADD_FIELD_TO_LINE for updating sales order loading dates
Hi,
I have a requirement to update the loading date in the sales order scheduling lines. I am trying to do it in <b>USEREXIT_ADD_FIELD_TO_LINE</b> in program SAPFV45V but there is also a comment in the userexit stating field needs to be added to structure AV03VZ. Is this required? The code seems do fine without using the structure. Also, should I be modifying the include <b>FV45VFZZ_USEREXIT_ADD_FIELD_TO</b> itself or should I do it through CMOD. If so, what would be the enhancement?
We are in 4.7, it looks like from rel.>4.6, we should be using include <b>FV50XATP_USEREXITS</b> instead, but during debug, the codes in this userexit never get called. Are these two exits doing the same thing?
Does anybody know which one should a 4.7 systems be using to modify the loading date?
Thank you,
Minami
Found out that we do need to modify the include its own. And the FV50XATP_USEREXITS is being executed when the delivery due list is executed, not when the order is created so in order to influence the loading date in the order, userexit in SAPFV45V needs to be modified.
Question closed.
Similar Messages
-
Idoc segment for updating Sales order item dates
Hi All,
I would ike to update the sales order item dates (loading date, Goods Issuance date etc) from an IDOC.
please let me know the Idoc segment and fields that need to be filled in?
Thanks in advance.
Regards,
Zeeshan.Hi,
Here are some details of the segments in the idocs -
SEGNAM Segment Name E1EDL20
VBELN Sales and Distribution Documen 180001539
SEGNAM Segment Name E1EDL18
QUALF IDOC Qualifier: Control (Deliv PIC : Picking with flow records (inbound)
SEGNAM Segment Name E1EDL18
QUALF IDOC Qualifier: Control (Deliv PGI : Post delivery goods issue (inbound)
SEGNAM Segment Name E1EDT13
QUALF IDOC Qualifier: Date (Delivery 010 : Picking
NTANF Constraint for activity start 20090808
ISDD Actual start: Execution (date) 20090808
SEGNAM Segment Name E1EDL24
POSNR Item number of the SD document 10
MATNR Material Number 1112
WERKS Plant SG01
KDMAT Material belonging to the cust 1112
LFIMG Actual quantity delivered (in 55
VRKME Sales unit EA
POSEX External item number 10
ORMNG Original Quantity of Delivery 55
SEGNAM Segment Name E1EDL41
QUALI Qualifier for Reference Data o 001 : Purchase order data of customer
BSTNR Customer purchase order number 4500004668
BSTDT Customer purchase order date 10
POSEX Item Number of the Underlying 10
SEGNAM Segment Name E1EDL37
Regards,
Shamma -
BADI for Updating work order component data
Hi,
I need to update the field special stock indicator for the work order component data when it is saved. I am using the BADI WORKORDER_UPDATE for the same, but when I implemented the ZWORKORDER_UPDATE_IM using the standard defenition WORKORDER_UPDATE , the code does not allow me to change the it_component internal table belonging to the BEFORE_UPDATE method. Could you please help me in this.
Basically if we are implementing a standard defenition how to change the parameters of the methods in it.
Regards,
Prabaharan.GHi ,
It is giving the below dump. The parameter is importing parameter and it does not allow to change even using field symbol. Is there any other way. Is there an user exit which will be called when pressing enter button in component screen. The exit EXIT_SAPLCOBT_001 did not work for this.
Error analysis
The program tried to assign a new value to the field "<F_FS1>" even though
it is protected against changes.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions
and methods
- Untyped field symbols to which a field has not yet been assigned
using ASSIGN
- TABLES parameters if the corresponding actual parameter is protected
against changes
- USING reference parameters and CHANGING parameters for FORMs if
the actual parameter for this is protected against changes
Regards,
Prabaharan.G -
Sales Order Loading Date and Goods Issue Date
I am getting confused with specific sales orders in our system which have a loading date of 5.11.2008 00:00 and a goods issue of 6.11.2008 00:00, this would imply a loading time of 1 day, I would think. However in our system I look at the shipping point I see default from shipping point is 2 work days. Is there something I am missing or other setting I am not aware of?
What is the delivery scheduling type you are using for the sales document type? If you are using A change it to X. Also check the loading times.
Regards,
GSL. -
Inbound IDoc used for updating Sales order status
I have a requirements to set use standard IDoc to send out the Sales order to a non-SAP software as well as receiving Inbound IDoc to update the status of sales order in SAP. Could someone comment on my questions below:
1. What are the difference between all the ORDERSxx Idoc types?
2. What IDoc should be used for Inbound IDoc to update the sales order stataus in SAP?
3. Can the same IDoc type be used for both Inbound and Outbound with only the difference in the segment of Direction?
Thank you. Points will be awarded appropriately for helpful comments.Hi,
1.Intially standard IDOC types "ORDERS01" is having limited
segments. After few months the requirement got increased to
add more fields to "ORDERS01".So,once you release the IDOC
type you can not add any more fields .So SAP come up
with "ORDERS02" with new fields.Like that all IDocs types have
some more new seg ments.
2.You can use ORDER05
3. Yes you can use same IDOC type -
Userexit for updating sales order user status based on PO
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Userexit for updating sales order user status based on Production Order
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Updating Sales Order no in Production Order
we have csenario for Sales Order : Inquery - Quotation - Sales Order .
In PP we have MTO scenarion . when i run MRP and convert the plan order to Production Order , in place of Sales Order it was updatin Quotation in Production Order .
we have checked SD config for sales doc Item category =TAC and in Material Master we will used Item Category = NORM
Please suggest is there any other setting for updating Sales Order no in Production Order .
Thnx.Hi,
I assume that you are using the strategy 20 (MTO). Go to OVZG here select the class 040 Indiv.cust.w/o cons., keep BLANK for account assignment consumption and rerun the whole cycle and check.
Thanks
Hrishi -
Update sales order through workflow
Hi,
i developed one workflow for sales order. after all aprovals the sales order is updating upto 2nd change. but 3rd change is not updating sales order.
For updating sales order i am using BAPI_SALES ORDER_CHANGE function module.
Thanks.Hi Abdullah Azzouni
my scenario is when sales order is created or changed my workflow should trigger and make sales order as incomplete with (Z field) by using incompletion Procedure.
Also some other custom fields there for other workflows in salesorder.
In METHOD
select single zfield1
zfield2
zfield3
Zfield4 <- for my workflow
INTO wa_ext_hdr
FROM vbak
WHERE vbeln = object-key-salesdocument.
wa_ext_hdr-zfield ='X'.
wa_ext_hdrx = 'XXXX'.
MOVE 'U' TO wa_headerx-updateflag.
MOVE: BAPE_VBAK TO wa_extflds-structure.
CONCATENATE object-key-salesdocument
wa_ext_hdr INTO
wa_extflds-valuepart1.
APPEND wa_extflds TO i_extflds.
MOVE: BAPE_VBAKX TO wa_extflds-structure.
CONCATENATE object-key-salesdocument
wa_ext_hdrx INTO
wa_extflds-valuepart1.
APPEND wa_extflds TO i_extflds.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = object-key-salesdocument
order_header_in = wa_header
order_header_inx = wa_headerx
behave_when_error = 'P'
TABLES
return = i_return
extensionin = i_extflds.
READ TABLE i_return INTO wa_return WITH KEY type = 'E'.
iF sy-subrc EQ 0.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Can you help on this.
Please suggest me where i am wrong or if you know any other way to achieve this functionality guide me.
Thanks in Advance.
Raj -
BDC for VA02 to update Sales Order
Hi,
I'm try to run a BDC to update partner data on the sales order header data but I get this error when I executed the BDC.
Field 'GVS_TC_DATA-REC-PARTNER(8) does not exist in the screen SAPMV45A 4002
Please advise. The code is as shown below:
REPORT zstd21 NO STANDARD PAGE HEADING
LINE-SIZE 255.
INCLUDE bdcrecx1.
DATA:
BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
kunnr LIKE vbpa-kunnr,
END OF itab.
PARAMETER: p_flname LIKE sopcpath-file OBLIGATORY
VISIBLE LENGTH 100.
START-OF-SELECTION.
PERFORM read_data_from_file.
PERFORM open_group.
PERFORM update_order_salesrep.
PERFORM close_group.
END-OF-SELECTION.
*& Form READ_DATA_FROM_FILE
text
--> p1 text
<-- p2 text
FORM read_data_from_file .
DATA:
lv_filename TYPE string.
CONSTANTS:
c_numeric TYPE char10 VALUE '0123456789'.
CLEAR lv_filename.
lv_filename = p_flname.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lv_filename
filetype = 'DAT'
has_field_separator = 'X'
dat_mode = 'X'
CODEPAGE = SPACE
CHANGING
data_tab = itab[]
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 .
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF itab[] IS INITIAL.
MESSAGE i000(zv).
STOP.
ENDIF.
CLEAR itab.
LOOP AT itab.
IF itab-vbeln CO c_numeric.
UNPACK itab-vbeln TO itab-vbeln.
ENDIF.
IF itab-kunnr CO c_numeric.
UNPACK itab-kunnr TO itab-kunnr.
ENDIF.
MODIFY itab.
ENDLOOP.
ENDFORM. " READ_DATA_FROM_FILE
*& Form UPDATE_ORDER_SALESREP
text
--> p1 text
<-- p2 text
FORM update_order_salesrep .
CONSTANTS:
c_header TYPE vbpa-posnr VALUE '000000',
c_srep TYPE vbpa-parvw VALUE 'ZS',
c_field TYPE bdcdata-fnam VALUE 'GVS_TC_DATA-REC-PARTNER(',
c_quote TYPE char1 VALUE '''',
c_bracket TYPE char1 VALUE ')'.
DATA:
lit_vbpa LIKE vbpa OCCURS 0 WITH HEADER LINE,
lv_field TYPE bdcdata-fnam,
lv_pos(2) TYPE n.
IF NOT itab[] IS INITIAL.
SELECT mandt vbeln posnr parvw
INTO TABLE lit_vbpa
FROM vbpa
FOR ALL ENTRIES IN itab
WHERE vbeln = itab-vbeln
AND posnr = c_header.
ENDIF.
SORT lit_vbpa BY vbeln posnr parvw.
LOOP AT itab.
CLEAR: lv_field,
lv_pos.
CLEAR lit_vbpa.
LOOP AT lit_vbpa WHERE vbeln = itab-vbeln.
lv_pos = lv_pos + 1.
IF lit_vbpa-parvw EQ c_srep.
CONCATENATE c_quote c_field lv_pos c_bracket c_quote
INTO lv_field IN CHARACTER MODE.
CONDENSE lv_field.
EXIT.
ENDIF.
ENDLOOP.
IF NOT lv_field IS INITIAL.
PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR' 'VBAK-VBELN'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'VBAK-VBELN' itab-vbeln.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE' '=KPAR_SUB'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4002'.
PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.
PERFORM bdc_field USING 'GV_FILTER' 'PARALL'.
PERFORM bdc_field USING lv_field itab-kunnr.
PERFORM bdc_transaction USING 'VA02'.
ENDIF.
ENDLOOP.
ENDFORM. " UPDATE_ORDER_SALESREPHi satyadev,
As per this error message "Field 'GVS_TC_DATA-REC-PARTNER(8) does not exist in the screen SAPMV45A 4002", screen does not have GVS_TC_DATA-REC-PARTNER(8) field.
It is obvious that your recording has this field but not the current screen.
Look at the screen and recording, if possible do a re-recording.
This is a general problem with BDCs. Configuration / screen fields and screen order should be similar with the recording screen order and screen field.
One of the possible reason may be your functional team might have changed the screen number or they might have hide this field.
Hope this helps..
Mubeen -
I have to load sales order header data 2lis_11_vahdr
I have to load sales order header data 2lis_11_vahdr but i dont know which starndard dso and cubes which use for this data souce.
please give me list of dso and cube for 2lis_11_Vahdr, 2lis_11_vaitm,2lis_11_vasch for this data sources and also give the standard quaries..
Thanks in Advance....Hi Praveen,
follow documentation about BI Content available on help.sap.com:
BI Content & BI Content Extensions -> Supply Chain Management -> Order Fulfillment
-> DSO objects
-> InfoCubes
as per your requirements you need to study available objects DSO/cubes to see what covers it.
cheers
m./ -
Report for viewing Sales order no against delivery date & actual GI date
Hi Experts,
Is there any report for viewing Sales order no against delivery date & *actual GI date*
Because in VL06F , i can only able to get planned GI.
Please guide regarding the same where i can get 'ACTUAL GI DATE ' against above combination .
Regards,
Sujit S.dear Hrishi,
i followed your suggestion, but couldn't get desired results,
here i can get planned GI date, where i wanted to get Actual GI date for complted deliveries,
thanks for your valuable reply.
@ G. Lakshmipathi ;-
i think i will need to develop z-report for fetching the data from the tables
VBAK (to get sale order reference) and
LIKP (to get delivery and actual GI date)
thanks for your reply,
Regards,
Sujit -
For a Sales order, what is Actual Delivery Date to Customer?
Hi Experts,
I am an ABAP consultant. In a particular report, for a Sales order I am asked to display:
‘Delivery Create Date (LIKP-ERDAT)’,
‘PGI Date’,
‘Requested Delivery Date (VBAK-VDATU)’ and
‘Actual Delivery Date to Customer’.
And in addition, I also have to show:
‘No: of days between Order Create Date to Delivery Create Date’,
‘No: of days between Delivery Create Date to PGI Date’,
‘No: of days between Requested Delivery Date to Actual Ship Date’ and
‘No: of days between Order Create Date to Actual Ship Date’.
I’ve searched SCN for similar questions but I couldn’t get clarity. I’ll be very grateful if somebody can explain me how to find the ‘Actual delivery date to customer’ and what is the difference between this date and ‘Billing date’. Also, please explain, the difference between ‘Delivery Create Date’ & ‘PGI’?Hi Rashmith,
It seems the report is related to delivery. Below is the explanation for the different terms you mentioned in your question.
Delivery Create Date (LIKP-ERDAT)---- when a delivery is created with or without reference of an order system writes the date of creation time of creation and created by in the header data. Creation of delivery does not means that goods are dispatched. There are many steps further after a delivery is created before goods are dispatched. For example I have created an order, created delivery on 01.01.2014; delivery date will always be 01.01.2014.
PGI Date (LIKP-WADAT_IST)------ Post goods issue date is the date on which goods move out of the company to carrier. This is the last step of delivery. When delivery is created system derives different dates of planning; at this stage it will determine the planned PGI date (LIKP-WADAT) and when actual PGI happens system writes the date in LIKP-WADAT_IST which is actual goods issue date.
Requested delivery date (VBAK-VDATU)------When order is created for a customer he asks for a material, a quantity and a date on which he wants the goods. This date on which customer wants the goods is called requested delivery date. Based on the requested delivery date system will check feasibility of delivering the goods on the requested delivery date based on the delivery scheduling.
You can get the RDD based on the below logic.
Input the delivery number in VBFA-VBELN and VBFA-VBTYP_V and get VBFA-VBELV.
Input VBFA-VBELV in VBAK table and get the value of VDATU.
Actual Delivery Date to Customer-----Actual delivery date is Actual post goods issue date (LIKP-WADAT_IST). This is the date on which goods are issued to the customer and customer is liable for billing for the goods dispatched.
Difference between the Actual delivery date (Actual goods issue date) and billing date.
Normally as per standard SAP, once goods are moved out of the company customer is liable to be for billing for the goods dispatched. So by default in standard SAP system copies the actual goods issue date (LIKP-WADAT_IST) as billing date (VBRK-FKDAT) irrespective of the date of creation of the invoice (If delivery is goods issued on 01.01.2014 and billing document/invoice is created today i.e. 14.04.2014, system by default will take 01.01.2014 as billing date). And this is the correct practice.
However if you want the current date as the invoice creation date instead of the actual goods issue date we can control it by copy controls feature given in SAP.
So based on the copy controls setting, it may be different from the actual goods issue date/ actual delivery date. -
How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)
Hi all
I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
Many Thanks in advance
IshiHi Hari
Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
It says in R/3 Start of Processing, I ticked to continue and its still running.
In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
Can you tell me how long it takes to fill the table?
And the R/3 system is still running (Start of Processing)
Thanks again
Ishi -
Hi,
I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.
Regards,
ShanmugaHello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
Points are always welcome if you feel an answer has been helpful.
Maybe you are looking for
-
SharePoint 2013 User Profile Synchronization service problem
After one week trying (three clean installs of SharePoint 2013), I haven't succeed to start "User Profile Synchronization service". Environment: Domain environment with two Windows Server 2012 R2 domain controllers. Fully qualified domain name match
-
After upgrading to Mountain Lion, Safari on my iMac and my MBA is showing mobile websites
While using the Safari browser on my iMac today, I was redirected to the mobile version of a website repeatedly. Just to see if it was something specific to my iMac, I tried the same website on my MBA and it did the same thing. Both have been upgra
-
I am attempting to communicate with a web service via flash across sub domains. All works fine and dandy on my local machine, but when i upload to my web server there is no communication across the domains. The way the servers are configured, i don't
-
How to use c:if with or(||), is possible?
I'm trying if is possible to utilize tag <c:if how an || at the Java, is possible?
-
Hi all, i dont know why the sql statement insert it works. insert into table A but when i select from all_tab_cols i cant find this table . is that another way i can find this table under which owner ? tks.