Delivery block on Sales order using Condition Value Formula routine?
Hi ABAP Experts,
I want to place delivery block (LIFSK/LIFSP) on sales from Condition Value Forumla routine 09.
I have a structure komp and xkomv.
I don't think the field exist in either of the structures.
How can possibly place block on the Sales if there is wide difference in both the prices.
I know the standard SAP changes the status of sales order to incomplete and we have to do V.25 in order to process.
But need specific delivery block 'ZZ' to identify it.
Can you explain this??
Thanks,
Matt
Helllo O ,
i think u can enhance those structures ....for more info...check documentation in SPRO.
regards
Prabhu
Similar Messages
-
Removing of Delivery block in Sales Order using Authorization
Hello,
I have a urgent requirement on removing a Delivery block using authorization.
The object V_VBAK_AAT is assigned to me and the ACTVT : 43 is permitted so I can release the block.
As this was not working I have created my own object with values ACTVT as 01, 02 , 43 and LIFSK : 1-10,11,12-99 .
I am trying to remove the block from VA14L from VA14L I select my order with respect to delivery block and it navigates to VA02.
From VA02 I am trying to remove the block.
As this requirement may be simple but it is blocking my development.
Thanks.Please correct whether I understood your issue correctly or not.
You have developed the program only to put delivery block to Sales Order. This block should be approved by Authorized people for allowing the users to create delivery else Sales order delivery should not be possible. Is that program has any other additional functionality other than setting Delivery block??
To keep delivery impossible till the Authorized person approves Sales order, you have the option of User Status. Process for creation of User Status for your requirement
Create User Status Profile in OIBS
Keep BLCK (Blocked for Delivery) & APPR (Approved for Delivery) as 2 statuses (No. of status can be as per your requirement. Here, simply I have 2 statuses)
Assign Object types as "Sales Order Header" (if you want the Authorized people to approve at header level) or "Sales Order Item" (if you want the Authorized people to approve at Item level, may be for partial delivery)
Keep BLCK as Initial status & Double click on BLCK status & click New entries on "Business transactions"
There are many Business transactions such as "Create Delivery" / "Create Goods Issue for delivery". As per your requirement, select Forbidden option in one of the above mentioned business transaction
Create Authorization Key in BS52 for Authorized People, say, as MNGR (Manager)
Assign that Authorization Key to APPR user status in User status profile
Using PFCG, you can create separate role by assigning this Authorization key
This can be different kind of solution from your way. For reference, you can refer below document. Document content points some other space & transaction. But you can relate to above steps mentioned.
User Status in SAP -
Schedule Background Job : Remove delivery Block in Sales order
Hi Gurus,
I have a requirement to select all sales orders as per a condition and remove delivery block at
VA02-> Go to -> Header -> Status
For that I have to write a program which will be run only in background and i have to schedule background job for the same.
I have a parameter at selection - No of records
If no of records = 500 , I have to submit 500 jobs ie one job each for each sales order for removing delivery block.
I need to know
1) Which function module/bapi I can use to remove delivery block at sales order header level.
For blocked delivery the status is 'BSTK" . to remove block i need to change status to "RSTK".
2) How to schedule a background job for my program and how to submit one job each for each sales order.
Regards
Avi.Hi Avi,
Would like to seek for your advice. I am facing the same scenario too which is to delete the delivery block but is deletion of the delivery block is done in the user exit MV45AFZZ. The subroutine which needs to have the extra logic of deleting the delivery block is USEREXIT_SAVE_DOCUMENT_PREPARE.
Need your advice on how do you solve this scenario? Thanks in advance. -
Automating delivery blocks in sales orders
Hi,
We have a delivery made with ref to a sales order. The goods are third party warehouse managed.When the goods are no longer needed, a third party warehouse sends an idoc in our system. This idoc deletes the delivery in our sap system and as soon as the delivery is deleted, the system also puts a delivery block(VBAK-LIFSK) in sales order at header level so that no further deliveries are made with ref to sales order.
There is an issue at present that this delivery block is not set in sales order when the delivery is deleted.
could anybody pls help where the code might have been written to automatically put the delivery block in sales order when the delivery is deleted.
regardsHi,
Just code the delivery block logic in DO user exit MV50AFZ1 routine "userexit_delete_document".
Thus, when DO deleted then system will auto set delivery block to SO.
Hope this help.
Cheers, -
Delivery block in sales orders in CRM
Hi,
When creating a sales order in CRM, if the item price condition is set to a particular value, then the delivery block field should be set with the corresponding value.
Delivery block can be set using BADI CRM_SHIPPING_BADI.
But am not able to find a pricing badi that has pricing condition field.
Can any one suggest how to handle this.
Thanks & Regards,
Karthik.Hi Karthik,
try the following BADIs.
CRM_PRIDOC_COM_BADI
CRM_PRIDOC_COMH_BADI
CRM_PRIDOC_COMM_BADI
Regards
Kaushal -
Creation of Sales Order using condition records
Dear Experts,
I am creating a sales order using a Function Module : ISM_SALESORDER_CREATEFROMDAT2
In this function module I want to pass the conditon records with which the sales orders needs to be created.
My code is as follows:
LOOP AT it_knumh INTO wa_knumh.
lwa_bapicondsb-itm_number = wa_knumh-kposn.
lwa_bapicondsb-cond_type = wa_knumh-kschl.
lwa_bapicondsb-applicatio = wa_knumh-kappl.
lwa_bapicondsb-conpricdat = price_date.
lwa_bapicondsb-cond_no = wa_knumh-knumh.
APPEND lwa_bapicondsb TO lit_bapicondsb.
ENDLOOP.
CALL FUNCTION 'ISM_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = lw_bapiheaderb
IMPORTING
salesdocument = lw_docnob
TABLES
return = lit_returnb
order_items_in = lit_bapiitemsb
order_partners = lit_bapiparnrb
order_schedules_in = lit_bapischdl
order_conditions_in = lit_bapicondsb.
I am getting an error as follows:
V4 233 SALES_HEADER_IN has been processed successfully
V4 233 SALES_ITEM_IN has been processed successfully
V4 233 SALES_CONDITIONS_IN has been processed successfully
V1 213 Condition ZMDD is not allowed as header condition
V4 219 Sales document was not changed
where ZMDD - is Discount in Paisa.
please suggest......
Regards,
AbhijitDear Abhijeet,
I am afraid that you have put the message in wrong forum.
Kindly put the message in SD / ABAP forum.
Regards,
Rajesh -
User exit for updating delivery block of Sales order before Delivery
Hi Folks,
Need to have an user exit for updating Delivery Block indicator for a Sales order Before creating its delivery
I have got an exit in Program SAPMV45A
MV50AFZ1
FORM USEREXIT_REFRESH_DOCUMENT.
that hits before processing the delivery block fro delivery (Correct me if i m wrong with this )
Now i want now how to change the Delivery Block indicator of Sales order in that exit
any FM available ?
Thanks n regards
Sonal...Hi ,
How did you solved this issue?
I am having similar scenario in which while pressing the save button delivery block should update if multiple schedule line exist.
Tried by two different approaches in various user exit without any success.
AFAIK we have two ways to achieve this functionality.
1) Count the no of rows in vbep. If greater than 1 then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
This is not correct. If there are two line items both with single schedule line . This case total no lines in vbep will 2 and above condition will true which is incorrect.
2) There is a indicator for multiple schedule line (VBAPD-EPMEH , xvbap-epmeh ) if it is check then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
If I write code in USEREXIT_SAVE_DOCUMENT_PREPARE.
Multiple schedule line indicator is not populate so can not use 2nd approach.
If I write code in USEREXIT_SAVE_DOCUMENT it of no use as vbak is updated before reaching this user exit.
If I write code in USEREXIT_MOVE_FIELD_TO_VBAK as this user exit is also called while pressing the enter key for this I have use
the condition of fcode but it also fails in some condition.
If fcode eq 'SICH'.
Read table xvbap with key epmeh = 'X'.
IF SY-SUBRC = 0.
VBAK-LIFSK = '03'.
Else.
VBAK-LIFSK = ' '.
Endif.
Endif.
Please help me to get the desired functionality working for all cases.
1) One line item with multiple schedule line
2) Two line item with multiple schedule line
3) One line item having one schedule line and second one having multiple
4)Two line item both with single schedule line. -
Hello,
I have an issue regarding delivery block.
I've read a couple of posts regarding this, but they all solved their issue by using userexit_save_document or userexit_save_document_prepare which is no option for me.
My issue is the following:
I've created an order type ZTA (copy of TA) and setup a default delivery block "Z1 - in work" to that order type.
This prevents that after saving the order it will not be automatically delivered by a job which is running in background.
So each time I create a ZTA order with VA01, it will set the delivery block Z1. That's fine.
Now let's say when a customer has a delivery block (e.g. Z5), it will not overwrite the order delivery block Z1, when entering sales-to-party (or ship-to-party)!
Now I tried to add some code to userexit_move_field_to_vbak like that:
if not kuwev-lifsd is initial.
vbak-lifsk = kuwev-lifsd. " Z1 -> Z5
else.
if not kuagv-lifsd is initial.
vbak-lifsk = kuagv-lifsd. " Z1 -> Z5
endif.
endif.
Result: It will execute my new code sequence, but will not change the delivery block Z1 to Z5 on the VA01 screen. Maybe because I'm at this step not in update but insert mode?
I need to show the customer's delivery block while creating the order, means showing the delv. block after saving is too late.
Is there maybe a better exit to change the order delivery block to the customers delivery block?
Thanks in advance
WolfgangDear Wolf,
I dont know whether it might help you but , we had a requirement to make the information message of CUSTOMER BLOCK (which we do in XD05) to ERROR message .
It was done in the include MV45AFZZ but i do not know much technical details.
What i know is, this include comes much before the SAVE comes.
Also if you can write the logic to check the BLOCK STATUS from customer master and if it has a value, then fill the same in the respective field in sales order, system might throw that blocking reason.
If there is no reason, system will put the the default blocking reason from the sales order.
Better you post the issue in ABAP forum.
You might get more inputs there.
Check and revert back.
Thanks & Regards
Hegal K Charles -
MRP for delivery block itemsin sales order
Hi,
For MTO scenario, where in sales order item is blocked for delivery.When MRP run for sales order for that item through MD50 then system not generating any requirement.
Which parametrs should I check?
Regards
SanjayHi ,
In MRP control Parameters you can use ,
1 .Create Purchase Requistion - value 2
2 .Delivery Schedule - Value 1
3 .Planning Mode - Value 1
4 Scheduling - Value 1
Try with this . -
Hi,
I got a problem with registration of a sale order with a BAPI : it set automatically a delivery block , and this not happen when using VA01.
After create the order, for this one will be insert a technical object (serial number) and made some other change (always using BAPIs) like the requested delivery date or some texts.
There is not any block set in customizing (tab. TVAK) for that type of order.
If this was true,the block should have been set even using VA01,or not ?
Thank you in advance.
LucaI mean your order gets DB if created via BAPI and does not get any DB if created via VA01, right ? What DB did your order get when was created via BAPI ?
Is it your custom DB or SAP DB ? Do you have any special logic in userexits to apply DB in some cases ? If you have any logic which applies DB - does it have a check for sy-tcode ? -
Regarding delivery block in sales order
Hi experts,
i have problem in user exits in which i hav 2 work
my requirement is if sales organization is ____ and order type is_____
and payment of terms is ______
then delivery block must be ' Needs Approval'..
please help me out for this
Thanks in advance.....
Anoop.
Moderator Message: I dont see any problem with the requirement. All you need to do is find the right EXIT/BADI and code your logic there.
Edited by: kishan P on Nov 16, 2010 6:21 PMDear Wolf,
I dont know whether it might help you but , we had a requirement to make the information message of CUSTOMER BLOCK (which we do in XD05) to ERROR message .
It was done in the include MV45AFZZ but i do not know much technical details.
What i know is, this include comes much before the SAVE comes.
Also if you can write the logic to check the BLOCK STATUS from customer master and if it has a value, then fill the same in the respective field in sales order, system might throw that blocking reason.
If there is no reason, system will put the the default blocking reason from the sales order.
Better you post the issue in ABAP forum.
You might get more inputs there.
Check and revert back.
Thanks & Regards
Hegal K Charles -
*Automatically Delivery block on sales Order*
Hi
can you please tell me how to get delivery block automatically when creating sales order?
thanks
L.CHi
Use user exit MV45AFZZ and take a help of ABAPER to add the program in it
IF sy-tcode EQ 'VA02' AND vbak-lifsk IS INITIAL AND ( sy-uname NE ' ADD ur own user ID ' AND sy-uname NE 'ADD ur own user ID ' ) AND
vbak-vkorg EQ '1000' AND vbak-vtweg EQ '10' AND vbak-spart EQ '01'.
DATA : BEGIN OF lt_item_old OCCURS 0,
posnr TYPE vbap-posnr, " SD Document Item Number
zmeng TYPE vbap-zmeng, " Quantity Of that Item
END OF lt_item_old.
CLEAR : lt_item_old[], lt_item_old.
SELECT posnr
zmeng
FROM vbap INTO TABLE lt_item_old
WHERE vbeln EQ vbak-vbeln.
IF sy-subrc EQ 0.
LOOP AT xvbap.
READ TABLE lt_item_old WITH KEY posnr = xvbap-posnr.
IF sy-subrc EQ 0 AND lt_item_old-zmeng NE xvbap-zmeng.
vbak-lifsk = 'Z8'. " Delivery Block - Authorization Await
EXIT.
ELSEIF sy-subrc NE 0.
vbak-lifsk = 'Z8'.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
Regards
Santosh.AR -
Production Order creation Despite Delivery Block on Sales Order
Hi All
I have created a Z1-Delivery Block and assigned the block to a Sales order type.
Now during the creation of the Sales order the Delivery block is assigned immediately the system creates a planned order but no production order.However the business would still like the production order to be created.
Is there a SAP standard way to allow this to happen or would I need to enhance via a USER EXIT.
Thanks in Advance for your assistance.
KAI'm not an expert, but I don't think delivery block actually has any influence on the production order. We have tried on purpose to use a delivery block to prevent the PO creation/release and had to develop a user exit for this purpose. The way it works in our system - planned order has a conversion indicator. Some standard program runs in background and converts the planned orders with this indicator into the production orders. If indicator is not set then PO is not created.
Delivery block just prevents delivery from PGI, I don't think it even prevents the delivery creation (much to my surprise). -
Retrigerring the delivery block for sales order after change.
Dear All,
I have a scenario, When we are creating FOC order, automatically Delivery Block is
appeared. After an authorised person releases the order, the Delivery is
made against it.
Now if the order is released and any amendment is made in the order, FOC
order should get back the Delivery Block status automatically.
Thanks,
Ani.Hello,
I have a scenario, When we are creating FOC order, automatically Delivery Block is
appeared. After an authorised person releases the order, the Delivery is
made against it. Now if the order is released and any amendment is made in the order, FOC
order should get back the Delivery Block status automatically.
The best option of meeting your requirement is using a User exit which would put a Delivery block when the Sales Order details are changes.
USER EXIT --> USEREXIT_SAVE_DOCUMENT_PREPARE
Kindly try out this exercise with the help of a ABAPer and close this thread if your query is answered.
Regards,
SARTHAK -
How to make Delivery block at Sales Order Header level for specific materia
Hi,
My client want to create a delivery block EDI order at the Order Header level for specific materials
How can we achieve this.Dear Varada rajan
Go to material master, select "Sales: sales org.1" view and assign "01" against the field "DChain-spec. status" and save. By assigning, for a particular sales area, you can block that material.
Now go to OVSU select 01 and assign "B" against the field "Block delivery".
Now create a sale order and post the outcome.
thanks
G. Lakshmipathi
Maybe you are looking for
-
How do I make my wireless signal sucure from others using it?
How do I make my wireless router secure, so others nearby cannot access it?
-
Why won't my apps download on new ipad mini?
My apps will not download on my new ipad mini? They remain in the "waiting" stage for days. have tried deleting and re-downloading one by one, but have not had any success.
-
Hi Experts, I have a peculiar requirement from business like joining two reports into one report . For ex : User will run Report A & Report B seperately. almost all the informations are same. so our business asked us to club the both the report into
-
How to set the number of elements dequeued?
Hello All, I am relatively new to LabView. I use LabView 8.2 to detect Joystick movement using a set voltage threshold. Totally, I have 6 channels of analog input. The sampling rate is 2 Kilo Hertz with continuous sampling mode (buffer size set to 10
-
Record TV through Powerbook - Can it be done?
Hi all, I just got a new flash plasma TV with all the bells and whistles and wanna record some of the digital TV. I've looked at the Apple TV component, but the specs and functions didn't really impress me for the price. I also looked at a Playstatio