PR items in Sales order
Hi Gurus,
Here is my requirement.
1. If some materials are not available in sales order i should raise a PR/PO for these line items.
2. These line items should receive to selling organization not to a customer.
3. How can i link Sales order number, Line item number and PR/PO number, Does it appear in a document flow?
Thank you
ANil
Edited by: anil maguluri on May 23, 2008 7:10 AM
Hi Syed,
The Purchase Requisition is picked from the Schedule category.there is the check box of this option if you are ticking this the PO No.Comes once you create the sales order.if you are not ticking this P.O NO.does not appear.And You will get One Purchase Order No.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula
Similar Messages
-
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. -
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 -
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. -
Hi All,
In sales order change mode(VA02), i will track the items which are rejected based on the rejection reasons, but how i will track the items which are directly deleted based on the delete button provided below.
Thanks & Regards
krishnaHi Krishna,
If u are rejecting a particular line item in sale order using the reason code that line item would ramin there in the sale order it wont allow that particular line item for delivery or billing.
You can delete the line item before u procede for delivery it wont be captured anywhere.
If u r trying to access the material while creating delivery copy control routine wont allow u to do that..
If u r not clear let me know i can give u further clarification.
Reward me if its useful.
Thanks & Regards,
Malathi.K -
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 -
How to make the line items of sales order cannot be deleted.
Hi All,
Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
Thanks in Advance,
Sudhakar Reddy .AHi All,
If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
Program Name : Include MV45AFZB
_Example:_
form userexit_check_xvbap_for_delet using us_error
us_exit.
IF .......
US_EXIT = CHARX.
ENDIF.
endform. -
To add the line item in Sales Order
Hi Experts,
I have to insert the line item between two line item in sales order dynamically.
How should i do this.
any idea??
Thanks in Advance.Hi,
I guess you are talking about BOM, sub-items or free goods, wherein after you put in one item the other material defined gets added automatically in the sales order.
That is done with the help of Item Category config by functional person.
Check here for more info
[Item Category|Re: Item Category;
You can also use user exit MV45AFZZ form user_exit_move_to_vbap for a specific logic defined at runtime.
Regards,
Amit
Edited by: Amit Iyer on Aug 26, 2009 10:21 PM -
How to change the characteristic value in a item of sales order by FM?
Hi experts,
I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
RegradsHi Birendra,
Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
type-pools: IBCO2,
IBXX.
data: l_CUOBJ type CUOBJ_VA,
l_ibase type IBCO2_IBASE_REC,
l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
w_CONFIGURATION type IBCO2_INSTANCE_REC2,
l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
select single CUOBJ
into l_CUOBJ
from VBAP
where VBELN = '0020030609'
and POSNR = '000020'.
CALL FUNCTION 'CUCB_GET_CONFIGURATION'
EXPORTING
INSTANCE = l_CUOBJ
IS_BUSINESS_OBJECT =
IV_MOMENT =
IV_WITH_DB_INSTANCE =
IMPORTING
IBASE = l_ibase
CONFIGURATION = l_CONFIGURATION
EO_CBASE_REF =
EXCEPTIONS
INVALID_INPUT = 1
INVALID_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at l_CONFIGURATION into w_CONFIGURATION.
l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
modify l_CONFIGURATION from w_CONFIGURATION index 1.
clear: w_CONFIGURATION.
endloop.
CALL FUNCTION 'CUCB_SET_CONFIGURATION'
EXPORTING
ROOT_INSTANCE = l_CUOBJ
IS_CBASE_HEADER =
CHANGING
CONFIGURATION = l_CONFIGURATION
EXCEPTIONS
INVALID_INPUT = 1
INVALID_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
EXPORTING
ROOT_INSTANCE = l_CUOBJ
ROOT_OBJECT = l_ROOT_OBJECT
FORCE_NEW_INSTANCE =
IV_WITHOUT_COMMIT_UPDATE = ' '
IV_MATERIAL =
IV_LOCATION =
IV_TECHS =
IMPORTING
NEW_INSTANCE =
TABLES
EXP_NEW_NESTED_CUOBJS =
EXCEPTIONS
INVALID_INSTANCE = 1
INVALID_ROOT_INSTANCE = 2
NO_CHANGES = 3
ALREADY_REGISTERED_FOR_UPDATE = 4
INSTANCE_IS_A_CLASSIFICATION = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Delete the line item in sales order in VA01/VA02 when the quantity is modif
Hi SAP,
I have requirement to delete a line item in sales order.Please suggest me to do the same.
THe scenarios is , we are inserting a free good line item based on some condition and quantity, If the quantity is modified the free good line item inserted needs to be deleted.
Waiting for your responce
Thanks,
Billa
Moderator message : Spec dumping is not allowed,search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 14, 2011 1:54 PMHi,
Can you also check the SALES LINE.
Sales line is the combination of SALES ORGANISATION + DISTRIBTION CHANNEL +PLANT.
Hope it was not maintained.
Transaction code : OVX6
PATH: IMG->ENTERPRISE STRCTRE->ASSIGNMENT>SALES AND DISTRIBTION->ASSIGN SALES ORG- DISTRIBTION-PLANT.
please revert if the error still exists.
santosh -
Copy down Ship-to Partner from main item to sub-items on Sales Order
This is my first post on the forums here. I'd appreciate any help you can give on my issue below.
I have a requirement to copy down the ship-to partner from the main item to sub-items during sales order create or change. Currently I have code in include MV45AFZB within user exit USEREXIT_FILL_VBAP_FROM_HVBAP as follows:
<i>* Need to be able to copy the ship-to of a BoM parent down to the
respective BoM children if the parent has a different ship-to
from the header.
data: wa_xvbpa like vbpa.
Clear: wa_xvbpa.
read table xvbpa into wa_xvbpa with key posnr = hvbap-posnr
parvw = 'WE'.
A BoM parent line has a different ship-to from the header.
if sy-subrc = 0.
read table xvbap with key uepos = hvbap-posnr.
See if current line is the child of that BoM parent
If xvbap-uepos = hvbap-posnr.
move wa_xvbpa-kunnr to xvbpa-kunnr.
move xvbap-vbeln to wa_xvbpa-vbeln.
move xvbap-posnr to wa_xvbpa-posnr.
move 'WE' to wa_xvbpa-parvw.
modify vbpa from wa_xvbpa.
endif.
Endif.</i>
This isn't working for me. At one point, I was able to copy the ship-to down to the first sub-item but not any subsequent ones. I'm sure I need to add some code to another sales order user exit to get this to work, but I'm at a loss at this point. Has anyone had to do this or something similar before?
Thanks very much in advance for your help.
AngelaHi,
Can you check few more things and tell me?
- In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
- In Sales order creation time, do these table have VBELN populated when this exit triggers.
- If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
Try this code. See if it works. Let me know if you still have a problem.
DATA: wa_hvbpa LIKE vbpa,
wa_xvbpa like vbpa.
CLEAR: wa_hvbpa, wa_xvbpa.
* check if HVBAP and VBAP line items are not same
IF vbap-posnr <> hvbap-posnr.
* read the ****-to partner from main-item
READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
parvw = 'WE'.
IF sy-subrc = 0.
* read the line item data for sub-item based on main item
READ TABLE xvbap WITH KEY posnr = vbap-posnr
uepos = hvbap-posnr.
* See if current line is the child of that BoM parent
IF sy-subrc = 0.
MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
MOVE xvbap-posnr TO wa_xvbpa-posnr.
MOVE 'WE' TO wa_xvbpa-parvw.
MODIFY vbpa FROM wa_xvbpa.
ENDIF.
ENDIF.
ENDIF.
Regards,
RS
Maybe you are looking for
-
In Aperture 3.3.1, how do I open Welcome Screen?
In Aperture 3.3.1, how do I reopen Welcome to Aperture screen, that is supposed to open the first time Aperture is used? Earlier responses to same question, including resetting the Reset al Warnings under General Preferences do not seem to work. Al
-
Default email address in Ical alarm
Hi all. I am having problems setting the default address in alarms in Ical. The situation is like this: -I had 2 emails, "a" and "b", setup in my address book, both in my account (word "me" overlay on my picture). -When I wanted to configure an email
-
InputStreamReader: reads too much?
i read text from an InputStreamReader: int count; char[] chars = new char[2048]; while ((count = isr.read(chars, 0, chars.length)) != -1) { textArea.append(new String(chars)); }and noticed that too much text is read! I i increase chars (e.g. 4096
-
Having Trouble Reading in an Object
im trying to read in a JTabbedPane (called AZTabs) using this method: public void readContact(){ in = null; try{ in = new ObjectInputStream(new BufferedInputStream(new FileInputStream("files/contacts"))); for(i
-
Is there any shareware tool ?
sorry this is not a Logic question. but I hope some of you know an answer.I just wanted to make a new partition on my external firewire HD. And now I lost the data that was on there already. I haven't writen anything on it sense then and tryed some d