Block Service A/P Invoice for the following Scenario
Hi,
if i m making a Service Purchase order for the Total Amount of INR 1200
and based on tat document i m making a Service A/P invoice For the Total Amount Of INR 700
Now if i m again going to make the A/P invoice based on the Same Purchase Document then we are finding the Total Amount for the INR 1200 instead of INR 500
Wat to do in order to Achieve this, can anybody help me out
Thanks in Advance
Perumal kumarar
The issue that you are having is not a standard SAP functionality. SAP always keeps track of the Balance Open Amount on the Service PO and only copies the balance to the AP Invoice (in your case)
How did you Create the AP Service Invoice. Did you use Copy to from the PO or did you actually go to the AP Invoice selected the Vendor and did a COPY FROM and selected customize and changed the amount?
Suda
Similar Messages
-
Can anyone tell me the field name, table name for the following scenario?
Hi All,
Can anyone tell me the field name and the respective table name for the following scenario's?
1. A report to list all the materials to which Invoice is done and delivery is pending.
2. A report for Order tracking.
3. A report, which gives PO(Purchase Order), Pricing details.
4. A report, which calculates the MATERIAL COST. It will select all the material issued for the entered service order number from stock.
Thanks & Regards,
P.Gowrishanker
Edited by: Gowrishanker pari on Jun 1, 2008 8:58 AMI believe that OmniVision Technologies has the contract for the 3gs.
-
Need best Architecture design for the following scenario
Hi Experts,
I need best architecture design for the following scenario:
Sender: Mail
Receiver: if sender body contain u201DApproveu201D, then call SOAP adapter, If SOAP adapter execute successfully, then send Mail(SOAP adapter executed successfully) and SMS . So receiver is SOAP, Mail and SMS.
My current approach issue:
Three message mapping:
Mapping1: mail to SOAP
Mapping2: mail to Mail
Mapping3: mail to SMS
In interface determinant>u201DSelect all three operation mappingu201D> u201Cselect order at runtimeu201D.
Issue in current approach: For me first SOAP adapter should complete successfully, after that only my Mail and SMS operation mapping should execute:
But problem is before success of SOAP adapter engine, Mail and SMS mapping completed or integration engine executed.
Note: There is possible to fail the SOAP request in adapter engine.
Kindly help me --> u201CAm I going correct way or want to change the architectureu201D?
Thanks for advance!!
Regards, KumarWhat do you mean by successful execution of soap call? Are you talking about Successful response (happy flow) from the soap call instead of application error ? Then based on the response you want to decide sending mail and sms. How big call is your soap ? If your soap interface is very simple I can give the other possible way.
Sender sends the message, use mapping to read the content and then do soap call in the mapping itself and after seeing the soap response decide about two receivers (mail and SMS). If your soap call is very simple one, you can go for it. Otherwise I would not recommend this. The reason is you loose some visibility regards to monitoring during soap call in the mapping.
Other option is go for CCBPM. Here you receive the message, use send step to soap interface which is sync step. Then after seeing the response create another block with fork steps each for two senders mail and sms. If response bad then dont proceed or execute the next block. Simply use exeception or control step to jump out from the block, -
Provide the java code for the following scenario.
Hi Experts,
I have tried with all the combinations for this scenario. As per my understanding i require java code for the following scenario
so that it becomes easy........
I require a Message mapping for this Logic.
In the Source there are 4 fields and, the Target side, the fields should appear like this.
Source Structure- File
Record
|-> Header
Order_No
Date
|-> Item
Mat_No
Quantity
Target Structure-IDoc
IDoc
|-> Header
|-> Segment
Delivery_Order_No
Recv_Date
|-> Item
|-> Segment
Delivery_Order_No
Material_Num
Recv_Quantity.
The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
For example:-
we have
Source Structure- File
Order-no Date Mat_No Quantity
1 01/02/2011 A 10
1 01/02/2011 B 15
1 01/02/2011 A 10
2 01/02/2011 C 10
2 01/02/2011 C 10
3 01/02/2011 D 20
3 01/02/2011 D 10
3 01/02/2011 E 25
Target Structure-IDoc
Delivery_Order_No Recv_Date Material_Num Recv_Quantity
1 01/02/2011 A 20
1 01/02/2011 B 15
2 01/02/2011 C 20
3 01/02/2011 D 30
3 01/02/2011 E 25
So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
Kindly provide the java code.
Thanq very much in advance..what i have understood from ur example is that u want to generate an idoc for unique combination of Order-no and Mat_No
if yes then chk the below mapping..
change the context of Order_No, Date, Mat_No and Quantity to Record (right click-> context)
1)
Order-no
----------------------concat[;]---sort----splitbyvalue(valuechanged)-----collapse context---IDoc
Mat_No
2)
Order-no
--------concat[;]---sort----splitbyvalue(value changed)---collapse context---UDF1--splitbyvalue(each value)--Delivery_Order_No
Mat_No
3)
Order-no
-----------concat[;]---sortbykey----------------------- \
Mat_No / \
Date--------------- / \
----------------------------------------------------------FormatByExample-----collapsecontext---splitbyvalue(each value)----Recv_Date
Order-no /
-----------concat[;]---sort----splitbyvalue(value changed)
Mat_No
4)
Order-no
--------concat[;]---sort----splitbyvalue(value changed)---collapse context-UDF2--splitbyvalue(each value)--Material_Num
Mat_No
5)
Order-no
-----------concat[;]---sortbykey
Mat_No /
Quantity --------------- /
----------------------------------------------------------FormatByExample-----SUM(under statistic)----Recv_Quantity
Order-no
-----------concat[;]---sort----splitbyvalue(value changed)
Mat_No
UDF1:
String [] temp= a.split(";");
return temp[0];
UDF2:
String [] temp= a.split(";");
return temp[1]; -
Need Mapping logic for the following scenario
Hi everyone,
I need a mapping logic for the following scenario.
For the same order no with same material no, the quantity should be summed and only one idoc should be created.
For the same order no with different material no, no need to sum the quantity and only one idoc should be created.
For example:
Source Structure:
Ord No Mat No QTY
12 1 2
13 1 3
13 2 1
12 2 4
15 1 5
14 3 7
12 1 6
Target Structure:
Ord No Mat No QTY
12 1 8
12 2 4
13 1 3
13 2 1
14 3 7
15 1 5
Thanks in AdvanceTry the graphical mapping as shown below using concat with a space as delimite and UDF to split the value again by space.
1. Idoc node
(RootContext)
OrdNo
|concat[ ] -> sort[asending] -> SplitByValue -> collapseContexts -> Idoc
MatNo case sensitive [ValueChange]
(RootContext)
2. OrdNo
OrdNo(RC)
|concat[ ] -> sort[asending] ->SplitByValue->collapseContexts->SplitByVale-> UDF to fetch ordno -> OrdNo
MatNo(RC) case sensitive [ValueChange] [eachValue] (return var1.split(" ")[0];)
3. MatNo
OrdNo(RC)
|concat[ ] -> sort[asending] -> SplitByValue ->collapseContexts->SplitByVale-> UDF to fetch ordno -> MatNo
MatNo(RC) case sensitive [ValueChange] [eachValue] (return var1.split(" ")[1];)
4. Qty
[asending,case sensitive]
-- sortByKey -----> formatByExample -> sum ->Qty
OrdNo(RC) | | ^
|concat[ ] -> | Qty(RC) |
MatNo(RC) | |
--sort[asending]-> SplitByValue
case sensitive [ValueChange]
Regards,
Sunil Chandra -
What is the appropriate data expiration / eviction scheme for the following scenario
We currently have an expiration scheme through which data entries in cache-A get expired after the cache hits a certain size. The LRU entries are expired after the max threshold is reached. But the issue is that certain entries in the cache are rendered meaningless without the other entries. There is a virtual grouping of entries in this cache.
Is there an expiration scheme that can be defined through which a group of entries can be deleted in one shot, and how can this policy be enforced.
The other way i would percieve this to work is to separate the currently virtually grouped entries into their own individual caches. This seems the logical thing to do, except for the issue being that we would still like to keep all these caches in the same service, and have an eviction policy defined at the service level instead of at the cache level.
Is it possible to define an eviction policy at the service level, for example to satisfy the below scenario.
Service-A has 10 caches in it [cache-1, cache-2, ....., cache-10]. And there is a limit of 10GB defined on the service. So, if the total utilization of all the caches in Service-A reaches 10GB, an entire cache from amongst [cache-1, cache-2, ....., cache-10] will need to be cleared and the memory be made available. Which one of the caches to be cleared will depend on which cache satisfies the LRU condition. So, maybe the entire cache-5 should be deleted if the entries in this cache was the oldest used.
Please let me know if the above scenario can be implemented.
Thanks
SumaxRicardo Pedro Rodrigues Ferrão wrote:
> Hi Eugene,
>
> Ill try to explain it better.
>
> For example the business unit A is portable pc and I have this business unit in both companies and what I want in management consolidation is to consolidate data by the business unit portable pc joining data from both companies.
>
> Thanks.
Ricardo,
I had similar business scenario in my earlier project and the expectations were almost same.
I created one consolidation area (legal consolidation) under one single data basis and assigned business area as sub-assignment. All the consolidation functions are executed by the business users based on legal cons requirements purpose, while the reports can be generated for both legal and management consolidation.
In management consolidation reporting, your expectations can be met easily. The header will be business area, while line item data will be companies wise (if you would like the data to display that way).
For more information, you can check the threads created by me. -
How to plan Failover for the following Scenarios in Flex-connect mode.
The following queries are in respect to AP High availability (not SSO fail over or Controller HA), meaning if one controller fails, the AP will be failing over to the secondary controller which is in a different Geo location. the AP will be in Flex-connect mode with local switching and local auth. in this scenario, following are my queries
1: If i have an SSID that has an interface group linked to it, can i fail it over on other controller where there may be a single WLAN linked to it.?
2:Do we need the subnet masks to be same at both ends?
3: if i have an SSID with open authentication, can i configure the remote network SSID with no authentication?
4: can any one link me up with a document that explains configuration case study of the flex-connect mode fail over scenarios.
All the help given would be really appreciated.
Thanks.hi Scott,
Sorry for replyimg late. and thanks for your reply and suggestion.
it did help me a lot, but now i am in a tiff.
the thing is my client has following existing scenario:
he has 6 disparate locations with a standalone 5508 WLC at each location.
he is now planning to configure AP failover for every location.
we are using the Flex-connect design as he has not procured a HA-SSO license.
also the WLC are not in same location.
the Flex-connect design is with Local Switching and local Auth.
there are 2 SSID which are causing me issues.
1: SSID A is linked to an interface group which has multiple vlans.
2: SSID B shares its WLAN interface with another SSID (the wlan is split between 2 different SSID)
we need local switching for these and also they need to have local auth.
so if i remove the interface group for SSID A and use a bigger subnet, what will be the best possible mask to use considering that the ARP and DHCP broadcast shouldn't choke up the network (existing subnets are /21 and /22). or any workaround to minimise the network activity.
and for SSID b what is the configuration i would need to do on the secondary controller or is it just that the SSID needs to be present on the controller and the mask need not be same.
sorry for troubling you and thanks in advance
Niiketan Sutar. -
What solutions would be needed for the following scenario
I have a client who operates two companies.
One company manufactures a specific piece of equipment.
The other company rents, sells and services this piece of equipment. This equipment consists of three major interchangeable components.
They need to track:
Customer information u2013 company name, contact person, start date, end date, sold or rental unit, service schedule on the three major components.
Equipment information u2013 where it is, which components it consists of, service records, forecast of service requirement, data on each specific component.
Job information u2013 field tickets, work orders, distance traveled for installations and service work, how long units have been running.
Revenue information u2013 all pertinent information as well as what was billed and when.
Inventory information u2013 all pertinent information as well as which parts have been used by manufacturing and which parts have been used to maintain the rental assets or service on sold equipment.
They also want to automatically contact operators and client about upcoming service dates.
My expertise is in SAP HR. Which SAP modules would they need to accomplish this? Is there another solution they should consider?They need to track:
Customer information u2013 company name, contact person, start date, end date, sold or rental unit, service schedule on the three major components.
SD Modules
Equipment information u2013 where it is, which components it consists of, service records, forecast of service requirement, data on each specific component.
PM Modules
Job information u2013 field tickets, work orders, distance traveled for installations and service work, how long units have been running.
PM Modules
Revenue information u2013 all pertinent information as well as what was billed and when.
SD Modules
Inventory information u2013 all pertinent information as well as which parts have been used by manufacturing and which parts have been used to maintain the rental assets or service on sold equipment.
MM Module
They also want to automatically contact operators and client about upcoming service dates.
CS Module -
How to do Mapping for the following Scenario
Hi All,
I am doing File 2 File Multimapping Scenario with out using BPM Concept but, My result was Struck at Message Mapping.
Source Target
Message Message1 Details Details
Name Name
ID ID
Message2
Details
Name
ID
I am getting Runtime Exception at Message Transfermation error if i do the one 2 one direct mapping....
so, How to do the Mapping for thei Scenario?
WIth Regards,
MaheshHi Farooq,
I am using Split and Merge.
Source XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/SplitAndMerge" targetNamespace="http://sap.com/xi/XI/SplitAndMerge">
<xsd:import namespace="http://tcs.com/Demo" />
<xsd:element xmlns:p0="http://tcs.com/Demo" name="Messages">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Message1" form="qualified">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="p0:BPM_In_MT" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Target XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/SplitAndMerge" targetNamespace="http://sap.com/xi/XI/SplitAndMerge">
<xsd:import namespace="http://tcs.com/Demo" />
<xsd:element xmlns:p0="http://tcs.com/Demo" name="Messages">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Message1" form="qualified">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="p0:BPM_Out_MT" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Message2" form="qualified">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="p0:BPM_Out1_MT" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Thanks
Mahesh -
What are the assessment options in Captivate 8 for the following scenario:
I have one Captivate project with five modules, after each module I want to have mandatory questions (user need to answer to proceed and pass the course) and optional questions (user can skip, not included in the final score). I am using Oracle LMS. it seams Adobe didn't change the limited quiz preferences in Captivate 8.
I would like to hear from the experts before I proceed into a lengthy option. I have the option to chop the project into five separete projects with 5 quizes ( with manadatory questions) . then make the optional quiz questons as a sperate projects, and organize them ( learning objects) in the LMS to play after each module, where the use can skip.As Lieve suggests, since you need to score various quizzes separately, you need to have those CP quizzes as separate files...which, again as she states, is a SCORM requirement.
You could put all those separate CP files together in one package with Captivate's 'Multi-SCO Packager' but in every case I've seen, the LMS breaks those up into separate lessons anyway...so you'll need to use the LMS to open one, go through it, close it, have it scored, open the next through the LMS, etc.
So the LMS would be the 'Main File' Lieve mentions.
If you don't NEED to see the individual quiz scores, you could put all sections in one main CP file...then all section quizzes would be scored cumulatively to show one overall score in the LMS...
...and if your LMS supports 'interaction data' you could report on the actual answers to each question to find out how well a user did in each quiz section, but that again depends on your LMS capabilities (and that data will meet the requirements).
Overall though, if you need to see separate quiz scores in the main LMS interface, each quiz has to be its own file. That would be the case with ANY tool you use, being a SCORM limitation. -
Existing function modules for the following scenarios...
Hello experts,
I am currently selecting the latest record from table ANLC based from
ANLN1(main asset number) and ANLN2(asset sub-number) and its AFABE is equal to
'01'. Now, is there any function module that I can use to automatically get the
latest record from ANLC? Currently, this is what I am doing:
get corresponding values from table ANLC based
from the current asset in it_finaltab
SELECT bukrs anln1 gjahr
afabe knafa kansw
answl kaafa nafal
aafav aafag nafap
aafap nafav nafag
FROM anlc UP TO 1 ROWS
INTO (it_anlc-bukrs, it_anlc-anln1, it_anlc-gjahr,
it_anlc-afabe, it_anlc-knafa, it_anlc-kansw,
it_anlc-answl, it_anlc-kaafa, it_anlc-nafal,
it_anlc-aafav, it_anlc-aafag, it_anlc-nafap,
it_anlc-aafap, it_anlc-nafav, it_anlc-nafag)
WHERE anln1 EQ it_anla-anln1
AND anln2 EQ it_anla-anln2
AND bukrs IN r_iwerk
AND afabe EQ '01'
ORDER BY gjahr DESCENDING.
ENDSELECT.
Also, Is there any function module that I can use to get the asset number of a
given equipment?
Again, thank you guys and God Bless!Can you check if it works this way???
CALL FUNCTION 'GM_GET_FISCAL_YEAR'
EXPORTING
I_DATE = SY-DATUM
I_FYV = 'F1'
IMPORTING
E_FY = l_gjahr
EXCEPTIONS
FISCAL_YEAR_DOES_NOT_EXIST = 1
NOT_DEFINED_FOR_DATE = 2
OTHERS = 3.
IF SY-SUBRC eq 0.
Assuming 2000 might be the oldest Fiscal year in system
CALL FUNCTION 'ANLC_READ_MULTIPLE_GJAHR'
EXPORTING
I_ANLN1 = it_anla-anln1
I_ANLN2 = it_anla-anln2
I_BJAHR = '2000'
I_BUKRS = p_bukr
I_GJAHR = l_gjahr
I_PROBELESEN = ' '
TABLES
T_ANLC = it_anlc
T_R_AFABE =
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC eq 0.
sort it_anlc by gjahr descending.
ENDIF.
endif.
Regards
Eswar
Note: Reward if you find the info useful.
Message was edited by: Eswar Rao Boddeti -
I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2. I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
I have also sent 3 emails to the company if Smart Office 2 with no response.
How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
Zena PartonI have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2. I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
I have also sent 3 emails to the company if Smart Office 2 with no response.
How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
Zena Parton -
I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased?
FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
I'm stuck here trying to figure this error out.
2003 domain, 2012 hyper v core 3 nodes. (I have two of these hyper V groups, hvclust2012 is the problem group, hvclust2008 is okay)
In Failover Cluster Manager I see these errors, "Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason: The handle is invalid."
I restarted the host node that was listed in having the error then another node starts showing the errors.
I tried to follow this site: http://blog.subvertallmedia.com/2012/12/06/repairing-a-failover-cluster-in-windows-server-2012-live-migration-fails-dns-cluster-name-errors/
Then this error shows up when doing the repair: there was an error repairing the active directory object for 'Cluster Name'
I looked at our domain controller and noticed I don't have access to local users and groups. I can access our other hvclust2008 (both clusters are same version 2012).
<image here>
I came upon this thread: http://social.technet.microsoft.com/Forums/en-US/85fc2ad5-b0c0-41f0-900e-df1db8625445/windows-2012-cluster-resource-name-fails-dns-registration-evt-1196?forum=winserverClustering
Now, I'm stuck on adding a managed service account (mas). I'm not sure if I'm way off track to fix this. Any advice? Thanks in advance!
<image here>Thanks Elton,
I restarted 3 hosts after applying the hotfix. Then I did the steps below and got stuck on step 5. That is when I get the error (image above). There
was an error repairing the active directory object for 'Cluster Name'. For more data, see 'Information Details'.
To reset the password on the affected name resource, perform the following steps:
From Failover Cluster Manager, locate the name resource.
Right-click on the resource, and click Properties.
On the Policies tab, select If resource fails, do not restart, and then click OK.
Right-click on the resource, click More Actions, and then click Simulate Failure.
When the name resource shows "Failed," right-click on the resource, click More Actions, and then click Repair.
After the name resource is online, right-click on the resource, and then click Properties.
On the Policies tab, select If resource fails, attempt restart on current node, and then click OK.
Thanks -
Details of open invoices for the current year/ material price analysis
Hi,
I'm very new to SAP SD,MM modules. Can any one help me in the following of my requirements?
1. How to get the details of open invoices for the current year? Which table should I look into?
2. I have to create a report to display material price analysis. How should I do that?
3. How to develope a report to list out all the Open Sales Order with earliest ship date and requested ship date
4.How to create an interactive report for displaying plant status to know the status of a particular material
5. How to develope a report on Sales Order displaying Sales order Number, Sales order date, Material, PO Date and Customer requested date
Thanks in advance!!
Uma.
Message was edited by:
Uma RaviHi Ravi,
for 3, 4, 5 --> u can go through the code ...
REPORT ZEX2 MESSAGE-ID arc NO STANDARD PAGE HEADING.
Tables :kna1,vbak.
SELECT-OPTIONS : so_vkorg FOR vbak-vkorg OBLIGATORY,
so_vtweg FOR vbak-vtweg OBLIGATORY,
so_spart FOR vbak-spart,
so_kunnr FOR kna1-kunnr.
DATA : BEGIN OF sales_open OCCURS 0 ,
vbeln LIKE vbak-vbeln,
auart LIKE vbak-auart,
kunnr LIKE kna1-kunnr,
bstnk LIKE vbak-bstnk,
lfstk LIKE vbuk-lfstk,
fkstk LIKE vbuk-fkstk,
gbstk LIKE vbuk-gbstk,
END OF sales_open.
DATA : BEGIN OF itm_sales OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
kwmeng like vbap-kwmeng,
lfsta LIKE vbup-lfsta,
lfgsa LIKE vbup-lfgsa,
fksta LIKE vbup-fksta,
fksaa LIKE vbup-fksaa,
gbsta LIKE vbup-gbsta,
END OF itm_sales.
DATA : l_kunnr LIKE kna1-kunnr,
l_vkorg LIKE vbak-vkorg,
l_vtweg LIKE vbak-vtweg,
l_spart LIKE vbak-spart.
DATA: v_statusl(20) TYPE c,
v_statusb(20) TYPE c,
v_statusf(20) TYPE c,
v_statusg(20) TYPE c,
v_status(20) TYPE c,
v_field(1) TYPE c.
data : v_openqty like vbap-kwmeng.
**Selection Screen Validations.
AT SELECTION-SCREEN.
PERFORM validations.
*& Form Validations
* text
* --> p1 text
* <-- p2 text
FORM validations.
**Customer
IF NOT so_kunnr[] IS INITIAL.
SELECT SINGLE kunnr INTO l_kunnr
FROM kna1
WHERE kunnr IN so_kunnr.
IF sy-subrc NE 0.
MESSAGE e002 WITH text-005.
ENDIF.
ENDIF.
**Sales Organization
IF NOT so_vkorg[] IS INITIAL.
SELECT SINGLE vkorg INTO l_vkorg
FROM tvko
WHERE vkorg IN so_vkorg.
IF sy-subrc NE 0.
MESSAGE e003 WITH text-006.
ENDIF.
ENDIF.
**Distribution Channel
IF NOT so_vtweg[] IS INITIAL.
SELECT SINGLE vtweg INTO l_vtweg
FROM tvkov
WHERE vkorg IN so_vkorg
AND vtweg IN so_vtweg.
IF sy-subrc NE 0.
MESSAGE e004 WITH text-007.
ENDIF.
ENDIF.
**Division
IF NOT so_spart[] IS INITIAL.
SELECT SINGLE spart INTO l_spart
FROM tvta
WHERE vkorg IN so_vkorg
AND vtweg IN so_vtweg
AND spart IN so_spart.
IF sy-subrc NE 0.
MESSAGE e005 WITH text-008.
ENDIF.
ENDIF.
ENDFORM. " Validations
Top-of-page.
PERFORM sales_top_of_page.
Start-of-selection.
PERFORM sales_sel.
*& Form sales_sel
* text
* --> p1 text
* <-- p2 text
FORM sales_sel.
SELECT vbeln auart kunnr bstnk
lfstk fkstk gbstk
INTO TABLE sales_open
FROM vbakuk
WHERE vkorg IN so_vkorg
AND vtweg IN so_vtweg
AND spart IN so_spart
AND kunnr IN so_kunnr
AND gbstk NE 'C'.
LOOP AT sales_open.
WRITE:/4 sy-vline,
5 sales_open-vbeln HOTSPOT ON COLOR 2 INTENSIFIED OFF,
16 sy-vline,
17 sales_open-auart COLOR 2 INTENSIFIED OFF,
27 sy-vline,
28 sales_open-kunnr COLOR 2 INTENSIFIED OFF,
40 sy-vline,
41 sales_open-bstnk COLOR 2 INTENSIFIED OFF,
55 sy-vline,
56 sales_open-lfstk,
76 sy-vline,
77 sales_open-fkstk,
96 sy-vline,
97 sales_open-gbstk ,
117 sy-vline.
HIDE sales_open-vbeln .
ENDLOOP.
ENDFORM. " sales_sel
*& Form sales_top_of_page
* text
* --> p1 text
* <-- p2 text
FORM sales_top_of_page.
WRITE:/4 sy-uline(114),
50 'OPEN SALES ORDERS' COLOR 7 INTENSIFIED ON .
WRITE: /4 sy-vline,
5 'SalesOrder' COLOR 1 ,
16 sy-vline,
17 'OrderType' COLOR 1,
27 sy-vline,
28 'Customer' COLOR 1,
40 sy-vline,
41 'PoNumber' COLOR 1,
55 sy-vline,
56 'Delivery Status' COLOR 1,
76 sy-vline,
77 'Billing Status' COLOR 1,
96 sy-vline,
97 'Processing Status' COLOR 1,
117 sy-vline .
WRITE:/4 sy-uline(114).
ENDFORM. " sales_top_of_page
AT LINE-SELECTION.
SELECT a~vbeln
a~posnr
a~matnr
a~kwmeng
b~lfsta
b~lfgsa
b~fksta
b~fksaa
b~gbsta
INTO TABLE itm_sales
FROM vbap AS a JOIN vbup AS b
ON a~vbeln EQ b~vbeln
AND a~posnr EQ b~posnr
AND b~gbsta NE 'C'
WHERE a~vbeln EQ sales_open-vbeln.
IF NOT sales_open IS INITIAL.
LOOP AT itm_sales.
at end of vbeln .
sum.
v_openqty = itm_sales-kwmeng.
endat.
WRITE:/5 itm_sales-vbeln,
itm_sales-posnr,
itm_sales-matnr,
itm_sales-kwmeng,
itm_sales-lfsta,
itm_sales-lfgsa,
itm_sales-fksta,
itm_sales-fksaa,
itm_sales-gbsta.
ENDLOOP.
ENDIF.
skip 2.
write:/ 'open Quantity for the order is ', v_openqty .
for 1.
open invoices..
SELECT vbeln
fkart
kunag
gbstk
INTO TABLE it_billing_h
FROM vbrkuk
WHERE vkorg IN so_vkorg
AND vtweg IN so_vtweg
* AND spart IN so_spart
AND kunag IN so_kunnr
and year in p_year ---->"parameter for year..
AND gbstk NE 'C'. "----> open invoices
for 2..
2. refer TABLES mara, EINA ..
regards,
VIjay
Maybe you are looking for
-
My 13" 2009 MBP sometimes fails to wake from sleep. Is this 10.6.8?!
I recently had to do a clean wipe and reinstall of my SL a couple days ago. The updater immediately did the combo update to 10.6.8. Now when I put the computer to sleep it has trouble waking up. The indicator light stays on at full brightness when I
-
Hard drive will not mount. At first would not back up.
I use an external hard drive to do Time Machine backups. After a while Time Machine was no longer able to back up. I thought I would do an experiment and switch out it's Firewire 800 cable with a USB cable. Since then it has not been able to mount at
-
Exporting FCP 16:9 to QT for the web in 16:9?
Hello everyone, I recently began doing my projects in 16:9 mode. I shoot them with my GL2's in 16:9, then capture to FCP as usual. FCP then automatically recognizes the 16:9 footage and adjusts everything perfectly for me. I figured out how to get th
-
Am I missing something or is there no library method to generate random numbers in midp? if there isn't, can someone provide me with some link to a simple class that generates them or give some source.. I tried to use the date (time) to generate rand
-
BAPI: bapi or RFC for t-code f-28
Hi all, can any one tell me bapi or rfc available for t-code f-28 please help me... Regards, devika G.