Get new value for LIKP-LGTOR when creating a delivery
Hello all ,
when I creating an delivery, I use MIGO or FM BAPI_GOODSMVT_CREATE, I want to update field LIKP-LGTOR.
To do this , I have created a Z-table which contain WERKS KOSTL(KEY) and LGTOR. so , if we know WERKS & KOSTL we could find LGTOR , and update it.
The problem is that I cannot find a suitable user exit or BADI to achieve this.
In BADI LE_SHP_DELIVERY_PROC, I notice that method FILL_DELIVERY_HEADER contain LIKP-WERKS LIPS-KOSTL and we can change LIKP-LGTOR as well, but when debugging , I found that the import data LIKP LIPS are all blank.
so I want to know if there is some way we could achieve this ?
Thanks in advance for your replies!
Kevin
Hi,
Even through BADI, you will get LIKP information in CS_LIKP structure in method (FILL_DELIVERY_HEADER). But you will
not get both LIKP and LIPS information in same method. You have use FILL_DELIVERY_ITEM to get LIPS information.
Regards
Vinod
Similar Messages
-
Set default value for price unit when creating material master data
HI: Every
could you tell me how to use user-exit or else ways to set default value(such as 1000) for field "Price unit" (MBEW-PEINH) when creating material master data(MM01)?
I have try to use Exit:EXIT_SAPLMGMU_001. However, this way cannot respones it.
thanks
HenryHi: Ihave find out a solution
Use BADI: BADI_MATERIAL_REF
SPROlogistics general enhancement supplement or change default data (industry)
And then creating a Implementation Name
Double click method: CREATE_MATERIAL
And then write code as below:
method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
c_mbew-peinh = '1000' .
endmethod.
However, SAP still store '1000' in database evenif we change the default value such as 100 when we use TCode MM01.
in additional, we still use MM02 to change the default value such as '100'
can anybody tell me how to do?
thanks
Henry -
Bidder gets "no authorization for the action" when creating response to RFx
Hello. I am working with SRM 7.0. As a bidder with
Portal Role: RFx Respondent
SRM Role: /SAPSRM/BIDDER
I was trying to create a response for an RFx by highlighting one of the eRFx in the query result list and clicking on "Create Response" button. I was given a pop up window with error "User is not authorized for the action". This happens to all eRFx in the bidder's list. I was able to properly launch the RFx by clicking on "Display Event" though. Any pointers in this regard would be highly appreciated.Hi Jay
drill this note code howeve rit is appliacable for srm600. u will get clue
Note 1151053 - Invalid authorization error is displayed to the user
Symptom
During RFx creation even though user has permissions to create a new document system throws a error message:"User is not authorized for the action".
Other terms
Authorization Checks, Bid Invitation, RFx, Not Authorized for the Action.
Reason and Prerequisites
This error is caused by a program error.
eze:- please help Jay. he is facing the same issue whice you encountered long back
Muthu
Edited by: Muthuraman Govindasamy on Jan 20, 2010 10:23 PM -
Hi, please help me , i get notification about a new update for my iPad when I do the instal for the new version it is asking me for a passcode but which passcode may I have to enter? Because when I enter my gmail passcode it is call me that my passcode is failed
The passcode you need to enter is the passcode you set on your device. It is the passcode that you enter when you turn on your iPad or awaken it from sleep after and Auto lock.
If you do not know or remember your password and did not store it somewhere then you will have to restore your device.
http://support.apple.com/kb/HT1212 -
iPad Air iOS8.0.2. I used the photos app to edit my photos and created a new album for them. When I transfer my photos to my PC via cable (not allowed to use cloud services by my boss) I cannot choose this edited album, only transfer the unedited versions. Any tips? Thanks!
Hi Anjohi,
Thanks for visiting Apple Support Communities.
If you've edited photos on your iPad and only see the original version when you import them to your computer, the tips in this article may help:
iOS: Edited photos show original photo after import or in other apps
All the best,
Jeremy -
How to get the values for the Authorization Object Fields....
Hi Everyone,
I'm pretty new to the SAP Security and have been working on the Basis sides...I created a new role in PFCG and added a few transactions (ME13) and clicked on the Authorizations tab. In there, the authorization tree is in yellow and red. After providing the Org Values, only the yellow lights remain (apart from the green one ofcourse). Now how do we get the values for the different auth obj fields that are in yellow... say for example
Conditions COND
Maintain Condition: Auth. for Use/Appl./Cond.Type/Table V_KOND_VEA
Activity 03 ACTVT
Application KAPPL
Condition table KOTABNR
Condition Type KSCHL
Usage of the condition table KVEWE
Here the values for V_KOND_VEA fields e.g. KAPPL, KOTABNR etc are missing.
My question is how do we get these values in regard to the requirement provided by the client...is it the functional guys who provide these values or else how is a security person supposed to know it...
All the help in this regard is sincerely appreciated along with the awarding of points...Hey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
How to save a new value for Set command variable
I am using SET [variable = [String]] to update Set variable. It works fine. But when I restart MSDOS Prompt, I get old value for variable.
How to save a new value for SET command variable?
I am using Windows XP.And this has to do with java how?
-
I have function in package on database which is param is String and return value is also String(VARCHAR2).
That function calculate some field on db and return a result.That is OK
I made VO in my AM.
"SELECT package_name.func_name("string") from dual" and that is OK also.
When I start that module I recive valid result from database based on string which I passed to function.
And that works fine.
Question :
How can I change value or how can I set new value for the package_name.func_name(variable) in VO
during runtime in my application ? ^^^^^^^^
JDeveloper 9.0.3.988I have function in package on database which is param is String and return value is also String(VARCHAR2).
That function calculate some field on db and return a result.That is OK
I made VO in my AM.
"SELECT package_name.func_name("string") from dual" and that is OK also.
When I start that module I recive valid result from database based on string which I passed to function.
And that works fine.
Question :
How can I change value or how can I set new value for the package_name.func_name(variable) in VO
during runtime in my application ? ^^^^^^^^
JDeveloper 9.0.3.988 1. When using stored procedures it would be better to use it in following way:
Connection conn = //get it some how
CallableStatement cs = conn.prepareCall("{call myPackage.do_something(?)}");
cs.registerOutParameter(1, java.sql.Types.VARCHAR);
cs.execute();
2. You could parameterize it like this:
CallableStatement cs = conn.prepareCall("{call " + packageName "." + funcName + "(?)}");
cs.registerOutParameter(1, java.sql.Types.VARCHAR);
cs.setString(1,"someString");
cs.execute();
String result = cs.getString(1);
where packageName and funcName are defined elsewhere
--hery -
Problem to get Correct Value for Message Id in XI (Inbound channel)
Hi Experts
I have XI scenario i.e. SOAP to RFC.
I am calling RFC and getting Response which contais Messageid Field(Raw Data).
But while getting Response in Inbound Channel ,I ma getting Junk Value For Message Id.
In RFC Data element for Message id is SXMSMGUID.(data tpe Raw No Of character 16 and Output Length 32)
I am accessing some RFC functions from XI which return parameters in the RAW format.[RAW: Uninterpreted byte string.]
For example: If I execute a RFC from the abap system (using transaction se37), one of the results is "5ECD6F4D6C6E3242921025FE74AC5153"
When I call the RFC from XI, response for same parameters is "Xs1vTWxuMkKSECX+dKxRUw==".
Is there any way to get RAW data in correct Format?
when i import RFc in XI it's data type becomes xsd:base64Binary.
I created one customized data element having data type RAW (32 length) and even Character(32-50 length)
In this case RFC gives correct value but when Sceanaro runs in XI,it get Wrong data in XI Inbound channel.
Also disturbed value and place of other Fields.
Thanks in advance .Hi
Check this forum post.. same prob as yours
Re: Problem in RFC Lookup UDF in getting MessageID
fixed by changing the datatype other than RAW in FM
also,
Data type RAW imported to ABAP from Java
Regards
Vishnu -
TSQL Get Previous values for each group by
Dear Friends,
I have a problem with my TSQL statment.
I need to get previous value for each day and specific unit. Everything goes fine if I have always 2 unit in each day. But if same day has just one unit or less, I cannot have the previous value in the current record.
The Output is this one:
SK_DAY SK_UNIT
VALUE VALUE_PREVIUS_DAY
20131112 2
30.00 NULL
20131112 3
34.00 NULL
20131113 2
40.00 30.00
20131113 3
45.00 34.00
20131114 2
50.00 40.00
I dont have the second record for 2013-11-14, because in this date I just have value for unit 2.
The final output should include the record:
20131114 3
0 45.00
The Statment I have is:
SELECT MAIN.SK_DAY, MAIN.SK_UNIT, SUM(MAIN.VALUE) AS VALUE
SELECT SUM(VND1.VALUE) AS VALUE
FROM FCT_TEST VND1
WHERE CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))>=DATEADD(dd,-1,CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY)))
AND CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))<CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY))
AND VND1.SK_UNIT=MAIN.SK_UNIT
) AS VALUE_PREVIUS_DAY
FROM FCT_TEST MAIN
GROUP BY SK_DAY, MAIN.SK_UNIT
SQL CREATE SCRIPT:
CREATE TABLE [dbo].[FCT_TEST](
[SK_DAY] [int] NOT NULL,
[SK_UNIT] [int] NOT NULL,
[VALUE] [decimal](18, 2) NULL,
CONSTRAINT [PK_FCT_TEST] PRIMARY KEY CLUSTERED
[SK_DAY] ASC,
[SK_UNIT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Thank you!!!
PPSQLThank you Kalman,
But my problem is not with date! Fortunately I have dates for all days.
The problem is for dimension tables like UNITS that I dont have values for all days, and when I try to get the previous value for previous day and each unit I dont have records.
20131112
2
30.00
NULL
20131112
3
34.00
NULL
20131113
2
40.00
30.00
20131113
3
45.00
34.00
20131114
2
50.00
40.00
20131114
3
0
45.00 [I NEED THIS RECORD AS IS]
Could you help me??
Thank you!! -
Hi,
We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
if(document == nil)
//CAlert::InformationAlert("Doc Interface Not Created");
break;
IDataBase *db = ::GetDataBase(document);
InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
if(linkmanager == nil)
//CAlert::InformationAlert("linkmanager Interface Not Created");
break;
LinkQuery Query;
ILinkManager::QueryResult linkQueryResult;
linkmanager -> QueryLinks(Query, linkQueryResult);
for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
if ( iLink )
InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
ILinkResource::ResourceState rs = resource->GetState();
PMString fileName = resource -> GetLongName(kTrue); //gets full path
CharCounter lc=fileName.LastIndexOfCharacter('.');
PMString *exten = fileName.Substring(lc+1,3);
if((*exten).Compare(kFalse,"xml")==0)
xmlDataLinkName = fileName;
Kindly help us if anyone has idea regarding this issue.
Thanks,
VIMALA LHi Vimala L,
try to replace
ILinkManager::QueryResult linkQueryResult;
by
UIDList linkQueryResult(db);
Markus -
TB 27.0.1 (W7) will not "get new messages for all accounts"
I installed W7 with IE11and downloaded the latest TB (27.0.1) I have added five email accounts (more to be added) and none of them show up in the left pane - only global Inbox and two folders I created. I can get new messages manually one account at a time, but "get new messages for all accounts" (or Shift F5) does nothing. Most of this happed after MS installed well over 100 updates to my W7, but some of my accounts never did show up in the left pane even before the W7 updates. I have reinstalled TB - nothing changes.
Matt, I thank you for your kind and gracious response (Ok I will say this only once....). Be assured that I would never think of asking your advice again.
The crux of the matter has been resolved by checking the “Include this server when getting new mail” box in each account’s “Advanced” box under “Server Settings.” Now every time TB checks for new mail (including on startup), the process is displayed in the lower left portion of the window. I wish this had been explained to me more clearly early on.
Having all accounts in the left pane has become unimportant now that I can see the mail being checked on startup, periodically, and on Shift F5.
I consider this thread closed. -
How can I get null values for the later weeks
Hi All,
When I execute this code I get the records till current week.
How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
Thanks,
Vikram
DECLARE
v_query VARCHAR2(4000);
TYPE ref_cursor IS REF CURSOR;
v_refcur ref_cursor;
v_sum NUMBER;
v_id NUMBER;
v_name VARCHAR2(1000);
v_weeknum NUMBER;
v_pernum NUMBER;
v_numOfWeeks NUMBER := 5;
BEGIN
v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
FROM s_postn) postn_tbl
WHERE lvl_6_id = 5767
AND fiscal_year = 2008
AND b.week_num < 4
AND b.period_num = 3
AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
ORDER BY postn_tbl.postn_name, b.week_num';
OPEN v_refcur FOR v_query;
LOOP
FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
EXIT WHEN v_refcur%notfound;
dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
END LOOP;
END;
This is the output when I execute this code.
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W2 COMM CNTRL TAM 216 12561.4
P3W3 COMM CNTRL TAM 216 2027.1
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
This is the output I'd like to get
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W4 COMM CNTRL ISAM 213
P3W5 COMM CNTRL ISAM 213
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W4 COMM CNTRL ISAM 273
P3W5 COMM CNTRL ISAM 273
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W4 COMM CNTRL TAM 213
P3W5 COMM CNTRL TAM 213
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W4 COMM CNTRL TAM 273
P3W5 COMM CNTRL TAM 273
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
P3W4 Damon Walters
P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PMSure, in a Single SQL ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>-- Start Of Test Data --
satyaki>with week_tab
2 as
3 (
4 select 1 period_num, 1 week_num, 10 bkg1 from dual
5 union all
6 select 1, 2, 40 from dual
7 union all
8 select 1, 3, 30 from dual
9 union all
10 select 1, 2, 20 from dual
11 union all
12 select 1, 1, 10 from dual
13 union all
14 select 1, 1, 20 from dual
15 union all
16 select 1, 3, 10 from dual
17 union all
18 select 2, 1, 15 from dual
19 union all
20 select 2, 2, 20 from dual
21 union all
22 select 2, 3, 10 from dual
23 union all
24 select 2, 1, 15 from dual
25 union all
26 select 2, 2, 30 from dual
27 union all
28 select 2, 3, 20 from dual
29 )
30 -- End Of Test Data --
31 select period_num,
32 week_num,
33 (
34 select sum(week_tab.bkg1)
35 from week_tab
36 where period_num = m.period_num
37 and week_num = m.week_num
38 group by week_num, period_num
39 ) sum_bkg1
40 from (
41 select dum.week_num,
42 wk.period_num
43 from (
44 select 1 week_num from dual
45 union all
46 select 2 from dual
47 union all
48 select 3 from dual
49 union all
50 select 4 from dual
51 union all
52 select 5 from dual
53 ) dum ,
54 (
55 select distinct period_num
56 from week_tab
57 ) wk
58 ) m;
PERIOD_NUM WEEK_NUM SUM_BKG1
1 1 40
1 2 60
1 3 40
1 4
1 5
2 1 30
2 2 50
2 3 30
2 4
2 5
10 rows selected.
Elapsed: 00:00:00.48
satyaki>Regards.
Satyaki De. -
How to get the values for checked and unchecked chekboxes
Hai i have using the checkbox in for loop.
I need the urgent help from anyone,
for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and unchecked checkboxes. Because if i checked the checkboxes, those values need to be inserted into the database. Those for unchecked checkboxes values need to be deleted from the database. Can anyone help me for this
i am using the following jsp code for this. If anyone can know about this please post me the sample code.
<form name="confirmcontainer" id="confirmcontainer" method="post" action="submit.jsp">
<% for(int i=0;i<value.length;i++) {%>
<tr>
<td><input name="assigncontainer_chkbox" d="assigncontainer _chkbox" type="checkbox" value="<%=value[0]%>"></td>
<td class="bottomborder"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[1]%> </font></div></td>
<td bgcolor="#FFFFFF" class="bottomborder"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[2]%></font></td>
</tr>
<% } %>
<tr><td><input type="submit" name="submit" value="submit"> </td></tr>
</form>
Thanks & Regards,
TamilvananHey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
I have one report that lists a set of rows and has a link to
drill down to another report. On the second report, I am trying
to create a link to a form and pass the value received from the
first report. I am trying to use the API
wwpro_api_parameters.get_value but I cannot figure out how to
get the value for the second parameter - p_reference_path.
Here is my code which is found in the "Additional PL/SQL Code"
section, "After displaying the Header".
declare v_id varchar2(10);
begin
v_id := wwpro_api_parameters.get_value
('id', 'a');
htp.anchor ('http://rrlehman-
lap.us.oracle.com/pls/portal30/PORTAL30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1516531942&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=FRM_ID&p_arg_values=' ||
v_id, 'Create A Topic', NULL, NULL);
end;
No matter what I put in for the second variable,
p_preference_path, I do not get a value for v_id. I have
performed a search in the discussion forums and read all related
threads but I still cannot get it to work.Please, note that the second parameter of the get_value function is the identifier of the portlet instance, called in the PDK as reference path.
Here you find further information on the topic:
[list]
[*]Documentation of the wwpro_api_provider.get_value function
[*]Guidelines for Parameter Passing in Portlets
[list]
Maybe you are looking for
-
I have seen some websites discussing about the performance of ArrayLists, LinkedLists, and Hashmaps: http://forum.java.sun.com/thread.jspa?threadID=442985 http://java.sun.com/developer/JDCTechTips/2002/tt0910.html http://www.javaspecialists.co.za/arc
-
How do I transfer contents from iPhone 3G running iOS 3.1.3 to a new 4S?
I have an iPhone 3G running iOS 3.1.3. I just got a new iPhone 4S and I'm wondering if I need to update the 3G to iOS 4.2.1 in order to transfer its' contents to the new 4S. I've tried to upgrade the old phone to iOS 4 many times but give up after
-
Html table vertical stretching
Hi, I'm getting weird output when report is generated in HTML. I've added a table via insert table wizard, and I have added four different groupings, first two are above, and last two are left. When my report has more than 500 rows some cells are get
-
Loyalty Solution for MSCRM for 2011
Hi, Can I know any Loyalty Management plugin or solution file are available for MSCRM 2011 ?? Thank you!!
-
Just did a software update and now iTunes or other Mac accessories won't work?
I did a software update for my Macbook and now iTunes, iPhoto, iMovie, iDVD and iWeb won't work. I keep getting the iTunes quit unexpectedly thing and it sends the report to Apple. Is there anything I can do to fix this???