Create an ABAP Calculator
how can i create a calculator with reports, which will have 4 radio buttons namely addition,sub,multiplication and division.if the user clicks on any one of the radio button then a screen will come which will ask the user for the two numbers and if the user has selected the addition radio button then addition is done n if the user has selected subtraction then subtraction is done....
if it is possible with abap then how can i do this...
plzz help me work out the logic.
Edited by: Alvaro Tejada Galindo on Mar 12, 2008 6:03 PM
Hi,
Try this...
DATA: X_VALUE(15) TYPE C.
call function 'FITRV_CALCULATOR'
*EXPORTING
*INPUT_VALUE =
*CURRENCY =
*START_COLUMN = '10'
*START_ROW = '10'
IMPORTING
OUTPUT_VALUE = X_VALUE
EXCEPTIONS
INVALID_INPUT = 1
CALCULATION_CANCELED = 2
OTHERS = 3.
*IF SY-SUBRC = 0.
*WRITE:/ 'Output Value ', X_VALUE.
*ENDIF.
R/points if helpful....
Regards
AK
Edited by: AK on Mar 13, 2008 8:57 AM
Similar Messages
-
How to create an ABAP Query with OR logical expression in the select-where
Hi,
In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
Please help me on this.. Points will be rewarded.
Thanks a lot.
Regards,
Question ManHi Bhupal, Shanthi, and Saipriya,
Thanks for your replies. But that didn't answer my question.
Bhupal,
You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
Shanthi,
Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
Saipriya,
Like what I have said, this is a standard SAP code so we can't do your suggestion.
I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
Thanks a lot.
Points will be rewarded.
Regards,
Question Man -
Creating a rate calculator [was: how do i create this?]
I want to create a rate calculator on a website with 2 input fields: calling from and calling to. Here is what i've got:
CALLING FROM table:
COUNTRY $/MIN
Africa 0.10
Europe 0.20
Asia 0.30
CALLING TO table:
COUNTRY $/MIN
Africa 0.20
Europe 0.30
Asia 0.50
USA 0.10
Basically to get the rate $/min the CALLING FROM selected country and the CALLING TO selected country will be added together i.e calling from africa to USA would be $0.20/min (0.10 + 0.10).
- How do i create the database for this? (in access)
- How do i then create the rate calculator in a webpage? (asp/php)???
I would really appreciate anyone who will be able to help me in this.
Thank you very much.
Natalie
[Subject line edited by moderator to indicate nature of question]Create a database table with 3 columns
Country
ToRate
FromRate
Populate these values as appropriate.
Create two drop down menus on your page; FromRate and ToRate. Populate these with the values (Display value and rate) from the table.
Then, you could either:
1) Submit the form to a server side script that adds and displays the values
2) Use Javascript to add and display the values -
How to Call Webservices in ABAP(Syntax) created in abap ,java etc
All Champs,
Can some one explain me(programatically) that how to access webservices in following cases.
case 1: A webservice created in ABAP (FM,BAPI,FUNCTION GROUP) by using wizard . How to call this webservice in report or in any bsp or webdynpro application.
case 2: A webservice created in JAVA,.NET or in any third party technology , how to use in abap(by considering that endpoint has been created for third party webservice)
points will be rewarded .
regards
pankyHi,
case 1: for WDP, you can create the web service model via "Import Adaptive Web Service" or "Import Web Service Model (deprecated)" by supplying wsdl URL.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bservice
case 2: In ABAP, create a proxy object at trx code SE80.
http://help.sap.com/saphelp_nw04s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
Both cases are wizard-based. It's pretty intuitive.
- julius -
How to Execute the Business objects created in ABAP from webDynpro applicat
Wht is the steps , or where the help documents are available for accessing the Business objects created in ABAP or R/3 systems from webDynpro project.
Hello Vishal,
I couldn't find any useful documents for your purpose.
However i had a similar requirement and had implemented the same using GCP APIs. But before i send you the code help, i would like to know your exact requirement. What are you trying to achieve? Are you just wanting to execute the BO and get the result? Or is your requirement has got something more to do?
Regards,
Sudeep. -
Using Tables created in ABAP DDIC with Java DDIC in NW04s?
Hi all!
Could anybody tell me what the functionality "DDIC Preferences", where you can enter a R/3-System with user & password, is being used for?
I couldn' t find any docs on that, but in ABAP Dictionary I found a checkbox "Exclusive Use For Java" in SE11.
Is there a possibility to create db-tables in ABAP and use them in Java in this way. And - if so - how exactly does it work?
Regards,
ThomasYou can import the dictionary data type that you create in Abap Dictioanry SE11 using the adaptive RFC model in a webdynpro application in NW04S.
You can specify the model name,package,specify default logical names,provide the R/3 system logon information and the function modules for importing the data.
Once this is done,the R/3 data types get imported into the logical dictionary which is visible in your application nodes.
Regards,
Vidya -
Create a abap server proxy and consume the service with the pi WS Navigator
hi all:
i create a abap server proxy ,i use the t_code "sproxy" to generate the proxy, and then write the abap code to implemente the method; then i use the T-code (soamanager) to define the endpoint, but when i click the " Open WSDL document for selected binding" to get the WSDL file ; some error occur,the error is follow:
==========================================================================
Service cannot be reached
What has happened?
URL http://foxxi:50000/sap/bc/srt/wsdl/bndg_000C2938EF591DEE8A9A8D3DD5CCB6AD/wsdl11/allinone/ws_policy/document call was terminated because the corresponding service is not available.
Note
The termination occurred in system XIF with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If it is a valid URL, check whether service /sap/bc/srt/wsdl/bndg_000C2938EF591DEE8A9A8D3DD5CCB6AD/wsdl11/allinone/ws_policy/document is active in transaction SICF.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:FOXXI_XIF_00-v:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework Team
==========================================================================
when i go to the ws navigator to consume the service i can not find the service which i define, but some system content display , what's the problemhad a chance to look at this?
/people/jitender.chauhan/blog/2009/04/20/service-enabling-in-abap -
How to create a abap proxy in sproxy netweaver 7.01
sproxy of nw 7.01 is completely different from previous version.For example in prev. versions there is message interface (inbound) (outbound) ...
but in 7.01 , i cannot find how to create an abap proxy class , there is only display proxy in context menu in all segments.(like service interface)
how can i create proxy ?
thanks a lotIn help sap.con says that
Expand the Service Interfaces node.
Select the outbound service interface.
Open the context menu and choose Create.
but there is no outbound service interface under service interface node
what can i do?
thanks a lot.. -
my usual practice in creating new abap program is in se80 then type the desired program name then the sap will display that the program name is not existing and will ask if i want to create it.
however in my new company when i do the above step it just display that the program is not existing and no question if i will create this. in line with this i would like to ask how would i create new abap program?
thanks.
donnaHi Donna,
Do you have the relevant authorisations? Maybe you donot have authorisation to create new objects? Check your profiles via SU01. Personally I always ask for SAP_ALL and SAP_NEW in the Development system.
Cheers,
Pat. -
How to use selection buttons in an ALV created without abap objects?
Hi, I use an alv created without ABAP Objects to show some information. Can I introduce inside the alv, the top buttons to select all rows / none row? And the second question, how may I introduce lateral buttons in the ALV to select indidividual rows?
Thanks!HI
i think you use REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY FMs.
Try to calling the function in this way
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = 'YOURREPORT'
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMAND'
* I_STRUCTURE_NAME =
is_layout = ls_layout
it_fieldcat = fieldcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = gt_variant
it_events = event_tab
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = tb_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " LISTA
where
'SET_PF_STATUS'
'USER_COMAND'
are two form like this.
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'. " EXCLUDING rt_extab.
ENDFORM. " SET_PF_STATUS
FORM user_comand USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&CPR'.
WHEN 'YOUR CODE FUNCTION'
endcase.
I hope it can help you.
Bye
enzo -
Problem creating new ABAP Technical System in SLD
I newly installed a ECC 5 IDES system (ABAP + JAVA) on my computer for ABAP and Webdynpro learning.
I got problem when I try to create new ABAP Technical System in SLD.
I put my steps of installation here so you know my full story.
1. Install Central Instance (Non-unicode);
2. Install Database Instance (Non-unicode);
3. Install Java add-in on ABAP;
4. Configure the HTTP connection parameters in J2EE Engine Visual Administrator
All of the above steps are successful.
Now my Webdynpro application need to access a Function Module, so I want to create a JCo connection in Webdynpro Content Administrator, but both application server and message server are not available, so I can't create any connection.
I go back to SLD to register ABAP Technical System step by step below:
1. Choose Home ® Technical Systems.
2. Choose New Technical System.
3. Select the AS ABAP radio button.
4. Choose Next.
5. Enter system details (Installation number, host name).
6. Choose Next.
7. Enter message server and central application server details.
8. Choose Next.
9. Choose Next.
10. Add New Client 800, leave logical name blank, click Add.
11. Choose Next.
12. Here the system says 'No product available', the whole effort make no sense.
I tried every possible settings, but at step 12 it keeps telling me 'No product available'.
This is the problem I want to fix.
Can anyone help me?
Thanks a lot in advance.hi,
use th following thread,
No products installed while adding a Technical ABAP System in the SLD.
Regards
Jayapriya -
Problem consuming web service created by ABAP via standalone java client
I'm trying to consume web service created by ABAP in R3 system via standalone java client. I should be getting a string reply after consumed the web service (ZSMS_INBOUND), but so far i received null. I cant find any exception or log to trace the problem. Any help would be appreciated. Is there anything wrong with my client calling the web service?
public void myMethod{
// TODO : Implement
try{
Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap- client=100&wsdl=1.1&mode=sap_wsdl");
inboundService = (ZSMS_INBOUND) stub;
BAPIRET2 str = inboundService.ZSMS_INBOUND(date, message, modemId, smsId, tel, time);
ackDeliveryArray<i> = str.toString();
}catch (Exception e) {
e.printStackTrace();
Generated following SAP help standalone proxy creation steps.
***files fr SEIs
ZSMS_INBOUND.java (interface)
ZSMS_INBOUNDService.java (interface)
ZSMS_INBOUNDServiceImpl.java
ZSMS_INBOUNDSoapBindingStub.java
***files fr Proxy classes
ZSMS_INBOUND.java
ZSMS_INBOUNDResponse.java
BAPIRET2.java
.... many more files
the wsdl is as below (generated by ABAP):
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:n0="http://www.sap.com/webas/630/soap/features/authentication/" xmlns:sap="http://www.sap.com/webas/630/wsdl/features" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
- <xsd:simpleType name="char1">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char10">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="10" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char17">
+ <xsd:restriction base="xsd:string">
<xsd:maxLength value="17" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char170">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="170" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char20">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="20" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char220">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="220" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char30">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="30" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char32">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="32" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char50">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="date">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="10" />
<xsd:pattern value="\d\d\d\d-\d\d-\d\d" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="numeric3">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="3" />
<xsd:pattern value="\d*" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="numeric6">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="6" />
<xsd:pattern value="\d*" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="time">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="8" />
<xsd:pattern value="\d\d:\d\d:\d\d" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:complexType name="BAPIRET2">
- <xsd:sequence>
<xsd:element name="TYPE" type="tns:char1" />
<xsd:element name="ID" type="tns:char20" />
<xsd:element name="NUMBER" type="tns:numeric3" />
<xsd:element name="MESSAGE" type="tns:char220" />
<xsd:element name="LOG_NO" type="tns:char20" />
<xsd:element name="LOG_MSG_NO" type="tns:numeric6" />
<xsd:element name="MESSAGE_V1" type="tns:char50" />
<xsd:element name="MESSAGE_V2" type="tns:char50" />
<xsd:element name="MESSAGE_V3" type="tns:char50" />
<xsd:element name="MESSAGE_V4" type="tns:char50" />
<xsd:element name="PARAMETER" type="tns:char32" />
<xsd:element name="ROW" type="xsd:int" />
<xsd:element name="FIELD" type="tns:char30" />
<xsd:element name="SYSTEM" type="tns:char10" />
</xsd:sequence>
</xsd:complexType>
- <xsd:element name="ZSMS_INBOUND">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="DATE" type="tns:date" />
<xsd:element name="MESSAGE" type="tns:char170" />
<xsd:element name="MODEMID" type="tns:char10" />
<xsd:element name="SMSID" type="tns:char17" />
<xsd:element name="TEL" type="tns:char20" />
<xsd:element name="TIME" type="tns:time" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="ZSMS_INBOUNDResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="RETURN" type="tns:BAPIRET2" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="ZSMS_INBOUND">
<wsdl:part name="parameters" element="tns:ZSMS_INBOUND" />
</wsdl:message>
- <wsdl:message name="ZSMS_INBOUNDResponse">
<wsdl:part name="parameters" element="tns:ZSMS_INBOUNDResponse" />
</wsdl:message>
- <sap:Feature name="design_0" uri="http://www.sap.com/webas/630/soap/features/authentication/">
- <sap:Property qname="n0:AuthenticationLevel">
<sap:Option value="n0:None" />
</sap:Property>
</sap:Feature>
- <wsdl:portType name="ZSMS_INBOUND">
<sap:useFeature feature="tns:design_0" />
- <wsdl:operation name="ZSMS_INBOUND">
<wsdl:input message="tns:ZSMS_INBOUND" />
<wsdl:output message="tns:ZSMS_INBOUNDResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ZSMS_INBOUNDSoapBinding" type="tns:ZSMS_INBOUND">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="ZSMS_INBOUND">
<soap:operation soapAction="" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="ZSMS_INBOUNDService">
- <wsdl:port name="ZSMS_INBOUNDSoapBinding" binding="tns:ZSMS_INBOUNDSoapBinding">
<soap:address location="http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>I'm now able to consume the web service, but with the error as below:
Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory
BAPIRET2 mappingInfo:
TYPE TYPE false false 11
ID ID false false 11
NUMBER NUMBER false false 11
MESSAGE MESSAGE false false 11
LOG_NO LOG_NO false false 11
LOG_MSG_NO LOG_MSG_NO false false 11
MESSAGE_V1 MESSAGE_V1 false false 11
MESSAGE_V2 MESSAGE_V2 false false 11
MESSAGE_V3 MESSAGE_V3 false false 11
MESSAGE_V4 MESSAGE_V4 false false 11
PARAMETER PARAMETER false false 11
ROW ROW false false 11
FIELD FIELD false false 11
SYSTEM SYSTEM false false 11
My java code is :
public class MyTest {
public static void main(String[] args){
try{
Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100");
ZSMS_INBOUND inboundService = (ZSMS_INBOUND) stub;
BAPIRET2 str = inboundService.ZSMS_INBOUND(param1,param2,param3,param4,param5,param6);
System.out.println(str.toString());
}catch (Exception e) {
e.printStackTrace(); -
How to create a ABAP report off of SRM box for live data?
How to create a ABAP report off of SRM box for live data?
Thanks in advance.
York.you can try infoset query:
STEP - A:
1. Go to T Code RSQ02 and give the InfoSet name & select CREATE.
2. Provide the Name(Description) and Data Source i.e. for eg here i take "DIRECT READ OF TABLE" = /BIC/AODS100. Then CONTINUE.
3. Select what to Include in the 3 options available with the POPUP, here "INCLUDE ALL TABLE FIELDS". Then Check the fields and click GENERATE(one RED and WHITE round icon).
4. Now provide the PACKAGE for the INFOSET. Come Back(F3).
STEP - B: optional(If u want to create a new user group)
1. Select ENVIRONMENT -> USER GROUPS. Provide the User Group name and CREATE.
2. Provide Description and SAVE.
3. Provide PACKAGE and SAVE. Come Back (F3) to the Initial Screen.
4. Click Role/User Group Assignment. Select Newly Created User Group or an existing one. Then SAVE (CTRL + S). F3.
STEP - C:
1. Select ENVIRONMENT -> Queries. Provide the query name and CREATE.
2. Select the INFOSET u have created and assigned the user group.
3. Provide the Title and Select BASIC LIST. There you have to select (check) the fields you want to display, SAVE and then TEST. It will ask for Variant, just CONTINUE. -
Error no. SPRX084 when create a ABAP proxy class
Hy Guys,
I create a Web Services on Axis and Tomcat machine, it's in document/literal Style format.
When I try to import WSDL to create an ABAP proxy class, Proxy class generator, returm me an error number SPRX084 having said me that the message, in part TAG on element Attribute, uses a wrong or inexistent element.
I've the same case from "http://www.thomas-bayer.com/axis2/services/BLZService?wsdl".
There's a solution?
Best Regards,
Antonelloi tried with this wsdl (http://www.thomas-bayer.com/axis2/services/BLZService?wsdl) and dont get the error you are mentioning.
-
Need to create an ABAP query on 2 tables BSIK and BSAK
Hi,
I need to create an ABAP query which has the fields document no, doc date, amount in doc currency and some other fields from 2 tables BSIK and BSAK. Is it possible to write a single abap query to fetch the data from both the tables.
The selection screen fields are doc number, date and doc type.
I need to display invoices for open items and cleared items together.
Please let me know if this is possible.
Thanks and Regards,
AjithSee if this is anything like what you need:
REPORT ztest MESSAGE-ID 00.
TABLES: bkpf, bseg.
SELECT-OPTIONS: s_bukrs FOR bkpf-bukrs,
s_belnr FOR bkpf-belnr,
s_gjahr FOR bkpf-gjahr,
s_blart FOR bkpf-blart,
s_budat FOR bkpf-budat.
DATA: BEGIN OF bkpf_int OCCURS 0.
INCLUDE STRUCTURE bkpf.
DATA: END OF bkpf_int.
DATA: BEGIN OF bseg_int OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF bseg_int.
DATA: BEGIN OF bsik_int OCCURS 0.
INCLUDE STRUCTURE bsik.
DATA: END OF bsik_int.
SELECT *
FROM bkpf
INTO TABLE bkpf_int
WHERE bukrs IN s_bukrs
AND belnr IN s_belnr
AND gjahr IN s_gjahr
AND blart IN s_blart
AND bldat IN s_budat.
SORT bkpf_int BY bukrs belnr gjahr.
SELECT *
FROM bseg
INTO TABLE bseg_int
FOR ALL ENTRIES IN bkpf_int
WHERE bukrs = bkpf_int-bukrs
AND belnr = bkpf_int-belnr
AND gjahr = bkpf_int-gjahr
AND koart = 'K'.
SORT bseg_int BY bukrs belnr gjahr buzei.
LOOP AT bseg_int.
MOVE-CORRESPONDING bseg_int TO bsik_int.
READ TABLE bkpf_int WITH KEY
bukrs = bseg_int-bukrs
belnr = bseg_int-belnr
gjahr = bseg_int-gjahr
BINARY SEARCH.
IF sy-subrc = 0.
MOVE-CORRESPONDING bkpf_int TO bsik_int.
APPEND bsik_int.
ELSE.
MESSAGE e001 WITH 'Error during read'.
ENDIF.
ENDLOOP.
Rob
Maybe you are looking for
-
Connection is closed after transaction commit
WebLogic 10.3.0.0, Oracle 10gXE, JPA is provided by EclipseLink v1.1.2.v20090612-r4475. Transactions are managed by WLS. There is a stateless bean @Stateless() @TransactionAttribute(TransactionAttributeType.REQUIRED) @TransactionManagement(value = Tr
-
Relationship between tables milestone and wbs element
Hi Guys, 1.I have taken two tables in my source code retieving milestone number(mlst_zaehl), usage(mlstn),and wbs element(pspsnr) from TABLE MLST and the other table is PRPS(WBS ELEMENT TABLE, and the fields are psphi(project) , and pspnr(wbs elemrn
-
How to recreate ~/.ssh directory and files
Hi Folks, I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machi
-
WRT160Nv2 Suddenly Stopped Working
A technician from my ISP came and while trying to troubleshoot the slow speed, he screwed up soemthing after which my WRT160N refuses to connect to the internet. If I bypass the router and connect the LAN cable from the ISP's modem directly into my P
-
Hi All, I have a query that does a lookup on inventory and returns useful info as onhand, committed, warehouse, various price list data etc. It is very useful for our telephone sales guys as they can see all the information they need in one quick sea