Function to get the availability of a material by Valuation area
Hi, I need a Function ABAP to get the availability of a material by Valuation area, the bapi BAPI_MATERIAL_AVAILABILITY shows no the availability of a material by Valuation area
Hi, I need to get the availability of a material by Valuation area BEFORE save a order sales.
The configuration of MM is by Valuation area. In te tables MBEW and EBEW don't appears the avaibality, appears the stock and
the avaibality and the stock dont' is the same.
Example
MANDT MATNR BWKEY BWTAR
200 000000000002000060 5000
200 000000000002000060 5000 PRODUCIDO
200 000000000002000060 5000 REVENTA
The sales order STANDAR verify the availability by Valuation area, I DONT UNDERSTAND "a valuation area is not relevant for availability check ".
Similar Messages
-
Problem to get the availability of a product using BAPI_SALESORDER_SIMULATE
Hi folks,
I am trying to use BAPI_SALESORDER_SIMULATE to get the availability of a product but the BAPI does not send me the expected result :
I am trying to get the availability of a "to be discontinued" product. The available quantity of this product is 592 unit.
1/ Here is what I have in VA01 when I order a quantity of 1000 unit : [VA01|http://img689.imageshack.us/img689/4982/va012.jpg]
--> only 592 units available : OK !
2/ Here is what I have with BAPI_MATERIAL_AVAILABILITY when I order a quantity of 1000 unit : [Table WMDVEX|http://img707.imageshack.us/img707/9793/wmdvex2.jpg]
--> only 592 units available : OK !
3/ Here is what I have with BAPI_SALESORDER_SIMULATE when I order a quantity of 1000 unit : [TableORDER_SCHEDULE_EX|http://img101.imageshack.us/img101/830/orderscheduleex2.jpg]
--> Nothing available : not OK !
For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.
Thanks in advance for your help.@Brad : If I fill ORDER_SCHEDULE_IN-REQ_QTY in place of ORDER_ITEMS_IN-REQ_QTY I receive an error : E-06070-Enter a quantity (I suppose ORDER_ITEMS_IN-REQ_QTY is mandatory). Which field do you use to specify the schedule quantity ?
For information here are the information I am using to run BAPI_SALESORDER_SIMULATE :
ORDER_HEADER_IN
DOC_TYPE
SALES_ORG
DISTR_CHAN
DIVISION
REQ_DATE_H
PO_METHOD
ORDER_ITEMS_IN
ITM_NUMBER
MATERIAL
REQ_QTY
SALES_UNIT
ORDER_PARTNERS
PARTN_ROLE
PARTN_NUMB -
Is there a function to get the IP of this remote system
Hello EveryBody
Currently I have an application that runs on our network. When someone logs on to the network it checks there system and gets the pc name. I would like to also get the IP address of that system. As well I may later like to ping that computer.
1) Is there a function to get the IP of this remote system?
2) IS the a function to ping a remote system and receive back the response?
Thanks a lot.
RHello EveryBody
Currently I have an application that runs on our
network. When someone logs on to the network it
checks there system and gets the pc name. I would
like to also get the IP address of that system. As
well I may later like to ping that computer.
1) Is there a function to get the IP of this remote system?
2) IS the a function to ping a remote system and
receive back the response?Is this lan only?
Because if wan or internet then the remote computer would have to have an address that is reachable from your computer. For the internet this would mean it would have to be public. And for a wan the IP would have to be unique across the wan. -
Hello all
I am attempting to get the HostScan posture assessment working so we can check that any device connecting to the ASA is a valid corporate asset.
I have installed the posture module onto our test client machine (Windows 8.1) using the following software:
anyconnect-posture-win-4.0.00061-pre-deploy-k9
Then in ASDM under Remote Access VPN > Host Scan Image I have uploaded the following package:
disk0:/hostscan_3.1.06073-k9.pkg
...and ticked the box 'Enable Host Scan/CSD'.
Under Remote Access VPN > Secure Desktop Manager I have configured an initial simple Prelogin policy to test it working, this simply just checks that the OS is Windows 8. A success should map this user to a Group Policy I have created that is mapped to a Connection Profile.
So, with all that said, when I try to connect I see that the AnyConnect client going through the motions: "Posture Assessment: Checking for updates....", after which I get a pop-up and error message:
"Posture Assessment Failed: Unable to get the available CSD version from the secure gateway"
A bit stumped here and haven't quite found much on the web as to how to resolve this.
Has anyone encountered this before? If so, can you advise on what I can do
By the way I am connecting using IKEv2 (IPsec) as these are the requirements and the AC version is 4.0.00061, ASA version: 9.2(1).
Many thanksHello
Please forgive the shameless bump. Was hoping someone could help?
Many thanks -
Use SQL function to get the original order number using the invoice number
Hi All,
wondering is someone can help me with this challenge I am having? Often I need to return the original order numbers that created the resulting invoce. This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement. the code i currently have is:
Use SQL function to get the original order number using the invoice number
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
RETURN @OrderList
END
it is run by the following query:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number here'
The issue is that this returns the order number for all of the lines in the invoice. Only want to see the summary of the order numbers. ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
If this was a simple reporting SELECT query I would use SELECT DISTINCT. But I can't do that.
Any ideas?
Thanks,
MikeThanks Gordon,
I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice. However, I have managed to solve my own problem with a GROUP BY statement!
Others may be interested so, the code is this:
CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
RETURNS nvarchar(200)
AS
BEGIN
DECLARE @OrderList nvarchar(200)
SET @OrderList = ''
SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
FROM OINV AS T1 INNER JOIN
INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
ORDR AS T6 ON T5.DocEntry = T6.DocEntry
WHERE T1.DocNum = @InvNum
GROUP BY T6.DocNum
RETURN @OrderList
END
and to call it use this:
Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
From OINV T1
Where T1.DocNum = 'your invoice number' -
Function to get the last day of the current month
Hi friends
Now I need to know a function to get the last day of a month. I had between my notes that function but I do not find it and I think you can give the answer faster.
Thanks
Joel Pérez
DBA OracleI know emoticons are a bit naff but in the absence of a UBB markup to indicate humourous intent they do serve to indicate a joke. This is useful in a purely verbal domain like these forums, especially given that many participants don't have English as their first lanaguage and so often miss the wordplay.
Cheers, APC -
Is there any function module getting the cpu type?
Is there any function module getting the cpu type?
I guess the database server...
I would like to get the SAP system cpu type as done in transaction st06 under system information.
Thanks. -
Failed to get the Availability State on server Distriubtionpoint1 for role SMS Distribution Point
Distriubtionpoint1-- Server share distribution point
Distriubtionpoint1-- Acting as site system role (DP)
Distriubtionpoint1--attached under the primary PR0 (Primary server0)
Primary server0-- reporting to CS0 (central site 0)
Distriubtionpoint1-- Windows 2008 sp1 r2 standard
Infrastructure details:-
=============
Distriubtionpoint1 located in different domain with one way trust.
1) Check ping status with FQDN from both domain and it is success.
2) Check port 135, 445, 80,443 through telnet from both domain and success.
3) Primary Server0 account is member of the local admin group on Distriubtionpoint1.
4) Check the PR0-SCCM-DP$ folder NTFS & Share permission
Share permission
a) everyone & local admin group has full control
Security permission
a) System has full permission
b) user has read & exec
4) Local admin full
Sitestat.log error message:
---->: Failed to get the Availability State on server
Distriubtionpoint1 for role SMS Distribution Point. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:15 PM 952 (0x03B8)
---->: Now polling via NAL for SiteObject "["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\" SMS_SITE_SYSTEM_STATUS_SUMMARIZER
4/22/2014 9:00:15 PM 952 (0x03B8)
for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
4/22/2014 9:00:15 PM 952 (0x03B8)
---->: The NAL path ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ is currently not accessible. SMS_SITE_SYSTEM_STATUS_SUMMARIZER
4/22/2014 9:00:18 PM 952 (0x03B8)
Info>: Unable to get available space for the Site Object ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ SMS_SITE_SYSTEM_STATUS_SUMMARIZER
4/22/2014 9:00:18 PM 952 (0x03B8)
STATMSG: ID=4701 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_SITE_SYSTEM_STATUS_SUMMARIZER" SYS=Distriubtionpoint1 SITE=PR0 PID=4112 TID=952 GMTDATE=Wed Apr 23 01:00:18.002
2014 ISTR0="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR1="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR2="2014 04 4 17 04 31 31 000" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8=""
ISTR9="" NUMATTRS=0 SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:18 PM 952 (0x03B8)
for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
4/22/2014 9:00:18 PM 952 (0x03B8)
---->: GetOperationsManagementData failed to connect to ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\; error
= 5. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:20 PM 952 (0x03B8)I have tried to access the server share DP from the primary server by using my user
credential. Yes I can able to access the share.
But when I use the system credential to access the share received an error message as shown in below screenshot
Hence i have provided the share and ntfs permission administrators, system, everyone,
primary server account with full control on both tab. but still i am receiving error message.
:\temp>whoami
US\prasath
c:\temp>dir \\PrimaryServer1\SCCM-DP$
Volume in drive \\PrimaryServer1\SCCM-DP$ is Data
Volume Serial Number is 22F0-661B
Directory of \\PrimaryServer1\SCCM-DP$03/17/2014
03:33 PM <DIR> .03/17/2014 03:33 PM <DIR> .
04/01/2014 08:04 AM <DIR> SMSPKG
0 File(s) 0 bytes
3 Dir(s) 514,625,064,960 bytes free
===========================================
C:\Windows\system32>whoami
nt authority\system
C:\Windows\system32>dir
\\PrimaryServer1\SCCM-DP$
Access is denied. -
I have the original AIR recently it has really slowed down. Every function usually gets the pinwheel. It is up to date and has 10g of free disk space. Any suggestions as to the cause?
Often a failed disk or power supply. See:
https://encrypted.google.com/search?q=%22time+capsule%22+%22orange+light%22&as_q dr=all&newwindow=1&num=100 -
How to create a function to get the 16th of the current month and the 15th of the next month
I need to create a function to get the 16th of the current month and 15th of the next month to use it in the fast formula to calculate the sick leave.
Example:
If an employee takes a sick leave from 16 feb 2015 to 17 feb 2015 , I want it to affect march's payroll not February.
Please help and thanks in advance.Below statement gives you the result. Use the concept and write your PL/SQL function.
select TO_DATE('16-'||TO_CHAR(SYSDATE, 'MON-RRRR')), TO_DATE('15-'||TO_CHAR(add_months(SYSDATE, 1), 'MON-RRRR')) from dual;
Or you can use same construct directly in the fast formula by changing syntax accordingly.
Regards,
Peddi. -
How to get the available profile names in oracle database
How we can get the available profile names in oracle 11g
Hi;
It isnt to check from dictionary ?
select * from dictionary where table_name like '%PROFILE%'
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
I cannot close or import or any function to iphoto. I have been getting the same message for many days "Photos are being imported to the photo library. Please wait for import to complete." I do not know where the photos would be importing from. How do I get it to proceed?
After Force Quitting, as LarryHN recommended,
Select the iPhoto Library in the Finder. By default it is in your Pictures folder.
Ctrl-click or right-click the iPhoto lIbrary. Select "Show package contents" from the panel, that will pop up.
Look for a folder named "Importing" or "Import". Remove this folder, but don't touch anything else.
Then launch iPhoto again.
If iPhoto now is working again, check the folder you removed, if there are any photos that you want to keep and save them. -
Is there any function to get the name of the days?
Hi,
I'm using oracle 10.2.0.1.0
Is there any function to get the days of the week?
like i need to get sunday,monday,tuesday.....saturday.
I know i can use union and select the name from dual one by one.
But just want to know whether there is any other way.
I need to show the 7 days in a poplist in my form, thats the requirement
ThanksDavid_Aldridge wrote:
BluShadow wrote:
Note: you may want to include "fm" in the format mask, otherwise the name of the day is padded with spaces:
SQL> ed
Wrote file afiedt.buf
1 select replace(to_char(dt,'Day'),' ','*') as fmt1
2 ,length(to_char(dt,'Day')) as length_fmt1
3 ,replace(to_char(dt,'fmDay'),' ','*') as fmt2
4 ,length(to_char(dt,'fmDay')) as length_fmt2
5 from (select TRUNC(SYSDATE ,'DAY')+Level-1 dt
6 from dual
7 connect by Level<8
8* )
SQL> /
FMT1 LENGTH_FMT1 FMT2 LENGTH_FMT2
Monday*** 9 Monday 6
Tuesday** 9 Tuesday 7
Wednesday 9 Wednesday 9
Thursday* 9 Thursday 8
Friday*** 9 Friday 6
Saturday* 9 Saturday 8
Sunday*** 9 Sunday 6
7 rows selected.
SQL>
I think you should use a pl/sql function for this.
Nah ... just joking.
I'd be tempted to just use a union all statement to return the seven literals. People will look at it and know exactly what it does.Yeah, agreed, I was just demonstrating that the format mask of a to_char(..., 'Day') pads with spaces, which seems to have been missed in the above answers. ;) -
After reformatting my 1 Tb WD ext drive and tinkering with the "exclude these items" list, I now get the following error message from Time Machine: "Are you sure you want to back up to the same device your original data is on?" I've reformatted in Disk Utilities...not sure what I did wrong. Any help would be appreciated.
Not sure what you mean by "booted" from it.
If the Mac OS is installed on the external drive, then it's possible to start up from it, just as you do from your internal drive. Please open the Startup Disk preference pane in System Preferences, and verify that your internal drive is selected as the startup disk.
Assuming that's the case, then it may be that your TM settings have been corrupted. Turn off TM, then move or delete the file /Library/Preferences/com.apple.TimeMachine.plist. Turn TM back on, recreate your settings, and try again. -
Plz help me to get the document UIT 250 in IS-U area...
Hi all,
Can any body plz help me to get the document UIT 250 in IS-U area...
Appreciate ur help..
Regards,
RajaString line1="27-03-2006";
SimpleDateFormat dfInput = new new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy");
Date dateBegin = dfInput.parse(line1.trim()); By the way, I feel there is some mismatch...
Maybe you are looking for
-
SRM 7.0 - Unconfirmed PO limit items not showing up when creating Invoice
Hi Guys, For PO standard items, when creating an invoice and is unconfirmed, these items still show up in the invoice screen and the invoice gets created with the status 'Waiting for preceding document'. For unconfirmed limit items, these items do no
-
O/S X 10.5 leopards and Adobe CS2
Hello, References : Go To : Adobe.com/ Upgrading to Leopard? Find out Adobe software compatibility Page 3 I have a new Mac Pro came with Tiger installed and a Leopard disk, and a G4 powerBook. About using CS2 Illustrator and or Photoshop with Leopard
-
WSDL url for sender and receiver SOAP adapter
Dear Experts, I am working on SOAP --> SAP PI --> SAP ECC synchronous scenario. That means I have to create 2 Cc for SOAP i.e. Sender as well as Receiver adapter. I am responsible for creating the Request as well as Response structure in SAP PI. The
-
Scope of a JavaBean in a JSP page
Is there any default scope for a Java Bean in a JSP page. If so, wht is it. IF the bean is assigned a "application scope", is it that the system resources are allocated to the bean.
-
I regularly convert existing documents to fillable forms that contain all number fields for insertion of dollar amounts. It is very tedious to change the formatting of each field to a numeric format and would like to know if there is a way (and how)