Block item for short dated item in sales order
We are using batch determination at sales order level.I want to hold the sales order based on shelf life expiration date for a batch. We are using FEFO- First expiry First Out strategy. We are planning to use user status profile to block the particular line item from getting delivered. Please guide me to acheive this. Thanks in advance.
Dear Venkates,
Kindly deactivate the check box Not Modifiable of the corresponding partner function by selecting Partner determination procedure - Partner Functions in procedure
Do this change if you have maintained partner proc. for sales document type or item category in
SPRO - Sales and Distr. - Basic Functions - Partner Determination
Hope this would solve you problem. If not kindly elablorate your problem.
Regard,
Sagar
Similar Messages
-
MRP RUN for the more than one line item in sales order.
Hi ,
In the sales order nuber of line item are , i will have to take MRP RUN for selected line item .
So plz suggest what development will require?
Abhay
Edited by: abhay patil on May 30, 2008 8:52 AMHI,
U can write separate prog. Which will ask sales order no. and from to line item or multiple line item of sale order. Then in loop internally pass the each line item no to MD50 prog. Which will run in background.
I will give u sample prog. Which I had created for running MRP for all the lines items of given sales order in one go.
*& Report ZPRG_PP_001
REPORT ZPRG_PP_001.
tables vbak.
data: begin of it_vbap occurs 1,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
end of it_vbap.
DATA: P_MODE TYPE C.
Batchinputdata of single transaction
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
selection-screen begin of block b1 with frame title text-001.
parameters : p_vbeln like vbak-vbeln obligatory.
selection-screen skip.
parameters : p_fore radiobutton group mode,
p_back radiobutton group mode default 'X'.
selection-screen end of block b1.
at selection-screen.
Check Sales Order
if not p_vbeln is initial.
select single * from vbak
where vbeln eq p_vbeln.
if sy-subrc <> 0.
message e499(sy) with 'Invalid Sales Order no.' p_vbeln.
endif.
endif.
start-of-selecTION.
Get Sales order items
select vbeln posnr from vbap
into table it_vbap
where vbeln eq p_vbeln.
Set BDC mode
if p_back eq 'X'.
p_mode = 'E'.
else.
p_mode = 'A'.
endif.
Process MD50 BDC
LOOP AT IT_VBAP.
perform bdc_dynpro using 'SAPMM61X' '0160'.
perform bdc_field using 'BDC_CURSOR' 'RM61X-TRMPL'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RM61X-KDAUF' IT_VBAP-VBELN.
perform bdc_field using 'RM61X-KDPOS' IT_VBAP-POSNR.
perform bdc_field using 'RM61X-BANER' '1'.
perform bdc_field using 'RM61X-LIFKZ' '3'.
perform bdc_field using 'RM61X-PLMOD' '3'.
perform bdc_field using 'RM61X-TRMPL' '1'.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE' '=XBAC'.
CALL TRANSACTION 'MD50' USING BDCDATA MODE P_MODE.
CLEAR BDCDATA.
REFRESH BDCDATA.
ENDLOOP.
end-of-selection.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDFORM.
Ajay P. Nikte -
Pricing For Text Item in Sales Order
Hi ,
How to give price for text item in sales order.
With regards.
AfzalHi Afzal,
consider to create a single service material as a generic one, type DIEN, with basic data and sales org views, with item category group LEIS (it will determine item category TAX in sales order). Material description could be "Don't forget to change me!" so in sales order user remembers to changes the description according to the especific sales order requirements.
Regards,
JM -
GRN number for rejected items in sales order
hi sapgurus,
i want to know the grn number for rejected goods in the sales order
consider if i put a sales order for a material named X for 10 quantities and if 5 quantities are rejected i will put GRN for those rejected items and add it to my stock.
I have taken GRN no linking VBAK with VBRP .VBRP with LIPS .LIPS with MKPF thro VBELN_LA (ie.delivery note).
the delivery note will be updated only Post goods issue happens with complete status.
Is there any other way to get GRN no without delivery note while PGI in process Status.
thanks in advance!
Edited by: rakesh on Oct 3, 2008 11:29 AM
Edited by: rakesh on Oct 6, 2008 12:31 AMi solved ths issue
-
How to create service items and sales order for service contracts.
Hi,
I have created item using Purchased Item template and one more item(service item) using service /warranty program template. Then I have used these items to create sales order with service item in it and closed that order , but Iam not getting this order in service contracts. Is this right way to create sales order for service items. I
item name:- personal_computer
copied from purchased order template. service is enabled and install base is checked and enable service coverage is enabled.
item name:- service_item
copied from service /warranty program template
service is selected to inactive,
service type: service
duration: 1 year
template: Gold
and saved the item.
Then I have used these two items in sales order for service contracts. But that sales order is not hitting in service contracts. Is there any error with item creation.
Thanks,
Bharat G.Following SAP Notes to be referred for Service Tax:
1. 778976 u2013 Service Tax and Ecess on Service Tax
2. 1032265 - SEcess on Service Tax
Regards
AK -
Different ship to party for one of two line items from sales order
Hi Experts,
1. The Sales Order No.19701 is an Export Order, received from M/s. Industries & Construction, Indonesia. We have to supply all the materials on FOB Indian seaport basis.
2. However, we have to dispatch against Line Item No. 280 & 290 to one of our subvendors, M/s.Industries, sec,rabad to complete some Control Assly. as per agreed Inspection terms.
3. After completion of Control Assembly & Client's Inspection materials will be finally dispatched to nearest Seaport for seafreight.
So here i can i map this scenario from sales order to billing, ship to party for those 2 items must be sub vendor.
Thanx in advance
MadhuHi madhusudan
You can map different ship to party . First you need to configure customer master for the same.
Add the alternate ship to parties to customer master of sold to party, your export customer.
While creating master data for sub vendors as ship to party ,you need to maintian proper customer pricing pricing procedure and tax classification as you mentioned customer is export customer ,but ship to party seems to be domestic ,so carefully check the same. also check the shipping condition if it is separate for exports.
Then in Sales order transaction on line item data ,change your ship to party for the line item as per the the requirement.
for further processing of this scenario ,like excise invoice and ARE1 u might have lsome issues if ship to party is liable for duties and taxes and Sold to is exempt and you are drawing only one invoice for these 2 separate deliveries. pl check on the same.
I hope this helps
Revert for any queries
Regards
Mandar
Edited by: Mandar Deshpande on Apr 13, 2010 11:04 PM -
How to identify Sale Order costing is required for Items in Sales Order
Howstandard cos estimate*w to identify Sale Order costing is required for Items in Sales Order?
On which criteria we can conclude Sale Order Costing is reqd ?
? * means what and wat is the purpose and how to chk for the Item in Sales Order, either it is required or not**.Hi Dharamveer,
The best way is to make the order qty is equal to the quantity delivered. This way, when some one looks at this order in future - they think that the order was for X and the delivery was for X qty is completed. They will not know the background of the issue unless they go through change log. Even in change log, they see that the Ord qty was adjusted, but may not understand why?
The good practice is to make order qty equal to already delivered qty.
Create a new line for the remaining qty and reject the same with appropriate reason for rejection. This way, any one can understand the background , the reason for rejection easily. Hope it helps ! -
Function for adding items to sales order
Hi.
I would like to know if there is some other more simple function (then crmxif_order_save) to add new items to sales order. And if yes, some sample code would also be appreciated.
Thank in advance.I have a smilar requirement, I am supposed to add the line item to sales order in run time, I have done code changes in the user exit CHECK_VBAP of the program MV45AZB , I can see the data in the debug mode, but I dont see the same populating the screen of the VA01. Can u please help em , wht are the extra points I need to take care of . I have written a code to add data to XVBAP table and it is coming in debug mode into that tabble. but same data is not coming on the screen .How do u write the data to the screen.
-
Get Classification status of item in Sales Order for variant configuration
Hi Experts,
I want to get the classification status against the variant configuration of item in sales order.
When i enter the sales order in VA03 , at the item level, I select the item and click on item configuration icon below.
Here I can see the variant configuration. Now if I do not maintain the configuraiton correctly, then the classification status shows either locked or incomplete. When it is properly maintained it shows released. ( When it is locked, the classificaiotn status shows a red signal at the left bottom corner).
My requirement is to capture this classification status at the item level of each Sales Order.
How can I get this.Hi!
try this code:
* Initialization
CALL FUNCTION 'CUDB_INIT'.
CALL FUNCTION 'CE_C_INIT'.
* read configuration from database
CALL FUNCTION 'CUCB_GET_CONFIGURATION'
EXPORTING
instance = vbap-cuobj
IMPORTING
configuration = gt_configuration
EXCEPTIONS
invalid_instance = 1
instance_is_a_classification = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE: /' No configuration data found!'.
EXIT.
ENDIF.
* only sinlgle-level configuration possible
READ TABLE gt_configuration ASSIGNING <gs_instance> INDEX 1.
* get and show status
SELECT SINGLE * FROM tclc WHERE
klart EQ <gs_instance>-conf-klart
AND statu EQ <gs_instance>-conf-cstatus.
FORMAT COLOR COL_NORMAL.
IF tclc-frei = 'X'.
WRITE: /'Status:', icon_green_light AS ICON.
ENDIF.
IF tclc-gesperrt = 'X'.
WRITE: /'Status:', icon_red_light AS ICON.
ENDIF.
IF tclc-unvollstm = 'X' OR tclc-unvollsts = 'X'.
WRITE: /'Status:', icon_yellow_light AS ICON.
ENDIF.
FORMAT COLOR OFF. -
Partial delivery per item in sales order and ATP - schedule lines
Hi,
I've problem regarding ATP- schedule lines and partial delivery flag.
In sales order there is flag Partial delivery per item B / 1 . That means create only one delivery even with quant 0. That comes from customer master or customer info-record and it is OK.
Please look at next example.
Customer requires:
10 PCS of materail A on date X. Only 5 PCS are available on date X.
10 PCS of material B on date X 0 PCS are available on date X, 10 PCS are available on date Y.
So if we create outbound delivery on date X it will contain only 5 PCS of material A. No successive deliveries will be created for material A because of the flag B/1. That item is closed.
Problem is with material B.
The sales order will be open because of material B and on date Y we can easily create another delivery with 10 PCS of mat B.
That is wrong. Agreement with customer is only one delivery for ALL items in sales order. If we create delivery on date X it should contain only materials which are available on date X and sales order should close.
Do you know how to fix this problem?Hi,
I've think you didn't understand my requirement. I allways get schedule lines but they are confirmed on different dates.
Example in same sales order we have:
Schedule line for item A:
DATE X confirmed quantity 10
Schedule line for an item B.
DATE X confirmed quanitity 0 (zeroe)
DATE Y confirmed quantity 10.
I would like to create outbond delivery on date X with:
item A quantity 10
item B quantity 0.
And if that hapens than B/0 rule will work or reference customzing that you suggested before. So order will be closed because all items are processed or referenced once.
Do you know how to do that?
Regards -
Restriction of number items in sales order
hi,
how can i restrict no of items in sales order?
eg:
sales order has been created for 10 items and all the 10 items
quantity should be 72 not more than that and system should
not allow to enter the quantity.where we can configure for
this.
regards,
balajitYou have to try with User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT or USEREXIT_SAVE_DOCUMENT in the same program
thanks
G. Lakshmipathi -
How to get Characteristic Values assigned to the line item of Sales Order?
Hi,
I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
this fn. mod. giving all the Characters but not the assigned characteristic values.
Is there any other way to find characteristic values of sales order.
Thanks,
vinayak.
Message was edited by: vinayaga sundaramFor example, please see this example program.
It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
report zrich_0001.
* Internal Table for Characteristic Data
data: begin of i_char occurs 0.
include structure comw.
data: end of i_char.
data: xcabn type cabn.
data: begin of xcawn,
atwtb type cawnt-atwtb,
end of xcawn.
data: xvbap type vbap.
parameters: p_vbeln type vbap-vbeln,
p_posnr type vbap-posnr.
start-of-selection.
select single * from vbap into xvbap
where vbeln = p_vbeln
and posnr = p_posnr.
clear i_char. refresh i_char.
* Retrieve Characteristics.
call function 'CUD0_GET_VAL_FROM_INSTANCE'
exporting
instance = xvbap-cuobj
tables
attributes = i_char
exceptions
instance_not_found = 1.
loop at i_char.
clear xcabn.
select single * from cabn into xcabn
where atinn = i_char-atinn.
clear xcawn.
select single cawnt~atwtb into xcawn
from cawn
inner join cawnt
on cawn~atinn = cawnt~atinn
and cawn~atzhl = cawnt~atzhl
where cawn~atinn = i_char-atinn
and cawn~atwrt = i_char-atwrt.
write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
endloop.
Regards,
RIch Heilman -
Add Line Item In Sales Order VA01
HI All,
I have new requirement in creation of sales order . Here we have free promotion sales . Here if customer buy one material then he will get some other material as free .In standard sap we can give only one line item as free not more than that .
Here our requirement is more than one line item . I suggested them maintain all the free materials in one Ztable when ever the original material will come for sales order then i have to fetch these materials from ztable automatically and it should create sales order. I started doing this using user exit FORM USEREXIT_MOVE_FIELD_TO_VBAP.
These are the below links i checked in our sdn.
Adding Line items to sales order on creation using User-Exit in VA01.
Please give me some idea on this .
Regards,
Madhu.Hi Asik,
Thanks for your reply.In my case i can not got for Bom because the schemes will change for every ten days. I think Bom creation will fill a lot of data but it wont solve my issue.
Regards,
Madhu. -
How to add 100 line item in sales order at one time
Hello Guru's
My requirement is to add 100 line items in sales order at once.
what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
Let me know your suggestions
Thanks a lot in AdvanceHi,
do configuration for Proposal Items tab - like -
then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
Please Use BAPI -- creation of Sales order
Thanking you
Regards
Mahesh -
How to ChangePlantfor each item of Sales order using User Exit SAVE_DOCUMEN
Hi All,
I have to change plant for Each line item of sales order using (MV45AFZZ) (USEREXIT_SAVE_DOCUMENT) based on first Schedule line.
if Confirmed Quantity is Less than Ordered Quantity.
based on first Schedule line.
it has to select other Plant and need to populate it in line item of sales order.Please see the below code and let me knoe if any changes required... Thanks in Advance.
data : wa_vbep like xvbep,
Lv_matnr type mara-matnr,
lv_werks type marc-werks.
DATA: it_vbap TYPE STANDARD TABLE OF vbap,
wa_vbap TYPE vbap.
field-symbols: <wa_vbap> type VBAPVB.
clear wa_vbap.
*loop at xvbap into wa_vbap.
loop at xvbap assigning <wa_vbap>.
read table xvbep into wa_vbep with key posnr = <wa_vbap>-posnr.
if wa_vbep-ETENR = '0001'.
if sy-subrc = 0.
IF wa_VBEP-BMENG LT wa_VBEP-WMENG.
SELECT SINGLE DWERK
INTO lv_werks
FROM MVKE WHERE matnr = <wa_VBAP>-matnr
and DWERK ne <wa_VBAP>-werks.
if not Lv_werks is initial.
if lv_werks EQ 1033.
move '1002' to <wa_vbap>-werks.
if sy-subrc eq 0.
xvbap-werks = <wa_vbap>-werks.
modify xvbap from <wa_vbap> .
endif.
elseif lv_werks EQ 1003.
move '1003' to <wa_vbap>-werks.
elseif lv_werks EQ 1010.
move '1010' to <wa_vbap>-werks.
endif.
endif.
endif.
endif.
endif.
endloop.
endif.
Regards,
Sudhakar Reddy.AYou have to use the form routine "USEREXIT_SAVE_DOCUMENT_PREPARE"
regards
Vinod -
what is the open item in sales order?
how can i list them if i am inputting the sales order?
which tables should i use?Hi,
Open Sales orders are nothing but the sales orders which are not Billed or which are not Delivered.
For this you can use the tables vbak,vbap,vbuk.
first you can fetch the all the vbeln from vbuk by using the
Lfstk and Fkstk as the filter criteria.
LFSTK-Delivery status
FKSTK-Billing status.
then you can get the open order items from vbap and vbak.
SELECT vbeln
lfstk
lfgsk
fkstk
FROM vbuk
INTO TABLE i_vbuk
WHERE ( ( lfstk EQ 'A'
OR lfstk EQ 'B')
OR ( fkstk EQ 'A'
OR fkstk EQ 'B' ) ) .
Regards,
Raj.
Maybe you are looking for
-
How to move Tablespace from One disk group to another disk group in RAC
Hi All, I have 11gR2 RAC env on Linux. As ofnow I have problem with disk group. I have 3 disk group which is almost full - 98%. I have added one NEW disk group and want to move some of the Tablespace(TBS) from OLD disk group to NEW diskgroup and make
-
The name on the security certificate is invalid or does not match the name of the site" : IE
Hi All, All clients are getting "the name on the security certificate is invalid or does not match the name of the site" when its reboot and try to access website. I don't have idea about certificate authority. Can anyone help on how I start troubles
-
Firefox will not load the normal way (clicking on a link or running it from Run window or even running it in safe mode). It only runs if I dig down to the installed directory, right-click firefox.exe and select "Run inside Comodo Sandbox". I have Com
-
I've created a new layout and assigned it as the default layout for the page and placed the portlets on it. I then synched my changed. The portlets do not appear where I placed them. The layout is a two row table with the first row split into two col
-
Multi language support in AppStore
Hi, my App has multi-language support (localization). So people use different language in their iphone will see different user interface in my App. I am wondering if AppStore itself supports localization. My app description is in English, which means