How to pass line item values in the table paramer of FM
Hi all,
When i will give the import of the FM as VBELN"sales order number.
I want to display all the line items for "PO Quantity in the out put of the FM.
For this i thnk i have to pass the line item values in the table parameter of the FM.
Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
Please give a example.
Thanks
Sub pLoopThroughPivotFields()
Dim oItem As Excel.PivotItem
Dim oField As Excel.PivotField
Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
For Each oItem In oField.PivotItems
oField.CurrentPage = oItem.Name
'Put your copy code here
DoEvents
Next oItem
End Sub
Felipe Costa Gualberto - http://www.ambienteoffice.com.br
Similar Messages
-
How to pass apex item value into custom xml for chart or guage?
Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
Which was not answered.
Roel - Thanks. Its working - but in a semi quotes in the custom XML
<pointers>
<pointer value= '&P5_RUNNING_TOTAL.'
<label enabled="true">
<position placement_mode="ByPoint" x="50" y="15" />
<format>{%Value}{numDecimals:1}</format>
<background enabled="false" />
</label>
</pointer>
</pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
(Re: AnyChart - set Dial axis intervals dynamically?
Edited by: P.Ranish on Dec 13, 2012 6:23 AMP.Ranish wrote:
Is there any update for this question ???
Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
Roel wrote:
Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX -
How to pass Application Item value in Javascript function.
Hi,
I have the following javascript in the HTML Form Element Attributes properties
I am on Page1 and passing P1_DEPT_NO page item value. This is working perferctly fine and I am able to get the exact value of the page item
onchange="javascript:function1($x('P1_DEPT_NO').value);"I am on Page1 and passing Application Item G_DEPT_NO value.
The problem here is, I am not getting the Application item value inside the javascript function.
I tried using alert(); and it's giving me value as undefined
onchange="javascript:function1($x('G_DEPT_NO').value);"Just want to know, how to pass the Application Item value in Javascript.
Thanks,
DeepakDeepak,
I am not an expert at Javascript, but the suggestin I made was because javascript is a case-sensitive language.. and therefore onChange is not the same as onchange.
Not quite sure if that is causing the problem.
Application items are not associated with a page and therefore have no user interface properties.
Therefore, as mentioned in another post, the rendering would not work for application items.
If it is for a single item, used only in this page, you could create a hidden page item and use it fo your purpose
If you still want to look at application items and AJAX, This page contains examples of using AJAX to solve problems like the one you mentioned.
http://www.oracle.com/technology/obe/hol08/apexweb20/ajax_otn.htm#t1b
Thanks,
Rajesh. -
Order creation logic how to pass line items
experts
i have the following data in iternal table itab.
po number ,customer number, matnr,quantity ,order date.
1212838383 7494749 8383938833 20 20032009
1212838383 7494749 8383938832 10 20032009
1212838382 7494749 8383938833 20 20032009
1212838384 7494745 8383938823 30 22032009
1212838384 7494745 8584858588 05 22032009
now i want to populate this data into idocs orders segement .
for all po the customer will be the same and i need to create one order for that.
in the above data first 2 lines have same po so i need to create order with 2 line items.
sales org,division,distribution channnel,ordertype will be same for all the records.
loop at itab into workarea.
at new po. "for same po, same header data so i am using AT NEW
edi_dd40-segnum = 1.
edi_dd40-segnam = 'E2EDK14 '.
edi_dd40-mandt = sy-mandt.
edi_dd40-psgnum = psgnum.
e2edk14-qualf = '008' .
e2edk14-orgid = 'NN21.
MOVE e2edk14 TO edi_dd40-sdata.
append edi_dd40 to itab_output.
edi_dd40-segnum = 1.
edi_dd40-segnam = 'E2EDK14 '.
edi_dd40-mandt = sy-mandt.
edi_dd40-psgnum = psgnum.
e2edk14-qualf = '006' .
e2edk14-orgid = 'ni.
MOVE e2edk14 TO edi_dd40-sdata.
append edi_dd40 to itab_output.
endat.
now the item data comes , so i need to create items with same po.and afetr this i need to submit this data to fm before another diffent po comes.below same customer and po so need to consider as one sales order and submit to fm.
item1 1212838383 7494749 8383938833 20 20032009
item2 1212838383 7494749 8383938833 20 20032009
call function 'MAST_IDOC_DISTRIBUTE'
My concern is how to tell to the system for the same po create the order with multipl line items , do i need to use to AT NEW
or some other commands above?
endloop.i have used at end of po. but my matnr is becoming *************. no date is showing in the internal table while populating the matnr to segments.
Loop at itab into workarea.
at end of po.
here i am filling the matnr to the segment. here workarea-matnr is showing *********** only stars,
endat.
endloop.
If i remove the at end of po , then the matnr is comming .
Please sugggest me what to do.
my fields sequence are like this.
kunnr " customer
bstnk "po
matnr " material
currency
kwmeng "order quantity
podate
orderdate
so how to handle this please suggest. -
Master-Detail Form (How to pass an item value in Master to Detail field
I have a Master-Detail form. When adding a new record in the Detail section, I expect the primary key in the master record will copy down to the detail record. But, it is not doing that. Does anyone know how to pass the master primary key down to the detail record field.
By the way, query works fine. It knows the master-detail relationship. It is just when creating a new detail record, the key not pass down from the master record.
thanks - Pattyhi,you can do it by:in detail form's foreign key field,set it's default value as master primary key ,example master page p1,primary key as p1_master,detail form p2,foreign key p2_foreign, set p2_foreign key 's default value &p1_master.
Message was edited by:
lixinzhu -
SQL Query: How to pass list of values to the IN operator
Hi,
I'm trying to pass a list of values to the WHERE <a> IN <list>
I dont want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL?
Please let me know.
My program:
DECLARE
list_of_ids := '10, 20, 30';
SELECT MAX(sal) INTO max_sal FROM employee WHERE emp_id IN (list_of_ids);
END;
Thanks in Advance,
NikoYou do not want to pass a comma separated list. You want to pass a collection. So
CREATE TYPE num_tbl
AS
TABLE OF NUMBER;
DECLARE
l_list_of_ids num_tbl := num_tbl( 10, 20, 30 );
BEGIN
SELECT max(sal)
INTO max_sal
FROM employee
WHERE emp_id IN (SELECT * FROM TABLE( l_list_of_ids ));
END;
/Justin -
How to pass Temp variable value instead of Table name in From clause.
Hi,
I have an requirement to pass the Temperorary variable value instead of Table name in FROM Clause in SQL.
But I am strugglint to pass this variable value.
E.g., a Varchar2(5) := 'aa';
Select * from a;
Here I come to mention a - 'aa'. But the SQL looks for 'a' as Table. But its should look into 'aa' as Table name.
Kindly guide me.
Thanks.SQL> declare
a varchar2 (5) := 'emp';
v varchar2 (100);
cur sys_refcursor;
begin
open cur for 'Select ename from ' || a;
fetch cur into v;
while cur%found
loop
dbms_output.put_line (v);
fetch cur into v;
end loop;
close cur;
end;
JAMES
SCOTT
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
KING
TURNER
ADAMS
FORD
MILLER
PL/SQL procedure successfully completed. -
How to pass multiple selected values of a table to RFC
Hi all,
My scenerio is that user selects multiple rows and click a button. i want to pass a unique id of the row to rfc.
means there are userid is unique in the table.
i want to paas the userids of all the selected rows to rfc.
Can any one help me to implement that??
regards
AnoopHi
In the context view the properties of the model node for which you have to pass the table data.
In the properties you will find a property called Structure from where you can get the structure name..in my example scenario the structre name is
Zdp_Str_Shopping_Cart
After adding all the datas to the model node, finally add that instance to the root node....
You want to pass only the selected data in the table right, for that refer the looping concept suggested by of Ayyapparaj KV
Zdp_Str_Shopping_Cart shoppingCart;
for(int i=0;i<wdContext.nodeChnIt_Shopping_Cart().size();i++)
shoppingCart = new Zdp_Str_Shopping_Cart();
shoppingCart.setEquipment_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getEquipment_No());
shoppingCart.setIbase(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getIbase());
shoppingCart.setKbetr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getKbetr());
shoppingCart.setMaktx(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMaktx());
shoppingCart.setMatnr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMatnr());
shoppingCart.setQuantity(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getQuantity());
shoppingCart.setSerial_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getSerial_No());
shoppingCart.setUnit(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit());
shoppingCart.setUnit_Of_Wt(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit_Of_Wt());
shoppingCart.setWaers(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWaers());
shoppingCart.setWeight(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWeight());
createProductOrder.addIt_Shopping_Cart(shoppingCart);
wdContext.nodeZdp_Bapi_Create_Product_Order_Input().bind(createProductOrder);
Let me know whether you got an idea and your problem get solved......
Regards
Chandran S -
How to compare text box value with the table data??
Hello ALL,
I created one stored procedure in DB,it is as follows:-
CREATE or replace PROCEDURE chkUser
u in varchar2,
p in varchar2,
ap out varchar2
is
begin
select count(*) into ap from tbuser where loginid = u and password = p;
end;
And at the front end I have designed a form with 2 text boxes, now my question is I wanna compare these text box values(which user enters) with the data of the table....??? something like control (may be I am not sure)..... ???
If anybody can help me out with this issue...... help will be appreciated
Thank you.
regards,
Kumarhi Elise,
I'm always getting the Error Message as "Invalid Creditianls"... let me tell you the whole scenario with sql synatx.
I have created tables as:-
CREATE TABLE "TBUSER"
( "LOGINID" VARCHAR2(30) NOT NULL ENABLE,
"PASSWORD" VARCHAR2(30),
CONSTRAINT "TBUSER_PK" PRIMARY KEY ("LOGINID") ENABLE
than I created the Procedure on tbuser, it is as:-
create or replace PROCEDURE logincheck
u in varchar2,
p in varchar2,
ap out varchar2
is
begin
select count(*) into ap from tbuser where loginid = u and password = p;
end;
now at the front end side I have created one form with 2 text boxes (P8_USERNAME & P8_PASSWORD) and 2 buttons (Cancel and Submit)
as per you told me in the above post, I have created 'Validation' procedure with Type as 'Exists' and expression(into Validation Expression1)as:-
select 1 from tbuser
where loginid = :P8_USERNAME
and password = :P8_PASSWORD;
and
kept an error message as 'Invalid credentials'.....
but I don't know what's going wrong..... I do have few data into the table, and when I am entering the same data(with case sensitive) I am getting the Error message, rather than when the credentials are perfect user should be allowed to enter into the current page(where I have created this form and validation procedure)....
any idea what's going worng and where...????
thxs.... appreciated..
regards,
Kumar -
How to retrieve line Item values from an object using groovy
def RevenueObject = nvl(ChildRevenue,0);
println('revenueItems==='+revenueItems.size());
while(RevenueObject.hasNext())
def revenueLine = RevenueObject.next();
revenueLine.setAttribute('Test_c', 'Hello');
} Groovy Scripting
Error : Getting null value for Revenue object
Exception in expression "OpportunityEO" trigger "getRevenueItems" : groovy.lang.MissingMethodException : No signature of method: oracle.jbo.server.ViewRowSetIteratorImpl.size() is applicable for argument types: () values: [] Possible solutions: is(java.lang.Object), find(), use([Ljava.lang.Object;), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
at "OpportunityEO" trigger "getRevenueItems" line 7
No signature of method: oracle.jbo.server.ViewRowSetIteratorImpl.size() is applicable for argument types: () values: [] Possible solutions: is(java.lang.Object), find(), use([Ljava.lang.Object;), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)Depending on the message the line number might be in one of the fields:
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
Although if the message simply is not meant to include the line number, it won't be there. That's the way it is. If there is a user exit available, you may add your custom messages with the line number. In some user exits (in sales order for sure) there is a special variable (flag), which is set when the BAPI runs the transaction. -
How to pass wild card '%' value from the parameter to the query
Hello everyone,
I have following 2 problems
1) I was trying to do some thing like below
select * from emp
where ename like 'J%'
for this i have used the following code
select * from emp
where ename like :P_ENAME
and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
user should be able to enter
a) JASON, SMITH, JOHN OR b) J%
I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
Can anyone please help me with these things?????
Thanks in advance!!
RaghuHi Raghu,
I guess you are in older version, You have to get into latest version to use %, it should work well
you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy. -
How to validate the line item values in OFR - quantity , unit price and UOM
Hi All,
Is there any possibility to validate the line items like quantity, unit price and UOM against the DB and stops those invoices at verifier (1 batch =10 invoices) level if yes could you please let me know the process how to proceed further.
due to this some the invoices are coming to OFR is with incorrect quantity, UOM and unit price different from PO lines information like quantity , UOM and unit price and those invoices are not validating from the DB and these are processed to EBS and it's effecting the GL and reporting.
Regards,
AnilHi ,
I did not get the exact requirement.Let me bit:
In standard AP project lines validation will try to compare the quantity , unit price and UOM of line against the database for match which actually performed on export.
So even if match fails batch will be exported.Now if you want to correct it before EBS,i think you can do it in the business process easily that you are consuming whether BPEL/BPM process.
We have done this in several projects
=========================
But If you want that to be done from OFR side i think we need to code UserExitPONumberValidate event to compare the line items values against database.I need to test this also. -
How to get line item net price and net value?
I have using "BAPI_SALESORDER_SIMULATE" to SIMULATE to create SO,
the return table
ORDER_ITEMS_OUT-NET_VALUE is not equals than created by VA01 .
how to get line item net price and net value?Hi,
Can u elaborate ur query ?
By this FM you cannot create a SO . Use FM --> BAPI_SALESORDER_CREATEFROMDAT2
Regards,
MAdhukar Shetty -
How to add the line item text in the Ledger line item report
Hi SAP Gurus,
I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
advance thanks for the help.
Regards,
Deva.Hi,
You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
Step 1:-
Create function module Z_GET_SGTXT as below:-
Import:-
BELNR LIKE BKPF-BELNR
BUKRS LIKE BKPF-BUKRS
BUZEI LIKE BSEG-BUZEI
GJAHR LIKE BKPF-GJAHR
Export:-
PRCTR LIKE BSEG-SGTXT
FUNCTION Z_GET_SGTXT.
""Local Interface:
*" IMPORTING
*" VALUE(BELNR) LIKE BKPF-BELNR
*" VALUE(BUKRS) LIKE BKPF-BUKRS
*" VALUE(BUZEI) LIKE BSEG-BUZEI
*" VALUE(GJAHR) LIKE BKPF-GJAHR
*" EXPORTING
*" VALUE(SGTXT) LIKE BSEG-SGTXT
SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
AND BELNR = BELNR
AND BUKRS = BUKRS
AND BUZEI = BUZEI.
ENDFUNCTION.
Step 2:-
Then create the Function Modules as below:-
Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
""Local Interface:
*" IMPORTING
*" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
*" EXPORTING
*" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
Initialize Output by using the following line
E_POSTAB = I_POSTAB.
E_POSTAB = I_POSTAB. "<-- important
CALL FUNCTION 'Z_GET_SGTXT'
EXPORTING
BELNR = I_POSTAB-BELNR
BUKRS = I_POSTAB-BUKRS
BUZEI = I_POSTAB-BUZEI
GJAHR = I_POSTAB-GJAHR
IMPORTING
SGTXT = E_POSTAB-SGTXT
EXCEPTIONS
OTHERS = 1.
ENDFUNCTION.
Step3:-
Transaction FIBF:-
Settings -> Products -> of a Customer
SGTXT Text in Line Item Display Active
Settings -> P/S Module -> of a Customer
00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
Step 4:-
Create the layout for FBL*N with display of the TEXT.
Regards,
Gaurav -
How to make plant default on the line item along with the item category
Hi All,
I want to default Plant on the line item along with the item category.In order to meet the following scnario.
1. I have two plants,first plant is maintained for the valuated item and the second plant is maintained for the non valuated item (Free Goods).
Whenever user is entering an item in the sales order for which corresponding free goods item is maintained in the master record.System is proposing two lines items in the sales order.
First line item is the main item which appears along with the Plant 1 which contains valuated items
Second line item is for the Free of charge item which is being proposed from Plant 2, which contains the non valuated items.
I want that the system should always propose Plant 1 with main item and Plant 2 with the Free of Charge item by default. (Along with the item category TAN and TANN)
RahulDelivering Plant is determined in the following order
1. Customer material info record.
2. Customer master
3. Material master.
Use one of them an default your plant.
I think in your case you can use the materila master which will give an item level plant different. The other two will default the plant at the header level.
regards
jude
Maybe you are looking for
-
I have a mac book pro with 125g hard drive. I have had it about a month and all my files are stored on external drives. I have just had a message that my start disk if full. I have cleared out trash and all the iphoto photos that I hadn't realised th
-
Using a hierarchy in BW security
Hi, I am working on helping out the BW security. I am totally confused about using a hierarhy for this purpose to check the sales office and sales group level. I was asked to write an ABAP program to read a table values and write to a flat file and t
-
The FLOW isn't parallel - why?
The BPEL process starts out with three parallel flows. Each flow makes (1) a database access, (2) Using aswitch determines it is appropriate to proceed, (3) Invokes a Asynchronous process, (4) Receives the result of the process, then all three flows
-
How to reach a person to talk to
How to reach a person so I can talk about my I tunes
-
ITunes Quits When I Try to Import Anything
Any time that I try to import any kind of media, iTunes encounters an error and quits without importing. Please help. Windows XP