Need help on material price list
Hi,
I am developing one application on netveawer using JCO.my requirement is to display custmer,material and their prices to create quotation order for this i can get custmers from BAPI_CUSTEMER_GETLIST and i can get materials from BAPI_MATERIAL_GETLIST.but while creating a quotation we should know the material price depending on custmer and quantity so i have to get the material pricelist from r/3.please tell me BAPI name which will give material price.i have asked this question so many times but i did not get proper guidelines. plz help me to do this.
regards
Guru
Hello,
I am trying to use BAPI_SALESORDER_SIMULATE. It functions very well in
general and suffice most of my needs. The only issue with it is that
there is no place to input material price group i.e VBAP-KONDM.
Logically it should have been in ORDER_ITEMS_IN. Since some of my
pricing is driven by KONDM (materail price group), I am not able to use
this BAPI. Please let me know if you made any headway on this front.
Thanks,
Datta
Similar Messages
-
Need help with drop down list in parameters
Hi All,
I have the following data set:
DEPT1 DEPT2 DEPT3 DEPT4
Commissioner's Office Finance Accounting Accounts Payable
Commissioner's Office Finance Accounting Fiscal Analysis & Repo
Commissioner's Office Finance Accounting
Commissioner's Office Planning,Asset Mgt Asset Management Inventory & Tracking
Commissioner's Office Planning,Asset Mgt Asset Management Mobility & Congestion
Commissioner's Office Planning,Asset Mgt Asset Management Roadway Safety
Commissioner's Office Planning,Asset Mgt Asset Management
Commissioner's Office DesignProj Mgt & Tec Bridge Dsgn Insp Hyd
In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
ThanksHi
First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
Best wishes
Michael -
Hi All,
I have a query that does a lookup on inventory and returns useful info as onhand, committed, warehouse,
various price list data etc. It is very useful for our telephone sales guys as they can see all the information
they need in one quick search. There is a wildcard variable that searches both the ItemCode and ItemName
fields to return possible results.
I would like to add one further column to this query.. being the ETA (DocDueDate) of the most recent Open
AP purchase order that relates to the Item.. if any. I want to return the rest of the result even if there is no
AP Purchase Order open.
I have posted two queries below. The first is the original query that works well. It offers wildcard search
of the ItemCode and ItemName, but does not give me the ETA (DocDueDate) of any open AP Purchase
orders for the item (what I want).
The second query does give me everything thing I want returned, but only if I enter the exact ItemCode
into the variable field. I can no longer do the wildcard search that I also want. Some of our codes are simply
not practical to remember, and cannot be easily identified. this is why I need the wildcard search to look in
both the Item and Name column and return possible matches.
I have both queries below.
This is the working original query...
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed',
CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
This is the new query with the AP PO DocDueDate lookup included. (Wildcard searches dont work anymore)
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=01) As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=06) As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=04) As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode=05) As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT TOP 1 T0.[DocDueDate] FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.[ItemCode] = [%0] And T0.[DocStatus] ='O' ORDER BY T0.[DocDate] Asc) As 'ETA',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
As you can see in query 2, I used the same variable to attempt to lookup the DocDueDate from OPOR.
This only works if I enter the variable exactly as ItemCode. No longer wildcard search.
if anyone could offer any assistance it would be most appreciated.
Best regards,
JohnHi István,
Thanks! That works great.
The only additional thing I need is to return the DocNum of the Purchase order (DocNum from OPOR). I attempted to do this by adding T.[DocNum] to your suggested query as per below... however it returns error "Only one expression can be specified in the select list when the subquery is not introduced wit EXISTS"
SELECT
T0.[ItemCode],
T0.[ItemName],
CAST (T0.[OnHand] As INT) As ' Total On Hand',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='01') As INT) As 'Melb Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='06') As INT) As 'Demo Whse',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='04') As INT) As 'Bill Car Stock',
CAST ((SELECT OnHand from OITW where ItemCode=t0.ItemCode and WhsCode='05') As INT) As 'Brett Car Stock',
CAST (T0.[IsCommited] As INT) As 'Committed', CAST (T0.[OnOrder] As INT) As 'On Order',
(SELECT TOP 1 T.[DocNum], T.[DocDueDate] FROM OPOR T INNER JOIN POR1 Tt ON T.DocEntry = Tt.DocEntry
WHERE Tt.[ItemCode]=T0.ItemCode And T.[DocStatus] ='O' ORDER BY T.[DocDate] Asc) As 'ETA',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6) as 'RRP Inc GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=1) as 'RRP Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=2) as 'Comp Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=3) as 'Std Ex GST',
(SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=4) as 'Pro Ex GST',
T1.[ItmsGrpNam],
T2.[FirmName]
FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod
INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode
WHERE T0.[ItemCode] Like '%%[%0]%%' OR T0.[ItemName] Like '%%[%0]%%'
ORDER by T0.[ItemCode]
For Browse
Any ideas?
Many thanks,
John -
I need help with circular linked list
Hi,
I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
-> 9 -> 3 -> 7
empty false
9
empty false
3
-> 7
empty false
Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
Thanks.This is my code
/ A circular linked list class with a dummy tail
public class CLL{
CLLNode tail;
public CLL( ){
tail = new CLLNode(0,null); // node to be dummy tail
tail.next = tail;
public String toString( ){
// fill this in. It should print in a format like
// -> 3 -> 5 -> 7
if(tail==null)return "( )";
CLLNode temp = tail.next;
String retval = "-> ";
for(int i = 0; i < -999; i++)
do{
retval = (retval + temp.toString() + " ");
temp = temp.next;
}while(temp!=tail.next);
retval+= "";}
return retval;
public boolean isEmpty( ){
// fill in here
if(tail.next == null)
return true;
else{
return false;
// insert Token tok at end of list. Old dummy becomes last real node
// and new dummy created
public void addAtTail(int num){
// fill in here
if (tail == null)
tail.data = num;
else
CLLNode n = new CLLNode(num, null);
n.next = tail.next;
tail.next = n;
tail = n;
public void addAtHead(int num){
// fill in here
if(tail == null)
CLLNode l = new CLLNode(num, null);
l.next = tail;
tail =l;
if(tail!=null)
CLLNode l = new CLLNode(num, null);
tail.next = l;
l.next = tail;
tail = l;
public int removeHead( ){
// fill in here
int num;
if(tail.next!= null)
tail = tail.next.next;
//removeHead(tail.next);
tail.next.next = tail.next;
return tail.next.data;
public static void main(String args[ ]){
CLL cll = new CLL ( );
cll.addAtTail(9);
cll.addAtTail(3);
cll.addAtTail(7);
System.out.println(cll);
System.out.println("empty " + cll.isEmpty( ));
System.out.println(cll.removeHead( ));
System.out.println("empty " + cll.isEmpty( ));
System.out.println(cll.removeHead( ));
System.out.println(cll);
System.out.println("empty " + cll.isEmpty( ));
class CLLNode{
int data;
CLLNode next;
public CLLNode(int dta, CLLNode nxt){
data = dta;
next = nxt;
}I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
for(int i = 0; i < -999; i++)That says:
1) Initialize i to 0
2) while i is less than -999, do something
Since it is initially 0, it will never enter that loop body. -
Need help in interactive alv list
hi,
i need document and simple Example prog for interactive alv list.If anybody have it kindly help me..
thanks in advance,
Kavitha.hi,
Jus copy and paste the following code in SE38.
*& This is an Interactive ALV report, where on line slection we can see
*& the secondry list
REPORT ZZ_22038_22098_002 NO STANDARD PAGE HEADING LINE-SIZE 650
MESSAGE-ID ZZ_9838 .
TYPE-POOLS: SLIS.
*type declaration for values from ekko
TYPES: BEGIN OF I_EKKO,
EBELN LIKE EKKO-EBELN,
AEDAT LIKE EKKO-AEDAT,
BUKRS LIKE EKKO-BUKRS,
BSART LIKE EKKO-BSART,
LIFNR LIKE EKKO-LIFNR,
END OF I_EKKO.
DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,
WA_EKKO TYPE I_EKKO.
*type declaration for values from ekpo
TYPES: BEGIN OF I_EKPO,
EBELN LIKE EKPO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
MENGE LIKE EKPO-MENGE,
MEINS LIKE EKPO-MEINS,
NETPR LIKE EKPO-NETPR,
END OF I_EKPO.
DATA: IT_EKPO TYPE STANDARD TABLE OF I_EKPO INITIAL SIZE 0,
WA_EKPO TYPE I_EKPO .
*variable for Report ID
DATA: V_REPID LIKE SY-REPID .
*declaration for fieldcatalog
DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA: IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
declaration for events table where user comand or set PF status will
be defined
DATA: V_EVENTS TYPE SLIS_T_EVENT,
WA_EVENT TYPE SLIS_ALV_EVENT.
declartion for layout
DATA: ALV_LAYOUT TYPE SLIS_LAYOUT_ALV.
declaration for variant(type of display we want)
DATA: I_VARIANT TYPE DISVARIANT,
I_VARIANT1 TYPE DISVARIANT,
I_SAVE(1) TYPE C.
*PARAMETERS : p_var TYPE disvariant-variant.
*Title displayed when the alv list is displayed
DATA: I_TITLE_EKKO TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED'.
DATA: I_TITLE_EKPO TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED'.
INITIALIZATION.
V_REPID = SY-REPID.
PERFORM BUILD_FIELDCATLOG.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
START-OF-SELECTION.
PERFORM DATA_RETRIEVAL.
PERFORM BUILD_LISTHEADER USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_REPORT.
*& Form BUILD_FIELDCATLOG
Fieldcatalog has all the field details from ekko
FORM BUILD_FIELDCATLOG.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'AEDAT'.
WA_FIELDCAT-SELTEXT_M = 'DATE.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'LIFNR'.
WA_FIELDCAT-NO_OUT = 'X'.
WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG
*& Form EVENT_CALL
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "EVENT_CALL
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form data_retrieval
retreiving values from the database table ekko
FORM DATA_RETRIEVAL.
SELECT EBELN AEDAT BUKRS BSART LIFNR FROM EKKO INTO TABLE IT_EKKO.
ENDFORM. "data_retrieval
*& Form bUild_listheader
text
-->I_LISTHEADEtext
FORM BUILD_LISTHEADER USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA HLINE TYPE SLIS_LISTHEADER.
HLINE-INFO = 'this is my first alv pgm'.
HLINE-TYP = 'H'.
ENDFORM. "build_listheader
*& Form display_alv_report
text
FORM DISPLAY_ALV_REPORT.
V_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = I_TITLE_EKKO
IT_FIELDCAT = I_FIELDCAT[]
I_SAVE = 'A'
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKKO
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "display_alv_report
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
PERFORM BUILD_FIELDCATLOG_EKPO.
PERFORM EVENT_CALL_EKPO.
PERFORM POPULATE_EVENT_EKPO.
PERFORM DATA_RETRIEVAL_EKPO.
PERFORM BUILD_LISTHEADER_EKPO USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_EKPO.
ENDCASE.
ENDFORM. "user_command
*& Form BUILD_FIELDCATLOG_EKPO
text
FORM BUILD_FIELDCATLOG_EKPO.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELP'.
WA_FIELDCAT-SELTEXT_M = 'LINE NO'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-SELTEXT_M = 'MATERIAL NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MENGE'.
WA_FIELDCAT-SELTEXT_M = 'QUANTITY'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-SELTEXT_M = 'UOM'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'NETPR'.
WA_FIELDCAT-SELTEXT_M = 'PRICE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG_EKPO
*& Form event_call_ekpo
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL_EKPO.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "event_call_ekpo
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT_EKPO.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form TOP_OF_PAGE
text
FORM F_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
*retreiving values from the database table ekko
FORM DATA_RETRIEVAL_EKPO.
SELECT EBELN EBELP MATNR MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO.
ENDFORM.
FORM BUILD_LISTHEADER_EKPO USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA: HLINE1 TYPE SLIS_LISTHEADER.
HLINE1-TYP = 'H'.
HLINE1-INFO = 'CHECKING PGM'.
ENDFORM.
FORM DISPLAY_ALV_EKPO.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = I_TITLE_EKPO
IT_FIELDCAT = I_FIELDCAT[]
I_SAVE = 'A'
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKPO
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
Another program..............
TABLES : LFA1,KNA1.
DATA ITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE.
DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE T.
SELECT-OPTIONS LIFNR FOR LFA1-LIFNR.
SELECTION-SCREEN END OF BLOCK B.
INITIALIZATION .
T = 'VENDOR DETAILS'.
AT SELECTION-SCREEN OUTPUT.
LIFNR-LOW = '1000'.
LIFNR-HIGH = '4000'.
APPEND LIFNR.
START-OF-SELECTION.
SELECT * FROM LFA1 INTO ITAB WHERE LIFNR IN LIFNR.
APPEND ITAB.
ENDSELECT.
LOOP AT ITAB.
FORMAT COLOR 6 INVERSE ON.
WRITE : /2 SY-VLINE,4 ITAB-LAND1,7 SY-VLINE,9 ITAB-NAME1,44 SY-VLINE,46
ITAB-ORT01,60 SY-VLINE.
HIDE ITAB-ORT01.
ENDLOOP.
FORMAT COLOR OFF.
TOP-OF-PAGE.
WRITE : / 'VENDOR DETAILS'.
ULINE AT /(70).
SKIP.
END-OF-PAGE.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
SELECT * FROM KNA1 INTO TABLE ITAB1 WHERE ORT01 = ITAB-ORT01.
LOOP AT ITAB1.
FORMAT COLOR 6 INVERSE ON.
WRITE : /2 SY-VLINE,4 ITAB1-LAND1,7 SY-VLINE,9 ITAB1-NAME1,44 SY-VLINE,
46 ITAB1-ORT01,60 SY-VLINE.
FORMAT COLOR OFF.
ENDLOOP.
ENDCASE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
WRITE : / 'VENDOR DETAILS'.
ULINE AT /(70).
SKIP.
FORMAT COLOR 6 INVERSE ON.
WRITE : /2 SY-VLINE,4 'LAND',7 SY-VLINE,9 'NAME',44 SY-VLINE,46
'CITY',60 SY-VLINE.
FORMAT COLOR OFF.
WHEN 2.
WRITE : / 'ANOTHER VENDOR DETAILS'.
FORMAT COLOR 6 INVERSE ON.
WRITE : /2 SY-VLINE,4 'LAND',7 SY-VLINE,9 'NAME',44 SY-VLINE,46
'CITY',60 SY-VLINE.
FORMAT COLOR OFF.
endcase.
END-OF-SELECTION.
feel free to ask your clarifications.
Senthil kumar -
Vendor material price list???
hi all,
i created condition record (mek1) according to vendor and material. now i want to list all of them. is there a standart transaction for this? if no, how can i get a list like this:
vedor name || material name || price
.....x..............................a.........$10
.....y..............................a.........$11
.....y..............................b.........$15
Edited by: sd sd on Jan 7, 2008 12:38 PM
Edited by: sd sd on Jan 7, 2008 12:38 PMThe quickest solution for this is to download the list to Excel. Get the conditions from KONH and KONP (the value is in this table) and lookup in Excel.
Otherwise you need an ABAP report.
Lakshman -
Need help displaying images with List component for Flash CS4 (ActionScript 3.0)
Hi folks:
I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
function ShowSelectedItem(event:Event):void {
ListText.text=MyList.selectedItem.data;
...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
I appreciate your help (in advance)!!
CindyHi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
Appreciate your patience and any help you can offer!
Cindy -
Need Help Regarding Material Characteristics Validation in MM02
Hello Experts ,
Here I am stuck with one requirement . I need to validate the combination of characteristics entered in MM02 transaction.
For this reason I have Implemented method MODIFY_INPUT of BADI CACL_VALUE_CHANGE . But this method captured characteristics one by one, not all at once. but as per my requirement I need all the characteristics at once to verify the combination.
How can I check and validate all the characteristics before the material is saved ?
Your help would be appreciated.Hi
Check the material master records of the materials M1 and M2 for the conversion ratios maintained between the base UOM and the case. Guess, the 0.3 case of the material M1 might be having units that are equal to one case of material 2.
The standard functionality is not related to the quantities. It is only to substitute the materials.
Thanks,
Ravi -
I need help with drop down lists
I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions. The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list. In other words, I have items that are several sentences. I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines. Unfortunately, that is not an ideal solution for me. I just want the drop down list to select a single phrase. Here is an example of what I want to be able to select in the drop down.
The water heater spilled flue gases in excess of 5 minutes under worst case conditions. The combusiton testing was completed with in 30 days of the invoice submittal.
The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
The water heater spilled flue gases in excess of 5 minutes
under worst case conditions. The combusiton testing was
completed with in 30 days of the invoice submittal.
Any help is greatly appriciated.Thanks for responding.
I have three items that are very similar in length and text for each drop down. There are 9 drop downs right now. I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible. Associated with the drop down already is a check box. When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc). That score then tallys for a total with all the other scores in another text box. Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting. -
Need help returning processor task list.
I'm new to KEXT/Kernel programming and Xcode, so I'm sure these are fairly beginner questions, but I'm having some trouble. I'm trying to return a list of processor tasks, so I can test different things such as process id's, file descriptors, etc.
I'm not sure what functions would be useful for me. Is there some way that I would be able to return a list of all running processor tasks and/or their information? Would someone be able to point me in the right direction?Yeah, usually it helps me out quite a bit, but I've been googling for over a week, and I get a whole lot of nothing. Everything that I've actually been able to find uses outdated headers and functions that don't exist anymore. Maybe my google skills just aren't very good for this area, since I *am* new to this after all...
I figured it would be much more time-efficient to just ask the dev community. Any insight would be appreciated. -
Need Help to create access-list based on traffic logs
Hello,
We didn't have any Firewall in our network, we recently implemented Cisco ASA (Context) firewall in our network with any any permit rule .
Our intension is to collect the source, destination, protocol & ports based on the traffic logs and then implement the access-lists , once we confirmed all the rule will added to the firewall we want remove any any permit rule .
I need some suggestion regarding this how we can proceed on this plan, any suggestions appreciated
RajkumarHi Rajkumar,
That is not the ideal way of doing... this will lead to a provisioning an unauthorized person to access for something he is not authorized to.
How many users do you have in your network? Try to categorize users based on their present authorization level of access.... say Team A users need to access everything... then you need to group them and provide full access..... Team B users need to be provided with only restricted access.... then group them and provide restricted access....
If your case is something like this.... all users need unrestricted intranet access and certain users alone requires internet acceess... then you can define rules accordingly....
Regards
Karthik
Regards
Karthik -
Optimizing MATERIAL Price List
Hello All,
We have Material Database of more than 2 000 000 records. Creating a price file is very time consuming task.
Up to now We use FM "PRICING" to determine the correct price according to relevant customer. I can optimize Material Data reading whit mass reading MARA. But "PRICING" itself is done is by single material.
So the question is do you have any clue how can I make pricing on more than one material effectively. I've created some parallelisation of the process but the real slow down is because the FM Pricing is created for single material only.
Regards Ognian KalaydjievHello Ognian,
what do you mean with rewriting the pricing? I don't think it's possible. SAP pricing is quite complex and it considers many different things.
If you really want to have DYNAMIC prices in your price catalog, you'll have to live with the current solution.
Some questions from the business point of view: which customer really wants to see up-to-date prices for 2.000.000 materials?
Isn't it too much? And would it be possible to update prices on a less regular basis storing the results in some temporary tables?
Regards,
Yuri -
Need Help: Use Combox Box + List Builder + Column chart!
Hi experts,
I'm a novice in Xcelsius but i met some problems in encountering it, therefore, i would like to seek some assistance from the experts, Thanks!
These are my data for F1 race. And I have 10 years data and below is an example of my data. I would be using 2 years data as an example first.
Year Country Driver Point Laps Time/Retired No.of Driver Position
2009 Australia Jenson Button 10 58 1:34:15.784 22 1
2009 Australia Rubens Barrichello 8 58 +0.8s 23 2
2009 Australia Jarno Trulli 6 58 +1.6s 9 3
2009 Australia Timo Glock 5 58 +4.4s 10 4
2009 Australia Fernando Alonso 4 58 +4.8s 7 5
2009 Malaysia Jenson Button 5 31 55:30.622 22 1
2009 Malaysia Nick Heidfeld 4 31 +22.7s 6 2
2009 Malaysia Timo Glock 3 31 +23.5s 10 3
2009 Malaysia Jarno Trulli 2.5 31 +46.1s 9 4
2009 Malaysia Rubens Barrichello 2 31 +47.3s 23 5
2009 China Sebastian Vettel 10 56 1:57:43.485 15 1
2009 China Mark Webber 8 56 +10.9s 14 2
2009 China Jenson Button 6 56 +44.9s 22 3
2009 China Rubens Barrichello 5 56 +63.7s 23 4
2009 China Heikki Kovalainen 4 56 +65.1s 2 5
2009 Bahrain Jenson Button 10 57 1:31:48.182 22 1
2009 Bahrain Sebastian Vettel 8 57 +7.1s 15 2
2009 Bahrain Jarno Trulli 6 57 +9.1s 9 3
2009 Bahrain Lewis Hamilton 5 57 +22.0s 1 4
2009 Bahrain Rubens Barrichello 4 57 +37.7s 23 5
2009 Spain Jenson Button 10 66 1:37:19.202 22 1
2009 Spain Rubens Barrichello 8 66 +13.0s 23 2
2009 Spain Mark Webber 6 66 +13.9s 14 3
2009 Spain Sebastian Vettel 5 66 +18.9s 15 4
2009 Spain Fernando Alonso 4 66 +43.1s 7 5
2009 Monaco Jenson Button 10 78 1:40:44.282 22 1
2009 Monaco Rubens Barrichello 8 78 +7.6s 23 2
2009 Monaco Kimi Raikkonen 6 78 +13.4s 4 3
2009 Monaco Felipe Massa 5 78 +15.1s 3 4
2009 Monaco Mark Webber 4 78 +15.7s 14 5
2009 Turkey Jenson Button 10 58 1:26:24:848 22 1
2009 Turkey Mark Webber 8 58 +6.7s 14 2
2009 Turkey Sebastian Vettel 6 58 +7.4s 15 3
2009 Turkey Jarno Trulli 5 58 +27.8s 9 4
2009 Turkey Nico Rosberg 4 58 +31.5s 16 5
2010 Bahrain Fernando Alonso 25 49 1:39:20.396 8 1
2010 Bahrain Felipe Massa 18 49 +16.0s 7 2
2010 Bahrain Lewis Hamilton 15 49 +23.1s 2 3
2010 Bahrain Sebastian Vettel 12 49 +38.7s 5 4
2010 Bahrain Nico Rosberg 10 49 +40.2s 4 5
2010 Australia Jenson Button 25 58 1:33:36.531 1 1
2010 Australia Robert Kubica 18 58 +12.0s 11 2
2010 Australia Felipe Massa 15 58 +14.4s 7 3
2010 Australia Fernando Alonso 12 58 +16.3s 8 4
2010 Australia Nico Rosberg 10 58 +16.6s 4 5
2010 Malaysia Sebastian Vettel 25 56 1:33:48.412 5 1
2010 Malaysia Mark Webber 18 56 +4.8s 6 2
2010 Malaysia Nico Rosberg 15 56 +13.5s 4 3
2010 Malaysia Robert Kubica 12 56 +18.5s 11 4
2010 Malaysia Adrian Sutil 10 56 +21.0s 14 5
2010 China Jenson Button 25 56 1:46:42.163 1 1
2010 China Lewis Hamilton 18 56 +1.5s 2 2
2010 China Nico Rosberg 15 56 +9.4s 4 3
2010 China Fernando Alonso 12 56 +11.8s 8 4
2010 China Robert Kubica 10 56 +22.2s 11 5
2010 Spain Mark Webber 25 66 1:35:44.101 6 1
2010 Spain Fernando Alonso 18 66 +24.0s 8 2
2010 Spain Sebastian Vettel 15 66 +51.3s 5 3
2010 Spain Michael Schumacher 12 66 +62.1s 3 4
2010 Spain Jenson Button 10 66 +63.7s 1 5
2010 Monaco Mark Webber 25 78 1:50:13.355 6 1
2010 Monaco Sebastian Vettel 18 78 +0.4s 5 2
2010 Monaco Robert Kubica 15 78 +1.6s 11 3
2010 Monaco Felipe Massa 12 78 +2.6s 7 4
2010 Monaco Lewis Hamilton 10 78 +4.3s 2 5
2010 Turkey Lewis Hamilton 25 58 1:28:47.620 2 1
2010 Turkey Jenson Button 18 58 +2.6s 1 2
2010 Turkey Mark Webber 15 58 +24.2s 6 3
2010 Turkey Michael Schumacher 12 58 +31.1s 3 4
2010 Turkey Nico Rosberg 10 58 +32.2s 4 5
2010 Canada Lewis Hamilton 25 70 1:33:53.456 2 1
2010 Canada Jenson Button 18 70 +2.2s 1 2
2010 Canada Fernando Alonso 15 70 +9.2s 8 3
2010 Canada Sebastian Vettel 12 70 +37.8s 5 4
2010 Canada Mark Webber 10 70 +39.2s 6 5
2010 Europe Sebastian Vettel 25 57 1:40:29.571 5 1
2010 Europe Lewis Hamilton 18 57 +5.0s 2 2
2010 Europe Jenson Button 15 57 +12.6s 1 3
2010 Europe Rubens Barrichello 12 57 +25.6s 9 4
2010 Europe Robert Kubica 10 57 +27.1s 11 5
Basically, my requirement is to have year 2009 and 2011 in my component "Combo Box" and when user choose Year 2010, the source data under the component "List builder" shows the FILTERED countries (since i have duplicated countries here) under year 2010 only.
So user can choose the correct countries and view the details of the countries that he/she choose for year 2010 at the column chart.
Pls feel free to clear your doubts if any.
Your assistance will be appreciated!!
Thanks alot!
Best regards,
htohHi Sanjay,
Appreciate your quick response.
However this is what i've set for my combo box and list builder:
Combo box:
Insertion Type: Filtered rows
Source data: Column A & B (Year,Country)
Destination: Some empty cells
List builder:
Insertion type: Row (I can't find Filtered rows as an option)
Source data: From the empty cells i mentioned above ***
Destination: Another Empty cells.
Is there anything wrong with my settings? Pls help, thanks a lot!
Best regards,
htoh -
Need help using drop down list to calculate fields
I am trying to use a drop down list to control how my field calculate. I have events packages that have multiple tiers. For example, Package One has (2) Tiers. Tier 1 costs $16 & Tier 2 costs $20. So based on the number of guests i want to be able to select the tier and it multiply and give me the total cost for the package. Ex: 2 Guests for Tier 1 = $32. Here is the code i have so far, it is placed under the change handler of the drop down list:
var costPerGuest = 16;
var tier = event.newText;
if (tier == "Tier 1"){
costPerGuest = 16;}
else if (tier == "Tier 2"){
costPerGuest = 20;}
Total.rawValue = String(Guests.rawValue * costPerGuest)
//Total.rawValue = DropDownList1.rawValue;
What happens is when I run this it will not change unless the number of guests will change. So for the example above, if i switch it to Tier 2 after selecting Tier 1, it will not change my Total from $32 to $40.
Any help would be greatly appreciated.Hi,
I think ,you can use the event of EXIT event of dropdown list.
var costPerGuest = 0;
if (this.rawValue == "Tier1")
costPerGuest = 16;
else if (this.rawValue == "Tier2")
costPerGuest = 20;
else
total.rawValue = Guests.rawValue * costPerGuest;
Hope this helps,
S,Candy. -
Need Help with hijacked contact lists
Hello all, I am new here, so please forgive me if I'm posting to the wrong board...didn't really see anything more appropriate. I have a problem with a hijacked contact list:
I have three email accounts being forwarded to my BB Curve 8530. Two from Yahoo and one from AOL. In each of these accounts (when accessed directly from yahoo.com or aol.com) have different contacts. Not all of these contacts are in my BB contact list. The other day, one of my yahoo accounts was somehow hacked, and resulted in one of those spam "drugs for sale" emails being sent to people in my contact list. Well, when I investigated, I discovered that actually, someone who is not even in that particular accounts contact list, but another account. How is this possible?
If that is confusing, here's a better summary (using fake email addresses):
[email protected] sent a bogus email message to [email protected]
but, [email protected] is not in [email protected]'s address book. it is in [email protected] [email protected] is not listed in my BB device's contact list.
The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
How was this able to happen? what can I do to stop it?
thanks!
LeeThis is the Welcome and Introductions section, so Greetings, and welcome!
The 8500 model section would be perfect for your questions,so we'll get it move there.
Meanwhile,
leevalon wrote:
The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
Sorry, not possible... UNLESS you gave your BlackBerry to someone to use for a while, during which time they spammed all your contacts. Did you?
Do you have a Security password set on the device? If you are afraid of the above happening, setting the password will just that impossible.
But it wasn't hacked.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Maybe you are looking for
-
No data in report after auto linking tables
Hi All, I m new to Crystal Reports 2008 and I have a report that takes data from multiple database tables. The problem is that the report is not returning any data. On the Links tab in Database Expert, I checked that the tables are linked. I removed
-
I recently purchased iCloud storage for my iPad Air so that I can store my photos in the cloud. I don't know how to do this. I want to be able to retrieve them as well.
-
Trouble accessing dynamic XML from API with a CFC
Please see my example at http://67.199.18.39/test.html and view source (to big to post here). I am returning XML from a dynamic call to an API through a ColdFusion CFC. Search for something generic like Dog. Click Go. I display the XML for you to vie
-
How to display Oracle error in web page
Hi , I am developing an application in Weblogic 10.2 and java . The data is fetched in oracle and i storre it in vector and display the same in the webpage .Whenever an oracle error or exception occurs , i need that ORA message to be displayed on the
-
We have a MacBook Pro 17" laptop with an Intel Core 2 Duo Processor running at 2.33 GHz speed. We have 2 GB of RAM and 77 GB of hard drive space. From what we know from your website, this should work, but when we click on the Firefox icon that we pla