How to get the summary of dilivery quantity ?
Hi ,guys:
I met a requirment : get the dilivery qty of a material in certain plant for last month,last 2 months and last 3months. anyone
can give me the best way to make it! TKS!
Dear,
Go to MB51 Posting Date as you want like last 2 months and last 3months
Also in put movement type as 601 for deliver quantity and execute it then press (CRTSHIFTF12) you will get all details.
If you want production then use movement type 101.
Regards,
R.Brahmankar
Similar Messages
-
How to get the current On-Hand Quantity of an item?
Hi,
I want to get the on-hand quantity of items from backend,
When i use the table mtl_onhand_quantities :
SELECT msi.segment1, msi.organization_id, SUM (moq.transaction_quantity)
FROM mtl_system_items_b msi, mtl_onhand_quantities moq
WHERE moq.organization_id(+) = msi.organization_id
AND moq.inventory_item_id(+) = msi.inventory_item_id
and moq.ORGANIZATION_ID = 1006
and msi.SEGMENT1 = '14003-0063'
GROUP BY msi.segment1, msi.organization_id
I get a quantity that is different than the one i get from front end. (On-Hand Quantity Screen)
The mtl_onhand_quantities shows quantities when received only , but it doesn't count the transactions done on the item.
How can i get the correct current on hand quantity of an item ?
Thanks,
JoeI think you guys in this way are getting only the on hand quantity that we inserted when we first created the item...
I think we should also calculate whatever transactions happened on that item ..
i found this little program, please let me know if you think it's the correct way :
FUNCTION CF_LAST_BALFormula RETURN NUMBER IS
v_onhand_qty NUMBER;
v_last_qty NUMBER;
v_target_qty NUMBER;
BEGIN
SELECT SUM(transaction_quantity)
INTO v_onhand_qty
FROM mtl_onhand_quantities_detail
WHERE inventory_item_id = :inventory_item_id
AND organization_id = :organization_id
AND subinventory_code = :Subinventory;
SELECT NVL(SUM(Transaction_quantity),0)
INTO v_last_qty
FROM mtl_material_transactions
WHERE inventory_item_id = :inventory_item_id
AND organization_id = :organization_id
AND subinventory_code = :Subinventory
AND trunc(creation_date)>= :p_last_date;
v_target_qty:=(v_onhand_qty)-(v_last_qty);
RETURN( v_target_qty);
EXCEPTION
WHEN OTHERS THEN
RETURN 0;
END; -
How to get the open production order quantity
Hi,
I need to generate a report with open prodution order quantity.
I am planning to use the following rule
(AFkO-GAMNG) - (AFKO-IGMNG)
will this work ?
Pls give me the feedback.
ThanksHi Anil,
Using these two field from table afko, you will get the confirmed qty data. As per Rajesh suggestion you need to take data from MSEG TABLE.
REGARDS,
SATYAJIT -
How to get the Summary details of jpg file like (title, subject, author)
Hi All,
Plz help me out of this Reading Windows file summary properties (title, subject, author) in Java.
When select properties giing right click on the file after that window open with the three tabs containg General,Security,Summary.
From the Summary tab i need to pull the data (title, subject, author) using Java api.
Regards
RameshI tried many ways using ImageIO, ImageReader
ImageInputStream inStream = ImageIO.createImageInputStream(new File("E:\\Ramesh\\Blue hills.jpg"));
Iterator<ImageReader> imgItr = ImageIO.getImageReaders(inStream);
while (imgItr.hasNext())
ImageReader reader = imgItr.next();
reader.setInput(inStream, true);
String fm = reader.getFormatName();
System.out.println("format name : " + fm );
Raster raster = reader.readRaster(0, null);
IIOMetadata metadata = reader.getImageMetadata(0);
reader.getOriginatingProvider();
String[] names = metadata.getMetadataFormatNames();
int length = names.length;
for (int i = 0; i < length; i++)
System.out.println( "Format name: " + names[ i ] );
} -
How To Get The Total Delivered Quantity of a Sales Order
Hello All,
I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
Regards,
Pavani.Hi
Check the Table:
VBEP - Sales Document: Schedule Line Data.
Inside the table check the Quantity Fields.
Regards,
Sreeram -
I would like to know how to get the unrestricted quantity excluding actual customer ordr quantities on a given group of items?
Hi , Welcome to the HP Forums!
It is a terrific place to find answers and tips!
For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide.Learn How to Post and More I grasp you would like to replace the keyboard and would like the part number and where to purchase one. Here is a link to the HP Pavilion 17 Notebook PC HP Pavilion 15 Notebook PC Maintenance and Service Guide . Please note chapter 3, page 20, item 2 for the replacement keyboard part numbers. You stated you were having a difficulty locating where to purchase the part. Here is a link to HP Notebook PCs - Ordering HP Certified Replacement Parts for your convenience. You can also try a Google search with the part number for other vendors that may have one. To say thanks for replying please click the thumbs up icon below. If this has addressed your query please choose solution provided to help other people locate this information. Best of Luck! -
How to get the onhand quantity along with zero quantities in Inventory?
How to get the onhand quantity along with zero quantities in Inventory...Plz reply me as son as possible?
Hi Akshata,
In processRequest you can use pageContext.getParameter
String PartyName = pageContext.getParameter("PartyName");Regards,
Sujoy -
How to get the Deliver Quantity against Schedule Line Quantity
Hi,
I have specific requirement for a report where we need to determine the delivery qty against the schedule line qty for a sales order. In sales order in schedule line tab system shows the delivery qty. The field is VBEPD-VSMNG. VBEPD is a structure and I could not find the table in which this is actually stored. Does anybody know how to get the delivery qty for schedule line?Hi,
U can check the following tables:
VBEP (Sales ScheduleLines) VBEP-VBELN =VBAP-VBELN and VBAP-POSNR = VBEP-POSNR
LIPS (SalesDoc:Delivery Items) LIPS-VGBEL =VBAP-VBELN and LIPS-VGPOS =
VBAP-POSNR
VBEH (Schedule LineHistory) VBELN POSNR ETENR
Regards
Kannaiah -
How to get the values from object ?
hi everybody,
i am experimenting with oops concept. first have a look at these coding and then tell me this.
what do i have to do to get the value of an object created. i want to use the get method to get the name, food and quantity, without the use of the created object. i mean i want to make the process independent of how many objects i make so that i can find a value given the name of a person in the object.
when this is done, i want to use this to create filed of a specific doc format for each object created. now when we are using the get method i want to read whats on the object value .
Am i being clear or are thing very confusing, please let me know wht u think so i can clarify myself more.
public class obj {
String name;
String food;
int quantity;
public void set(String ndata, String fdata,int qdata )
this.name=ndata;
this.food=fdata;
this.quantity=qdata;
public void get()
System.out.println( this.name+" "+this.food+" "+this.quantity);
public static void main(String[] args) {
obj obj1= new obj();
obj1.set("varun", "burger", 2);
obj obj2= new obj();
obj1.set("roshan", "diet pepsi", 1);
obj obj3= new obj();
obj1.set("aman", "biryani", 2);
obj2.get();
}cyberpanther wrote:
hi everybody,
i am experimenting with oops concept. first have a look at these coding and then tell me this.
what do i have to do to get the value of an object created. i want to use the get method to get the name, food and quantity, without the use of the created object. no. wrong.
i mean i want to make the process independent of how many objects i make so that i can find a value given the name of a person in the object.no. sounds more like you're experimenting with drugs.
when this is done, i want to use this to create filed of a specific doc format for each object created. now when we are using the get method i want to read whats on the object value .
Am i being clear or are thing very confusing, please let me know wht u think so i can clarify myself more.you're clearly confused.
public class obj {
String name;
String food;
int quantity;
public void set(String ndata, String fdata,int qdata )
this.name=ndata;
this.food=fdata;
this.quantity=qdata;
public void get()
System.out.println( this.name+" "+this.food+" "+this.quantity);
public static void main(String[] args) {
obj obj1= new obj();
obj1.set("varun", "burger", 2);
obj obj2= new obj();
obj1.set("roshan", "diet pepsi", 1);
obj obj3= new obj();
obj1.set("aman", "biryani", 2);
obj2.get();
}utterly awful code. this is how it should not be done.
% -
How to get the values from repeated frame?.
Hi
how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
thanksHow often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
Hope that helps,
Toby -
How to get the reference of the cell id in validate method in adf
Hi All,
I am using Jdeveloper 11.1.1.2 and i am using custom validator where i have registered the validator in facesconfig.xml.I need to know how can i get the ID of the inputtext box which is present in the hierarchy as Panel Header->Table->column->textbox :-
Below is my custom validator class source , please tell me how to get the reference of the textbox which is present in such hierarchy.:-
package validator;
import java.io.Serializable;
import java.util.Date;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
import oracle.adf.view.rich.component.rich.input.RichInputDate;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adfinternal.view.faces.bi.util.JsfUtils;
public class ValidateConversion implements Serializable, Validator {
public ValidateConversion() {
super();
public void validate(FacesContext facesContext, UIComponent uIComponent,
Object object) throws ValidatorException {
System.out.println("*************");
System.out.println((String)object);
//get component id by get("AttributeName");
String conversionComponentId = (String)uIComponent.getAttributes().get("UncommittedOrder_PH:t7:it14");
System.out.println("conversionComponentId=" + conversionComponentId);
RichInputText conversionComponent = (RichInputText)uIComponent.findComponent(conversionComponentId);
Integer conversion = (Integer)conversionComponent.getValue();
Integer quantityInBags = (Integer)object;
//get labels from the two inputDate component.
String conversionLabel = conversionComponent.getLabel();
String quantityInBagsLabel = ((RichInputText)uIComponent).getLabel();
Integer remainder = (quantityInBags % conversion);
//throw error if valiation fails
if (remainder > 0) {
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,
"The " + quantityInBagsLabel + " should be in multiples of" + conversion +".",
null));
Thanks,
Plese reply!!!Thanks Jabr,
This is my jsff page source and i need to find the reference of it14 which is the textbox :-
<af:panelGroupLayout id="pgl1" styleClass="AFStretchWidth">
<af:panelHeader text="Results" id="Results_PH" size="1">
<af:table value="#{bindings.queryProductResponseType.collectionModel}"
var="row"
rows="#{bindings.queryProductResponseType.rangeSize}"
emptyText="#{bindings.queryProductResponseType.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.queryProductResponseType.rangeSize}"
rowBandingInterval="1"
filterModel="#{bindings.queryProductResponseTypeQuery.queryDescriptor}"
queryListener="#{bindings.queryProductResponseTypeQuery.processQuery}"
filterVisible="true" varStatus="vs" id="ResultTable_t"
width="99%" partialTriggers="::cb1 ::cb2 ::cb3 it14"
binding="#{viewScope.GrowerOrderBean.resultTable}"
columnStretching="last" rowSelection="multiple"
sortListener="#{viewScope.GrowerOrderBean.sortResultTable_action}"
autoHeightRows="8" first="0"
inlineStyle="height:196px;margin:10px"
selectionListener="#{viewScope.GrowerOrderBean.resultRowSelect_action}">
<af:column filterable="false" sortable="false" headerText="Select"
id="c9" width="55" rendered="false"
filterFeatures="caseInsensitive">
<div align="center">
<af:selectBooleanCheckbox value="#{row.bindings.booleanFlag.inputValue}"
label="#{bindings.queryProductResponseType.hints.booleanFlag.label}"
required="#{bindings.queryProductResponseType.hints.booleanFlag.mandatory}"
shortDesc="#{bindings.queryProductResponseType.hints.booleanFlag.tooltip}"
id="it19" autoSubmit="true">
<f:validator binding="#{row.bindings.booleanFlag.validator}"/>
</af:selectBooleanCheckbox>
</div>
</af:column>
<!-- START of column created by SYSTIME -->
<af:column sortProperty="quantity" headerText="Quantity in Bags" filterFeatures="caseInsensitive"
id="c54" rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterable="true" sortable="true">
<af:inputText label="Quantity in Bags" id="it14"
partialTriggers="it19" autoSubmit="true"
readOnly="#{row.activeYN == 'N' or row.availability < 0 or row.availability ==0}"
valueChangeListener="#{viewScope.GrowerOrderBean.compare}">
<af:validateLongRange id="RangeCheck_Val1" minimum="1"
maximum="#{row.availability * row.conversion}"
messageDetailNotInRange="You have entered a quantity more than is available. Quantity entered must be in the range of {2} to {3}"
messageDetailMinimum="Minimum {0} allowed is {2}"
messageDetailMaximum="Maximum {0} allowed is {2}"
hintNotInRange="#{'Quantity In Bags to Order'}"/>
<af:validateRegExp pattern="^[1-9]+[0-9]*$"
messageDetailNoMatch="Quantity In Bags must be in whole number format."/>
<f:validator validatorId="custom.conversionValidator"/>
</af:inputText>
</af:column>
<!-- END of column created by SYSTIME -->
<af:column sortProperty="quantity" filterable="true"
sortable="true" headerText="Quantity" id="c3"
width="60"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" visible="false">
<div align="center" >
<af:inputText value="#{row.bindings.quantity.inputValue}"
label="#{bindings.queryProductResponseType.hints.quantity.label}"
required="#{bindings.queryProductResponseType.hints.quantity.mandatory}"
columns="#{bindings.queryProductResponseType.hints.quantity.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.quantity.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.quantity.tooltip}"
id="it5" partialTriggers="it19"
readOnly="#{row.activeYN == 'N' or row.availability < 0 or row.availability ==0}">
<f:validator binding="#{row.bindings.quantity.validator}"/>
<af:validateLongRange id="RangeCheck_Val" minimum="1"
maximum="#{row.bindings.availability.inputValue}"
messageDetailNotInRange="You have entered a quantity more than is available. Quantity entered must be in the range of {2} to {3}"
messageDetailMinimum="Minimum {0} allowed is {2}"
messageDetailMaximum="Maximum {0} allowed is {2}"
hintNotInRange="#{'Quantity to Order'}"/>
<af:validateRegExp pattern="^[1-9]+[0-9]*$"
messageDetailNoMatch="Quantity must be in whole number format."/>
</af:inputText>
</div>
</af:column>
<af:column sortProperty="brand" filterable="true" sortable="true"
headerText="Brand" id="c10" width="80"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" displayIndex="-1">
<af:inputText value="#{row.bindings.brand.inputValue}"
label="#{bindings.queryProductResponseType.hints.brand.label}"
required="#{bindings.queryProductResponseType.hints.brand.mandatory}"
columns="#{bindings.queryProductResponseType.hints.brand.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.brand.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.brand.tooltip}"
id="it7" readOnly="true">
<f:validator binding="#{row.bindings.brand.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="seedsz" filterable="true" sortable="true"
headerText="Seed Size" id="c7" width="50"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.seedsz.inputValue}"
label="#{bindings.queryProductResponseType.hints.seedsz.label}"
required="#{bindings.queryProductResponseType.hints.seedsz.mandatory}"
columns="#{bindings.queryProductResponseType.hints.seedsz.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.seedsz.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.seedsz.tooltip}"
id="it11" readOnly="true"
contentStyle="text-transform:uppercase">
<f:validator binding="#{row.bindings.seedsz.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="pckSize" filterable="true"
sortable="true" headerText="Pkg Size" id="c11"
width="50"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive"
inlineStyle="#{row.conversion > 1 ? 'background-color:Yellow;' : 'background-color:White;'}">
<af:inputText value="#{row.bindings.pckSize.inputValue}"
label="#{bindings.queryProductResponseType.hints.pckSize.label}"
required="#{bindings.queryProductResponseType.hints.pckSize.mandatory}"
columns="#{bindings.queryProductResponseType.hints.pckSize.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.pckSize.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.pckSize.tooltip}"
id="it8" readOnly="true">
<f:validator binding="#{row.bindings.pckSize.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="conversion" filterable="true"
sortable="true" headerText="Conv" id="c4" width="50"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" displayIndex="-1">
<af:inputText value="#{row.bindings.conversion.inputValue}"
label="#{bindings.queryProductResponseType.hints.conversion.label}"
required="#{bindings.queryProductResponseType.hints.conversion.mandatory}"
columns="#{bindings.queryProductResponseType.hints.conversion.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.conversion.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.conversion.tooltip}"
id="conversion_it" readOnly="true">
<f:validator binding="#{row.bindings.conversion.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="treatment" filterable="true"
sortable="true" headerText="Treatment" id="c13"
width="70"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.treatment.inputValue}"
label="#{bindings.queryProductResponseType.hints.treatment.label}"
required="#{bindings.queryProductResponseType.hints.treatment.mandatory}"
columns="#{bindings.queryProductResponseType.hints.treatment.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.treatment.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.treatment.tooltip}"
id="it20" readOnly="true">
<f:validator binding="#{row.bindings.treatment.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="availability" filterable="true"
sortable="true" headerText="Availability" id="c15"
width="60"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.availability> 500 ? '>=500': (row.availability> 100 and row.availability<500 ? '100-500' : row.availability) }"
label="#{bindings.queryProductResponseType.hints.availability.label}"
required="#{bindings.queryProductResponseType.hints.availability.mandatory}"
columns="#{bindings.queryProductResponseType.hints.availability.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.availability.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.availability.tooltip}"
id="it9" readOnly="true">
<f:validator binding="#{row.bindings.availability.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="desiredDeliveryDate" filterable="true"
sortable="true" headerText="Desired Delivery Month" id="c2"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" width="90">
<af:selectOneChoice id="soc1" partialTriggers="it19"
unselectedLabel="#{viewScope.GrowerOrderBean.desiredDeliveryDate}"
value="#{row.bindings.desiredDeliveryDate.inputValue}"
readOnly="#{row.activeYN == 'N'}">
<af:forEach var="item"
items="#{viewScope.GrowerOrderBean.selectItems}">
<af:selectItem label="#{item.label}" value="#{item.value}"/>
</af:forEach>
</af:selectOneChoice>
</af:column>
<af:column sortProperty="maturity" filterable="true"
sortable="true" headerText="Maturity" id="c5"
width="60"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<div align="center">
<af:inputText value="#{row.bindings.maturity.inputValue}"
label="#{bindings.queryProductResponseType.hints.maturity.label}"
required="#{bindings.queryProductResponseType.hints.maturity.mandatory}"
columns="#{bindings.queryProductResponseType.hints.maturity.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.maturity.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.maturity.tooltip}"
id="it16" readOnly="true">
<f:validator binding="#{row.bindings.maturity.validator}"/>
</af:inputText>
</div>
</af:column>
<af:column sortProperty="technology" filterable="true"
sortable="true" headerText="Technology" id="c14"
rendered="true" filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.technology.inputValue}"
label="#{bindings.queryProductResponseType.hints.technology.label}"
required="#{bindings.queryProductResponseType.hints.technology.mandatory}"
columns="#{bindings.queryProductResponseType.hints.technology.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.technology.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.technology.tooltip}"
id="it15" readOnly="true">
<f:validator binding="#{row.bindings.technology.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="prdLine" filterable="true"
sortable="true" headerText="Product Line" id="c6"
width="70"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.prdLine.inputValue}"
label="#{bindings.queryProductResponseType.hints.prdLine.label}"
required="#{bindings.queryProductResponseType.hints.prdLine.mandatory}"
columns="#{bindings.queryProductResponseType.hints.prdLine.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.prdLine.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.prdLine.tooltip}"
id="it12" readOnly="true">
<f:validator binding="#{row.bindings.prdLine.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="brandMktName" filterable="true"
sortable="true" headerText="Marketing Brand" id="c8"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" width="80">
<af:inputText value="#{row.bindings.brandMktName.inputValue}"
label="#{bindings.queryProductResponseType.hints.brandMktName.label}"
required="#{bindings.queryProductResponseType.hints.brandMktName.mandatory}"
columns="#{bindings.queryProductResponseType.hints.brandMktName.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.brandMktName.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.brandMktName.tooltip}"
id="it17" readOnly="true">
<f:validator binding="#{row.bindings.brandMktName.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="itemID" filterable="true" sortable="true"
headerText="Item#" id="c1"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive" width="60">
<af:inputText value="#{row.bindings.itemID.inputValue}"
label="#{bindings.queryProductResponseType.hints.itemID.label}"
required="#{bindings.queryProductResponseType.hints.itemID.mandatory}"
columns="#{bindings.queryProductResponseType.hints.itemID.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.itemID.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.itemID.tooltip}"
id="it6" readOnly="true">
<f:validator binding="#{row.bindings.itemID.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="descp" filterable="true" sortable="true"
headerText="Description" id="c17" width="105"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.descp.inputValue}"
label="#{bindings.queryProductResponseType.hints.descp.label}"
required="#{bindings.queryProductResponseType.hints.descp.mandatory}"
columns="#{bindings.queryProductResponseType.hints.descp.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.descp.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.descp.tooltip}"
id="it10" readOnly="true">
<f:validator binding="#{row.bindings.descp.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="primaryUOM" filterable="true"
sortable="true"
headerText="#{bindings.queryProductResponseType.hints.primaryUOM.label}"
id="c16" rendered="false"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.primaryUOM.inputValue}"
label="#{bindings.queryProductResponseType.hints.primaryUOM.label}"
required="#{bindings.queryProductResponseType.hints.primaryUOM.mandatory}"
columns="#{bindings.queryProductResponseType.hints.primaryUOM.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.primaryUOM.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.primaryUOM.tooltip}"
id="it18">
<f:validator binding="#{row.bindings.primaryUOM.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="secondaryUOM" filterable="true"
sortable="true"
headerText="#{bindings.queryProductResponseType.hints.secondaryUOM.label}"
id="c12" rendered="false"
filterFeatures="caseInsensitive">
<af:inputText value="#{row.bindings.secondaryUOM.inputValue}"
label="#{bindings.queryProductResponseType.hints.secondaryUOM.label}"
required="#{bindings.queryProductResponseType.hints.secondaryUOM.mandatory}"
columns="#{bindings.queryProductResponseType.hints.secondaryUOM.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.secondaryUOM.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.secondaryUOM.tooltip}"
id="it21">
<f:validator binding="#{row.bindings.secondaryUOM.validator}"/>
</af:inputText>
</af:column>
</af:table>
<af:spacer width="10" height="5" id="s7"/>
<af:toolbar id="t1">
<af:commandButton id="AddToOrderButton2"
actionListener="#{viewScope.GrowerOrderBean.addToOrder_action}"
partialSubmit="true"
styleClass="addToOrderButton">
<af:clientListener method="setFocus" type="action"/>
</af:commandButton>
</af:toolbar>
<f:facet name="context">
<af:group id="g1">
<af:spacer width="60" height="10" id="s1"/>
<af:commandButton id="cb4"
actionListener="#{viewScope.GrowerOrderBean.addToOrder_action}"
partialSubmit="true"
styleClass="addToOrderButton">
<af:clientListener method="setFocus" type="action"/>
</af:commandButton>
</af:group>
</f:facet>
<f:facet name="info"/>
<f:facet name="legend"/>
<f:facet name="menuBar"/>
<f:facet name="toolbar"/>
</af:panelHeader>
</jsp:root>
Please reply !!
Thanks. -
How to get the SR NO in a report
Hi all,
I am new to report and was wondering how I get the
SrNO in a report like below example.
SrNO Name Dept
1 ABC Sales
2 xyz Admin
Should i use CF or CP etc ???
Regards
SunnyIf it is a tabular report, then use rownum in your
query and display it in the report
e.g.
SELECT ROWNUM, EMP.EMPNO, EMP.DEPTNO
FROM EMP
If group report, then use a summary column (count) in
the detail group and reset on master group.
Hope this helps.Thanks a Million.!!!
Sunny -
How to get the link between mara, ausp, cawn and cawnt tables
hello ABAPERS
i have got a requiremet in that i have to get the relation .
how to get the link between mara, ausp, cawn and cawnt tables and also type how can we get link between char value and char description in cawn and cawnt tables through ausp and mara tables.
I would be very thankful for ur help in advance.
Thanks & Regards.
soniHi,
Sample report using the linkage between tables;
report batch_char no standard page heading
line-size 132
line-count 58(1)
message-id mm.
Report by Batch Characteristic *
Description : Report by Batch Characteristic *
Declaration for Tables
tables: mara, " Material Master
mard, " Storage Location Data for Material
t001w, " Plants/Branches
t001l, " Storage Locations
cabn, " Characteristics
inob. " Link between Internal Number and Object
Declaration for Constants
constants : c_klart like ausp-klart value '023', " Class Type
c_obtab like inob-obtab value 'MCH1', " Database Table
c_flag type c value 'X', " Flag
c_c23 type i value '23', " Ratio
Constants for Ratio Categories
c_13 type p decimals 2 value '13.00', " For Ratio 13
c_1499 type p decimals 2 value '14.99', " For Ratio 14.99
c_15 type p decimals 2 value '15.00', " For Ratio 15
c_1699 type p decimals 2 value '16.99', " For Ratio 16.99
c_17 type p decimals 2 value '17.00', " For Ratio 17
c_1899 type p decimals 2 value '18.99', " For Ratio 18.99
c_19 type p decimals 2 value '19.00', " For Ratio 19
c_2099 type p decimals 2 value '20.99', " For Ratio 20.99
c_21 type p decimals 2 value '21.00', " For Ratio 21
c_2299 type p decimals 2 value '22.99', " For Ratio 22.99
c_23 type p decimals 2 value '23.00', " For Ratio 23
c_g23(4) type c value '>=23', " For Ratio >=23
c_ratio(5) value 'RATIO', " For Ratio
Constants for Storing Selected item field information
c_cursor1(15) value 'I_OUTPUT1-MEINS', " For Selected Base
" Unit of Measure
c_cursor2(15) value 'I_OUTPUT1-MATNR', " For Selected Base
" Material Number
c_cursor3(15) value 'I_OUTPUT1-MAKTX', " For Selected Base
" Material Des.
c_cursor4(15) value 'I_OUTPUT1-CLABS', "For Selected Base
" Stock Value
c_cursor5(15) value 'I_OUTPUT1-ATFLV', " For Selected Base
" Char.Value (Ratio)
c_cursor6(5) value 'C_G23'.
Declaration for Global Variables
data : g_exit type c, " Flag
g_clabs1(16) type c, " Quantity
g_clabs(18) type c, " Quantity
g_cursor(15) type c, " Cursor field name
g_matnr type mara-matnr, " Material Number
g_werks type mchb-werks, " Plant
g_atinn(30) type c. " Character.
Declaration for Internal tables
Internal table to hold Batch Stock data
data : begin of i_mchb occurs 0,
matnr like mchb-matnr, " Material Number
werks like mchb-werks, " Plant
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Unit of measure
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb.
Internal table to hold Secondary List data
data : begin of i_mchb1 occurs 0,
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
atinn like ausp-atinn, " Char.Value
clabs like mchb-clabs, " Stock Value
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb1.
Internal table to get the Plant Name
data : begin of i_plant occurs 0,
werks like t001w-werks, " Plant
name1 like t001w-name1, " Name
end of i_plant.
Internal table to get the Material Description
data : begin of i_makt occurs 0,
matnr like makt-matnr, " Material
maktx like makt-maktx, " Description
end of i_makt.
Internal table to hold AUSP data
data : begin of i_ausp occurs 0,
objek like ausp-objek, " Object No
atinn like cabn-atinn, " Characteric value
atflv like ausp-atflv, " Characteristic Value
end of i_ausp.
Internal table to hold output data
data : begin of i_output occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv like ausp-atflv, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output.
Internal table to hold final Output data
data : begin of i_output1 occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv(32) type c, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output1.
Selection screen
selection-screen begin of block b1 with frame title text-001.
select-options: s_werks for t001w-werks obligatory, " Plant
s_lgort for t001l-lgort, " Stor.Location
s_matnr for mara-matnr obligatory, " Material No
s_atinn for cabn-atinn. " Character.
selection-screen end of block b1.
At selection screen
at selection-screen.
Validation of Selection Screen Fields
perform validate_screen.
Start of selection
start-of-selection.
Get the Material and Batch Stock data from MARA and MCHB Tables
perform get_mat_stock_data.
Get the Material Group Text and Plant Name from T023T and T001W Tables
perform get_plant_grp_data.
Append the data into final Output Internal Table after getting the
Characteristic Values data from INOB and AUSP Tables
perform append_final_data.
Processing if the Characteristics contain 'RATIO'
perform collect_ratio.
End-of-Page
end-of-page.
write /1(125) sy-uline.
End of selection
end-of-selection.
if g_exit <> c_flag.
Display the Report Output data
perform display_report.
endif.
Top-of-Page
top-of-page.
Write the Report and Column Headings
perform get_headings.
at line-selection
at line-selection.
if sy-lsind = 1.
perform display_batch.
endif.
Top of page during line-selection
top-of-page during line-selection.
perform heading_seclist.
Form validate_screen
Validation of Selection Screen fields
form validate_screen.
Validation of Plant
clear t001w.
if not s_werks[] is initial.
select werks
into t001w-werks
from t001w
up to 1 rows
where werks in s_werks.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Plant'(002).
endif.
endif.
Validation of Material Number
clear mara.
if not s_matnr[] is initial.
select matnr
into mara-matnr
from mara
up to 1 rows
where matnr in s_matnr.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Material'(003).
endif.
endif.
Validation of Storage Location
clear t001l.
if not s_lgort[] is initial.
select lgort
into t001l-lgort
from t001l
up to 1 rows
where lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Storage Location'(004).
endif.
endif.
Validation of Characteristic Value
clear cabn.
if not s_atinn[] is initial.
select atinn
into cabn-atinn
from cabn
up to 1 rows
where atinn in s_atinn.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Characteristic Value'(005).
endif.
endif.
Validation of Plant, Material and Storage Location
clear mard.
select matnr werks lgort
into (mard-matnr, mard-werks, mard-lgort)
from mard
up to 1 rows
where matnr in s_matnr and
werks in s_werks and
lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'No Data found for the Selection Criteria'(006).
endif.
endform. "validate_screen
*& Form get_headings
Write the Report and Column Headings
form get_headings.
data: l_repid type sy-repid.
l_repid = sy-repid.
call function 'Y_STANDARD_HEADING'
exporting
repid = l_repid
heading1 = sy-title.
write:/1(125) sy-uline.
format color col_heading on.
write : /1 sy-vline, 2(18) 'Material Number'(008) centered,
20 sy-vline, 21(40) 'Material Description'(011) centered,
61 sy-vline, 62(22) 'Ratio'(009) centered,
84 sy-vline, 85(18) 'Quantity'(010) centered,
103 sy-vline, 104(20) 'Base Unit of Measure'(015) centered,
125 sy-vline.
write:/1(125) sy-uline.
format color off.
endform. "get_headings
*& Form get_mat_stock_data
Get the Material and Batch Stock data from MARA and MCHB Tables
form get_mat_stock_data.
clear: i_mchb,i_output, i_output1.
refresh: i_mchb,i_output, i_output1.
select a~matnr " Material Number
b~werks " Plant
b~lgort " Storage Location
b~charg " Batch Number
b~clabs " Stock Value
a~meins " Base Unit of Measure
into table i_mchb
from mara as a inner join mchb as b
on amatnr eq bmatnr
where b~matnr in s_matnr and
b~werks in s_werks and
b~lgort in s_lgort.
if sy-subrc <> 0.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
stop.
endif.
sort i_mchb by matnr werks lgort charg.
endform. " get_mat_stock_data
*& Form get_plant_grp_data
Get the Material Group Text and Plant Name from T023T and T001W
form get_plant_grp_data.
if not i_mchb[] is initial.
Get the Plant Description from t001w Table
clear i_plant.
refresh i_plant.
select werks " Plant
name1 " Name
into table i_plant
from t001w
for all entries in i_mchb
where werks = i_mchb-werks.
Get the Material Description from MAKT Table
clear i_makt.
refresh i_makt.
select matnr " Material number
maktx " Material Description
into table i_makt
from makt
for all entries in i_mchb
where matnr = i_mchb-matnr and
spras = sy-langu.
sort i_plant by werks.
delete adjacent duplicates from i_plant comparing werks.
sort i_makt by matnr.
delete adjacent duplicates from i_makt comparing matnr.
endif.
endform. "form get_plant_grp_data.
*& Form append_final_data
Append the data into final Internal Table
form append_final_data.
data : l_matbatch(28),
l_tabix like sy-tabix.
if not i_mchb[] is initial.
loop at i_mchb.
l_tabix = sy-tabix.
clear l_matbatch.
concatenate i_mchb-matnr i_mchb-charg into l_matbatch.
move-corresponding i_mchb to i_output.
Get the Plant Description from i_plant Table
read table i_plant with key werks = i_mchb-werks binary search.
if sy-subrc = 0.
i_output-name1 = i_plant-name1.
endif.
Get the Material Description from i_makt Table
read table i_makt with key matnr = i_mchb-matnr binary search.
if sy-subrc = 0.
i_output-maktx = i_makt-maktx.
endif.
Get the Characteristic Values data from INOB and AUSP Tables
clear inob.
select single cuobj from inob
into inob-cuobj
where klart = c_klart and
obtab = c_obtab and
objek = l_matbatch.
if sy-subrc = 0.
select objek
atinn
atflv
from ausp
into table i_ausp
where objek = inob-cuobj and
atinn in s_atinn and
klart = c_klart.
sort i_ausp by objek atinn.
loop at i_ausp.
clear cabn.
select single atinn atnam from cabn
into (cabn-atinn,cabn-atnam)
where atinn = i_ausp-atinn.
if sy-subrc = 0.
If the ratio value is between 13-14.99, display 13
if cabn-atnam cs c_ratio.
if i_ausp-atflv between c_13 and c_1499.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_ausp-atflv between c_15 and c_1699.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_ausp-atflv between c_17 and c_1899.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_ausp-atflv between c_19 and c_2099.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_ausp-atflv between c_21 and c_2299.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_ausp-atflv >= c_23.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_23.
endif. " Condition for RATIO values
else. " If characteristic does contain RATIO
i_mchb-atflv = i_ausp-atflv.
endif.
i_output-atinn = cabn-atinn.
i_output-atnam = cabn-atnam.
i_output-atflv = i_ausp-atflv.
i_mchb1-matnr = i_mchb-matnr.
i_mchb1-werks = i_mchb-werks.
i_mchb1-lgort = i_mchb-lgort.
i_mchb1-charg = i_mchb-charg.
i_mchb1-clabs = i_mchb-clabs.
i_mchb1-atinn = i_ausp-atinn.
i_mchb1-atflo = i_mchb-atflv.
i_mchb1-atflv = i_ausp-atflv.
append : i_output, i_mchb1.
clear i_mchb1.
modify i_mchb index l_tabix transporting atflo atflv .
endif.
endloop.
endif.
endloop.
endif.
Checking whether the table is filled or not
if not i_output[] is initial.
sort i_output by atinn werks matnr atflv.
else.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
endif.
Delete the records where RATIO is less than 13.
delete i_output where atnam cs c_ratio and atflv lt c_13.
endform. "append_final_data
*& Form display_report
Display the Report Output data
form display_report.
data: l_tabix like sy-tabix.
loop at i_output1.
l_tabix = sy-tabix.
At new Characteristic
at new atinn.
read table i_output1 index l_tabix.
format color 1 intensified on.
write: /1 sy-vline, 2(20) 'Characteristic Name:'(007),
23(40) i_output1-atnam,
125 sy-vline.
format color off.
format color 4 intensified on.
write: /1 sy-vline, 2(20) 'Plant Name :'(022),
23(4) i_output1-werks, 29(30) i_output1-name1,
125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
clear: g_clabs, g_clabs1.
format color col_normal.
write :/1 sy-vline, 2(18) i_output1-matnr,
20 sy-vline, 21(40) i_output1-maktx,
61 sy-vline.
if i_output1-atflv = c_c23.
write: 62(22) c_g23 centered.
else.
shift i_output1-atflv left deleting leading space.
write: 62(22) i_output1-atflv centered.
endif.
write: 84 sy-vline,
103 sy-vline,
110(5) i_output1-meins.
If the quantity value is negative
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
hide : i_output1.
new-line.
At end of material
at end of matnr.
sum.
move : i_output1-matnr to g_matnr.
format color 3 intensified on.
write /1(125) sy-uline.
write :/1 sy-vline, 2(25) 'Total for Material :'(012),
28(18) g_matnr.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
write: 125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
At end of plant
at end of werks.
sum.
move : i_output1-werks to g_werks.
format color 3 intensified off.
write :/1 sy-vline, 2(25) 'Total for Plant :'(013),
28(4) g_werks.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
At end of characteristic
at end of atinn.
read table i_output1 index l_tabix.
sum.
format color 3 intensified on.
write :/1 sy-vline, 2(25) 'Total for Characteristic:'(014),
28(25) i_output1-atnam.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
endloop.
endform. " display_report
*& Form DISPLAY_BATCH
Display the batch details for the seclected material *
form display_batch.
Get the batch details for the selected material
get cursor field g_cursor.
if g_cursor = c_cursor1 or
g_cursor = c_cursor2 or
g_cursor = c_cursor3 or
g_cursor = c_cursor4 or
g_cursor = c_cursor5 or
g_cursor = c_cursor6.
format color 3.
write: /1 sy-vline,
2(17) 'Material Number :'(020),
20(17) i_output1-matnr,
94 sy-vline.
format color off.
write /1(94) sy-uline.
loop at i_mchb1 where matnr = i_output1-matnr and
atinn = i_output1-atinn and
atflo = i_output1-atflv.
format color col_normal.
shift i_mchb1-charg left deleting leading '0'.
write :/1 sy-vline, 2(16) i_mchb1-lgort centered,
18 sy-vline, 19(17) i_mchb1-charg centered,
36 sy-vline.
if i_output1-atnam cs c_ratio.
write: 37(29) i_mchb1-atflv
exponent 0 decimals 2 centered.
else.
write : 37(29) i_mchb1-atflv
exponent 0 decimals 0 centered.
endif.
write : 66 sy-vline, 67(27) i_mchb1-clabs unit i_mchb-meins,
94 sy-vline.
format color off.
endloop.
write /1(94) sy-uline.
else.
message s899 with 'Invalid cursor position'(016).
exit.
endif.
endform. " DISPLAY_BATCH
*& Form HEADING_SECLIST
Write the Column Headings for Interactive Report
form heading_seclist.
write /1(94) sy-uline.
format color col_heading on.
write :/1 sy-vline, 2(16) 'Storage Location'(021),
18 sy-vline, 19(17) 'Batch Number'(017) centered,
36 sy-vline, 37(29) 'Characteristic Value'(018) centered,
66 sy-vline, 67(27) 'Quantity'(019) centered,
94 sy-vline.
write /1(94) sy-uline.
format color off.
endform. " HEADING_SECLIST
*& Form COLLECT_RATIO
Display the Characteristic ratio data
form collect_ratio.
loop at i_output.
clear g_atinn.
i_output1-atinn = i_output-atinn.
i_output1-atnam = i_output-atnam .
i_output1-werks = i_output-werks.
i_output1-name1 = i_output-name1.
i_output1-matnr = i_output-matnr.
i_output1-maktx = i_output-maktx.
i_output1-clabs = i_output-clabs.
i_output1-meins = i_output-meins.
call function 'CONVERSION_EXIT_ATINN_OUTPUT'
exporting
input = i_output-atinn
importing
output = g_atinn.
if g_atinn cs c_ratio.
If the ratio value is between 13-14.99, display 13
if i_output-atflv between c_13 and c_1499.
i_output1-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_output-atflv between c_15 and c_1699.
i_output1-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_output-atflv between c_17 and c_1899.
i_output1-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_output-atflv between c_19 and c_2099.
i_output1-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_output-atflv between c_21 and c_2299.
i_output1-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_output-atflv >= c_23.
i_output1-atflv = c_23.
endif.
write i_output1-atflv to i_output1-atflv .
else.
write i_output-atflv to i_output1-atflv exponent 0 decimals 0.
endif.
collect i_output1.
clear i_output1.
endloop.
sort i_output1 by atinn werks matnr atflv.
endform. " COLLECT_RATIO
Reward if useful..
Regards,
Anji -
How to get the Purchased item details in R12
Hello everyone, am using Oracle Application R12,
I need the following details for the all purchased item,
how to get the item_id,item_name,vendor_name,ordered_quantity,rec eived_quantity,
returned_quantity.
Thank you.
Regards,
Gurujothi.Hi Gurujothi,
pl.try the following SQL. it will give you complete details of purchasing.
SELECT A.SEGMENT1 PO_NO, B.LINE_NUM, C.SHIPMENT_NUM,
C.QUANTITY,C.QUANTITY_ACCEPTED,C.QUANTITY_BILLED,C.QUANTITY_CANCELLED,C.QUANTITY_RECEIVED,C.QUANTITY_REJECTED,D.QUANTITY QUANTITY_RETURNED,
B.ITEM_ID,E.DESCRIPTION,F.VENDOR_NAME
FROM PO_HEADERS_ALL A , PO_LINES_ALL B , PO_LINE_LOCATIONS_ALL C , RCV_TRANSACTIONS D, MTL_SYSTEM_ITEMS_B E , PO_VENDORS F
WHERE A.ORG_ID = &OU_NAME
AND A.PO_HEADER_ID = &PO_HEADER_ID
AND B.PO_HEADER_ID = A.PO_HEADER_ID
AND C.PO_LINE_ID = B.PO_LINE_ID
AND D.PO_LINE_LOCATION_ID (+) = C.LINE_LOCATION_ID
AND D.TRANSACTION_TYPE (+) ='RETURN TO VENDOR'
AND E.INVENTORY_ITEM_ID = B.ITEM_ID
AND E.ORGANIZATION_ID = C.SHIP_TO_ORGANIZATION_ID
AND F.VENDOR_ID=A.VENDOR_ID
regards
sanjay -
How to get the serial Numbers issued for an STO
Hi,
I created my own STO and mapped a serialised material for the same using transaction. I increased the stock by issuing serial numbers. The /SYCLO/MM_DOPURCHASEORDER_GET BAPI returns the PO header, item and longtext details. I want the serial numbers which are issued to the STO and the list of serial numbers for which the receipts has been done.
I want to know how to get the serial numbers which are issued to the STO throught the standard function module. I want only the issued serial numbers not the one for which the receipts has been done.
I tried using the standard BAPI, "BAPI_PO_GETDETAIL1" to get the serial number collection. But the FM is not returning the issued serial number as well as the list of serial numbers for which the receipts has been done. It is returning only the PO history in which the list of document number are present.
Thanks in Advance,
Mohan.Hi,
Using the transaction "MB1C" and movement type "561", I filled the required details such as Material Number, Quantity, Storage Location and Batch. After filling all these details, when I press enter, it will ask for me to enter the serial numbers equal to the quantity specified. I entered the serial numbers by selecting the available serial numbers for that particular material by pressing F4 help.
Please let me know if you need any more inputs in this regards.
Thanks,
Mohan.
Maybe you are looking for
-
Apple ID account was hacked; all details was changed.
I received an email from Apple stating my recent purchases. "Your Apple ID was just used to purchase Fat Face Booth from the App Store on a computer or device that had not previously been associated with that Apple ID." Now, I didn't purchase ANYTHI
-
Creative Suite 6 now asking for serial number after minor updates
I bought the full version of Creative Suite 6 on release. Just recently after installing some (but in typical Adobe fashion not all) updates, apps from the suite start up by saying that I am in a 30 day trial! I have to then press the license button
-
Can't watch Video's on internet
I need some help. I can't seem to watch video's from Youtube or places like that. I have extra memory installed so that's not the problem. I see on Youtube my E62 isn't a supported type of phone yet. Is there someone place else we can go to watch vid
-
R12 Existing Business Group with Global HR
Hi All, I need your help in following: We currently have Two Business Group: 1) US 2) ASIA & both of them have one GRE We wanted add more GRE into ASIA business group with Ledger. First part is only for HRMS and may be in future we can make use of ot
-
Hi all, I want to use batch at material level. i.e. for every material number batch should start from the same series. e.g. If I want to use batch for 5 materials say A,B,C,D,E. And I have given batch number range as 0000000001 to 9999999999, then wh