FM to find sales order Characteristic Classification Value
Hi friends,
Iam having a requirement where I have to find Sales Order Characteristic Classification Value.
Here is the Path from where I have to get that detail.
sales order tcode va03 --> item detail : configuration --> Character Description --> Charcater Value
I need to fetch this character value to classify my Sales Order in programming.
With Regards
Bhaskar
if you call function module VC_I_GET_CONFIGURATION, with the value VBAP-CUOBJ for the sales order line item in parameter INSTANCE, all characteristic descriptions and values will be returned in table parameter CONFIGURATION
Similar Messages
-
Function module for finding sales order GT total value(vbak-netwr)
Can anyone tell which function module is used to find the Sales order greater than the input parameter which is total value(vbak-netwr).Output should be the details of sales order satisfying the condition.ie greater than the total value.
Hi chandra
I hope you are giving the logic to the ABAP'ers . By giving the input and the outputs. So here , VBAK-NETWR are related to functional consultants .
Based on the requirement , SD,FI etc the give the logic but mostly it is related to SD consultants only
Reagrds
Srinath -
Find Sales Order Item Basic Data by Elements query fails
I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
It fails giving the following errors:
(in Log.LogItem.Note variable):
<b>"Conversion failed: Invalid input format"</b>
(in Log.LogItem.TypeID variable):
<b>"701(SFB)"</b>
Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
From the ESOA site, all I could get was:
<i>----
QUOTE -
The following values are optional selection criteria for restricting the search result:
SelectionByID Document number range
INCLUSION_EXCLUSION_CODE
INTERVAL_BOUNDARY_TYPE_CODE
LOWER_BOUNDARY_ID
Value
UPPER_BOUNDARY_ID Value
Value
UNQUOTE -
</i>
I could not even have any documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
querydata.SelectionByID[0].InclusionExclusionCode = "E";
querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";How do you test with a SOAP Client - I am trying to use same dataset as provided?
I did with WSDL Test - SAP, SOAP Client and got the following error:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
<Log>
<MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
<Item>
<TypeID>701(SFB)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Conversion failed: Invalid input format</Note>
</Item>
<Item>
<TypeID>701(SFB)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Conversion failed: Invalid input format</Note>
</Item>
<Item>
<TypeID>701(SFB)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Conversion failed: Invalid input format</Note>
</Item>
<Item>
<TypeID>701(SFB)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Conversion failed: Invalid input format</Note>
</Item>
<Item>
<TypeID>701(SFB)</TypeID>
<SeverityCode>1</SeverityCode>
<Note>Conversion failed: Invalid input format</Note>
</Item>
</Log>
</nr1:SalesOrderERPBasicDataByElementsResponse_sync>
</soap-env:Body>
</soap-env:Envelope>
Thanks..
Vikas -
Throw Information message for sale order created with value less that 5$
Hi all,
I am basically an abaper, I have got a requirement in SD. The requirement is any sales order created with value less that 5$, should be prompted with an error message saying the minimum order value should be more than 5$. Could any one help me on this.
Thanks in advance,
shivuserexit_save_document_prepare,main program - sapmv45a, issue an error message if your document value is less than 5$ (VBAK-NETWR) but check if your order has any non-rejected item, I would not issue this message if all items are rejected:
loop at xvbap where updkz ne 'D' and abgru = ' '.
exit.
endloop.
if sy-subrc = 0. "-you have at least one non-rejected, non-deleted item.
NOTE: sapmv45a works NOT only for orders, so please check document types in your logic which are relevant to your messge only (VBAK-VBTYP and/or VBAK-AUART). -
How to find sales order no., purchase order no. using sales order ID,PO ID
hi,
how to find sales order no., purchase order no. using sales order ID,PO ID
Thank you,
hari omDear Hari Om,
Could you please tell me, to what are you referring Sales Order ID and P.O. ID?
meanwhile check with:
T. Code: SE16
Table: VBKD
Execute (F8) the Report.
On to next Screen, Go to Menu-bar
Settings --> Format_Lists --> Choose Fields
Field: VBELN - Sales Order
Field: BSTKD - Purchase Order No.
Best Regards,
Amit -
Q30: Cannot find sales order for a committed stock item
I have a few item numbers which show committed stock in item master data/stock but I cannot find an open sales order or even with an open line on a closed sales order. I have tried various query reports without success.
Does anyone have a key to unlock this problem?
Thanks,
RobinHi,
Sorry but I am pretty new to SAP and on a learning curve so no idea what note 999124 is or even where/how I would use it.
Can you explain further please?
Robin
Lakshmipathi
Posts: 17,513
Registered: 8/9/07
Forum Points: 34,462
Solved problem (10)
Very helpful answer (6)
Helpful answer (2)
Re: Q30: Cannot find sales order for a committed stock item
Posted: Jan 12, 2011 3:18 PM in response to: Robin Bellion Reply
Check Note 999124 - Incorrect committed\On order quantity when changing orders
thanks
G. Lakshmipathi -
VA01 - sale order Material Configuration values to be read
Hi,
I am trying to read the entered sale order material configuration values in TCode VA01 and update the xvbap in userexit USEREXIT_CHECK_VBAP in program MV45AFZB.
Kindly let me know to get the material configuration values in this userexit.
Regards,
Rajanbabu RDear Rajesh,
The strategy type 25 has been copied and the following fields are modified as follows for the new strategy type Y5.
Requirement type of customer requirement YT5 instead of standard entry KEK
Requirement class YT5 instead of standard entry 046
Account assignment category - E instead of standard M
Settlement profile - SO1
Configuration field - defined as 'allowed' instead of standard setting ' Mandatory '
The field PQTY in the procurement tab page for that particular line item is greyed out and we are unable to key in the value YT5.Unless I entered this value I am not able to procure the component of that line item in that sale order.
Please suggest me any means to enter this value . Shall I configure the BOM for that line item and fix it again in CU51.
Thanks and Regards,
Ram -
Find Sales orders or Deliveries with the reference of Credit account
Find Sales orders or Deliveries with the reference of Credit account
Edited by: aqeeliqbal2008 on Feb 28, 2012 8:48 PMHello,
I doubt Material & Quantities will not be avaialbe in any SAP Standard Report for Credit Account.
I feel you will have to go for a Z-Report Development for your requirement.
Thanks,
Jignesh Mehta -
How to find Sales order numbers for List of Deliveries
Hi
How to find Sales order numbers for List of Deliveries
Thanks
MuthuHi,
Open the delivery list.
Select a delivery, goto menubar, environmment, document flow.
Here u can able to see the order no. (but, here u can see one by one , not cumulatively)
Regards
Kaleeswaran -
Link between sales order & characteristic values
I have the requirement for giving the values of the characteristics for the particular sales order.The item in sales order is KMAT.
Can anyone help me with the Dictionary tables?hi,
SELECT SINGLE cuobj FROM inob INTO l_clobjectkeyin
WHERE klart = l_class AND
objek = l_matnr AND
obtab = l_obtab.
l_klart = l_wa_alloclist-classtype.
l_objek = l_clobjectkeyin.
CALL FUNCTION 'CLFM_SELECT_AUSP'
EXPORTING
mafid
='O'
classtype = l_klart
object = l_objek
TABLES
exp_ausp = l_tab_ausp
EXCEPTIONS
no_values = 1
OTHERS = 2.
READ TABLE l_tab_ausp INTO l_wa_ausp WITH KEY atinn = l_atinn.
MOVE l_wa_ausp-atwrt TO g_wa_final-zzp_kmat_id.
PERFORM get_characterisitics USING c_chr_nam_002.
READ TABLE l_tab_ausp INTO l_wa_ausp WITH KEY atinn = l_atinn.
MOVE l_wa_ausp-atwrt TO g_wa_final-zprogram.
PERFORM get_characterisitics USING c_chr_nam_003.
READ TABLE l_tab_ausp INTO l_wa_ausp WITH KEY atinn = l_atinn.
MOVE l_wa_ausp-atwrt TO g_wa_final-product_type.
hope this code helps..
thx
rams -
No Incompletion Log for Sales Order with net value as zero
Hi all,
There is an Inbound IDOC which creates a Sales Order.
When we check the IDOC, we find that it has got 4 line items (E1EDP01). However, for all the items except the third one (for example), the segment E1EDP05 is filled. In the segment E1EDP05 the field KRATE contains the corresponding net value for the respective line items.
Then when we check Sales Order which is created, we find that the third line item (for example) has the net value as zero. In this case, ideally there should have been an entry in the Incompletion Log. However, it does not happen so.
I suppose the issue is with the third line item in the IDOC for which the segment E1EDP05 is not present. I have debugged the corresponding FM is IDOC_INPUT_ORDERS, but was unable to find any clue.
Please let me know the reason for this.
Thanks and regards,
AnishurIn routine interpret_idoc_orders the item conditions are filled by calling
WHEN 'E1EDP05'.
MOVE IDOC_DATA-SDATA TO E1EDP05.
PERFORM ZUORDNEN_ORDERS_E1EDP05.
In case KRATE is empty no values are transferred to the order
IF NOT E1EDP05-KRATE IS INITIAL.
PERFORM IDOC_CUR_MOVE USING E1EDP05-KRATE XKOMV-CURRDEC
XKOMV-KOEIN
XKOMV-KBETR D_FLAG_P-PKON.
ENDIF.
If that is a valid scenario, you need to adjust your incompletion procedure in customizing to include the net value on item level so any missing value is reported.
If this is not supposed to happen you might want to hook into one of the user exits in the idoc and in case KRATE is missing let the idoc fail.
Hope that helps,
Michael -
Sales order(VA01) discount value not calculated
Hello Gurus,
As Iam creating Sales order i.e(VA01). In my sales order Cash discount is not deducting .It was adding the discount value for example(100+10=100). but it should be (100-10=90).I have checked the Pricing procedure also.
Apart from that can we used two condition type for same order
Please find below I have attached the screen shot also.
Regards,
Sukdev.Dear Neel,
As I already maintain that Condition type in Pricing properly as to told in the above point.So then also it was not updated in my sales order.
Regards,
Sukdev. -
Finding DMS documents via classification values
Hi,
I have a list of characteristic values, from which i need to find the DMS documents which use that characteristic, and have those values.
I have used table AUSP, but when i find that characteristic, the value fields are empty, therefore i don't find anything.
Could someone please help by either telling me which tables to check in order to find these values, or if there is a function module which allows you to enter a characteristic value, and find all documents using that value.
Thanks in advance.Hi All,
We can use the function module - CV100_CLASS_SEARCH
Please refer the following example
data: wa_class type dmscls_simple_selection,
it_class type standard table of dmscls_simple_selection.
wa_class-characteristic = 'CH_TRF_RPT'."Characteristic name
wa_class-value = 'ASDASD'."Characteristic Value
append wa_class to it_class.
clear wa_class.
call function 'CV100_CLASS_SEARCH'
exporting
classno = 'CL_DMS_RPT'"Classifcation Name/Class Name
classtype = '017'"Class type
max_hits = 9999
slanguage = sy-langu
* PF_LIST_TYPE =
tables
tdraw = it_draw
class_selection = it_class
* CLSC_CLASS_SELECTION =
stdokar = it_dokar
stdoknr = it_doknr
stdokvr = it_dokvr
stdoktl = it_doktl
* EXCEPTIONS
* NO_RESULT = 1
* BAD_QUERY = 2
* OTHERS = 3
if sy-subrc <> 0.
* Implement suitable error handling here
endif.
Note: Only fill class selection table along with importing parameters -
Sales order item contion value not coming correcctly
Hi Friends,
I created new condition type-YES7, taken sale basis as D
Cond. class A Discount or surcharge
Calculat.type B Fixed amount
Cond.category 5 Customer reserve 5
Plus/minus A Positi
Scale basis D Gross weight scale
Manual entries C Manual entry has priority
Selected below indicators as well
group conditon
item conditon
delete
I have created condition scales as below
scale qty Rate
0,001 KG 5,00 EUROS
10,000 10,00
20,000 20,00
30,000 30,00
40,000 40,00
50,000 50,00
as per my requirement, based on gross weight of each line item, condition record should pick from scales .
But here,It is cumulating the total gross weight of all line items and showing total gross weight scale value(conditon record value) for each line item of sales order.
so please let me know how to rectify this issues.
Thanks in advane.
Regards,
RamkrishnaJust remove the Group condition and then try .Please refer the logic behind the Group condition
Group condition
Indicates whether the system calculates the basis for the scale value from more than one item in the document.
Use
For a group condition to be effective, the items must belong to a group. You can freely define the group to meet the needs of your own organization. The items can, for example, all belong to the same material group.
Example
A sales order contains two items. Both items belong to the material group 01.
Material Quantity Material group
A 150 01
B 100 01
The group condition indicator is set in the definition of the condition type for material group discounts. The condition record for material group 01 includes the following pricing scale:
Scale quantity Discount
from 1 pc -1%
from 200 pc -2%
Neither item alone qualifies for the 2% discount but sytem will apply the 2% as 100 + 150 > 200 .
However, when the items are combined as part of a group condition, the combined quantity creates a basis of 250 pieces.
This basis then exceeds the scale value of 200 pieces, which is necessary to qualify for the higher discount.
Hope it should work after that ...
Br
Gaurav -
TCode to Find Sales Orders - based on Sales Organization & Material inputs
Hi Experts
I need to pull out all the sales orders raised with different sales organizations on different materials.
Is there any T-Code to pull out the data at one go u2013 instead of giving each material and each organization value one by one?
Example:
I have organizations u2013 2000, 2100 and 2300. Materials I have are, say, A, B, C, D, E and F.
How can I pull out list of sales orders raised for the above 6 materials (A u2013 F) in 3 organizations (2000 u2013 2300) through a single query or T-Code?
Thanks and Regards
Bobbyhi,
i m not sure whether i ur question is clear to me or not, but cant a simple SELECT query do it using SELECT-OPTIONs as S_VKORG and S_MATNR????
Select VBELN from
VBAK Inner join VBAP
on vbakvbeln eq vbapvbeln
where
vbak~vkorg in S_VKORG
and vbap~matnr in S_MATNR.
in the select option screen you insert your VKORG and MATNR number.
Ignore my post if its not as per ur requiremnt.
ags.
Maybe you are looking for
-
Connecting mac book to tv to watch movies
What cords/ connections do I need to set up my computer to a panasonic viera. I am in Switz and do not have any any english tv, it would be great to watch the movies on my computer. Thanks for any help.
-
Sneak Preview ABAP Edition just released
The Sneak Preview: ABAP Edition is now available. Kathy just announced it in the forum: Sneak Preview Update: ABAP Edition just released!! The link to the Sneak Preview stays the same: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km
-
HT1338 problem with the mac os x mountain lion update.
i tried to install the update of mac os x mountain lion for macbook air 1,5 but it keeps saying waiting and i'm not doing anything else or can restart or shut down the mac.what do i do?
-
Business Line & BB : not connected and no answers
after 10 letters , 10 texts and 10 phone calls from BT reminding my of the appointment , you have done nothing. No engineer , no connection and no answers. we have a shop opening which has been based on BT coming to connect a phone line & Fireoptic
-
WS2RFC sync problem - EXEPTION_DURING_EXECUTE
hello I recieve this request and have an error. help required <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Request Message Mapping --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap