What is IMPORT/EXORT statements ?please give some example code?
What is IMPORT/EXORT statements ?please give some example code?
EXPORT :-To read data objects from an ABAP program into ABAP memory, use the following statement:
Syntax
EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.
This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM <f i >, the data object <f i > is saved under its own name. If you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
The EXPORT statement always completely overwrites the contents of any existing data cluster with the same name <key>.
IMPORT :-To read data objects from ABAP memory into an ABAP program, use the following statement:
Syntax
IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
they are used to save and reterive data in ABAP memory.
here is an example to clear about them.
<b>REPORT ZWA_TEST2 .
data: it_bkpf type table of bkpf with header line.
SELECT * FROM bkpf into table it_bkpf.
EXPORT it_bkpf TO MEMORY ID 'MID'.
refresh it_bkpf.
IMPORT it_bkpf FROM MEMORY ID 'MID'.
LOOP AT It_bkpf.
write:/ it_bkpf-belnr.
ENDLOOP.</b>
Reward points if it is useful.......
Similar Messages
-
Hi Experts,
Please give me the logic for the given below scenario
I-Table
A B
1 a
1 b
1 c
2 d
3 a
3 e
3 f
4 g
4 g
In the above itab , itab have lot of records (1000000). i want to display what are all having multiple values only in column A.i want to delete single records (like 2 d(4th row)this row will be delete ) if column A and column B having same value i want to delete that rows.
Thanks & Regards,
RajanHi Raja..
Just paste this code..solves ur problem
data:
begin of itab occurs 0,
f1 type i ,
f2 type c value 'X',
end of itab.
data wa_itab like line of itab.
data:
w_temp type i,
w_ctr type i.
itab-f1 = 1.
append itab.
itab-f1 = 1.
append itab.
itab-f1 = 2.
append itab.
itab-f1 = 2.
append itab.
itab-f1 = 2.
append itab.
itab-f1 = 7.
append itab.
itab-f1 = 3.
append itab.
itab-f1 = 4.
append itab.
itab-f1 = 4.
append itab.
itab-f1 = 5.
append itab.
sort itab by f1.
loop at itab.
<b>at new f1.</b>
w_ctr = sy-tabix + 1.
read table itab index w_ctr into wa_itab.
if itab-f1 ne wa_itab-f1.
continue.
endif.
<b> endat.</b>
write: / itab-f1, itab-f2.
endloop. -
Hi All! I want to use javaFX controles in vaadin applications pls give some sample code
Hi All!
I want to use javaFX 2.0 Controles in Vaadin applications please give some sample code.
Is it possible or not .
RegardsHi,
Thanks manish for your reply but i could not get any help from your suggesion because i have know idea in Java.
I want to know how can we deploy jsp files in Oracle bpel.
Because i'm not getting the proper way to deploy jsp files in oracle bpel.
Can any one help me out by providing step by step information or suggest any url to resolve this.
Regards,
Nikhil Kumar Jain -
We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.
Anyone any ideas to help please?
-
Please give some inputs for Sales order costing
please give some inputs for Sales order costing
Dear Chandu
If you use the valuated sales order stock, the actual cost of goods manufactured is updated to the sales order item (item in an inquiry, quotation, or sales order) under an inventory change cost element.
If you use the nonvaluated sales order stock, the actual cost of goods manufactured is updated to the sales document item under a settlement cost element or a source cost element.
Sales and administration costs are updated under a separate cost element.
Thanks
G. Lakshmipathi -
Hi Do we have tables for SAP BPC EPM Comments ? if we have what are they could you please explain some one.
Hi Narahari,
Yes, we have tables for SAP BPC EPM comments and it is stored in backend BW.
Please follow the below steps to see it -
1. Go to RSA1 and find the infoprovider name for the application/cube that contains the comments For example, the infoprovider name is /CPMB/VZIKG4O
2. Then Go to SE16 and enter the comment table name. The comment tables are generated tables. You can determine there name by using the following rules:
a. The table name always starts with '/1CPMB/'
b. The rest of the name is derived from the infoprovider name - it is the first two characters after the second '/' + the fourth, fifth and sixth characters + CMT (for comments) or CMTA (for archived comments). In my case the comments table name would be "/1CPMB/VZKG4CMT" and the archived comments table would be "/1CPMB/VZKG4CMTA".
3. Hit 'F7' or click the table contents button.
4. Enter the criteria for the comments you wish to export.
Hope this helps. -
What is common distrn channel? give some examplles?
what is common distrn channel? give some examplles?
hi,
If you do not need the master data (customer / material and condition master data) to
be differentiated according to distribution channels, you have to set up a representative
distribution channel. The master data for the representative distribution channel
applies to all distribution channels for which you have set up this reference in
Customizing.
By doing this, you can minimize the effort of entering and maintaining master data.
In addition, you can update statistics for distribution channels without having to create
master data for the various distribution channels.
Consider you have three Dist Chnls (01, 02 & 03) and 10 customers who can buy thru either of these dist chnls. In order to enter a sales order you will have to extend the customers to all the 3 Dist Chnls, which means for 10 customers you will have 30 records in the tables. In real time scenario the number of customers and dist chnls are huge and they keep increasing. Imagine the amount of data you will have to maintain.
For this purpose SAP came up with the Common Distribution Channel Concept where you would identify the dist chnl for which you can maintain records and in the process reduce the number of records and also use it for the other dist chnls too.
If you create the dist chnl 01 as the common dist chnl and link 02 & 03 to it, you will have to maintain only 10 records and still can use it for all the 3 dist chnls. The same is applicable for the common division.
CHAN -
Can you please give me my code to be able do register Photoshop and Lightroom, I have now got a one month try out version of Photoshop.
Can you also give me my log gin, I have two companies, so I my have mixed up the logins.
Best R
Leif O Pehrson
26 aug 2014 kl. 14:08 skrev Adobe Creative Cloud <[email protected]>:
I have a order number, do you want it ?Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
Some general information for a Cloud subscription
Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
-Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
http://www.adobe.com/products/creativecloud/faq.html
http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
Cloud Getting Started https://helpx.adobe.com/creative-cloud.html -
Hi guys please give me sample code for call transaction that handles error
hi guys, please give me sample code for call transaction that handles error,
please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
please do help me as it is urgent.
thanks and regards.
prasadnn.Hi Prasad,
Check this code.
Source Code for BDC using Call Transaction
*Code used to create BDC
*& Report ZBDC_EXAMPLE *
*& Example BDC program, which updates net price of item 00010 of a *
*& particular Purchase order(EBELN). *
REPORT ZBDC_EXAMPLE NO STANDARD PAGE HEADING
LINE-SIZE 132.
Data declaration
TABLES: ekko, ekpo.
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekko-ebeln,
waers TYPE ekko-waers,
netpr TYPE ekpo-netpr,
err_msg(73) TYPE c,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko,
it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_error TYPE t_ekko,
it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_success TYPE t_ekko.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
*Used to store BDC data
DATA: BEGIN OF bdc_tab OCCURS 0.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
*Screen declaration
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001. "Purchase order Num
SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
TITLE text-002. "New NETPR value
PARAMETERS: p_newpr(14) TYPE c obligatory. "LIKE ekpo-netpr.
SELECTION-SCREEN END OF BLOCK block2.
*START-OF-SELECTION
START-OF-SELECTION.
Retrieve data from Purchase order table(EKKO)
SELECT ekkoebeln ekkowaers ekpo~netpr
INTO TABLE it_ekko
FROM ekko AS ekko INNER JOIN ekpo AS ekpo
ON ekpoebeln EQ ekkoebeln
WHERE ekko~ebeln IN so_ebeln AND
ekpo~ebelp EQ '10'.
*END-OF-SELECTION
END-OF-SELECTION.
Check data has been retrieved ready for processing
DESCRIBE TABLE it_ekko LINES gd_lines.
IF gd_lines LE 0.
Display message if no data has been retrieved
MESSAGE i003(zp) WITH 'No Records Found'(001).
LEAVE TO SCREEN 0.
ELSE.
Update Customer master data (instalment text)
LOOP AT it_ekko INTO wa_ekko.
PERFORM bdc_update.
ENDLOOP.
Display message confirming number of records updated
IF gd_update GT 1.
MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
ELSE.
MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
ENDIF.
Display Success Report
Check Success table
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
Display result report column headings
PERFORM display_column_headings.
Display result report
PERFORM display_report.
ENDIF.
Display Error Report
Check errors table
DESCRIBE TABLE it_error LINES gd_lines.
If errors exist then display errors report
IF gd_lines GT 0.
Display errors report
PERFORM display_error_headings.
PERFORM display_error_report.
ENDIF.
ENDIF.
*& Form DISPLAY_COLUMN_HEADINGS
Display column headings
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records updated successfully:'(013).
WRITE:/ sy-uline(42).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(004), sy-vline,
(11) 'Old Netpr'(005), sy-vline,
(11) 'New Netpr'(006), sy-vline.
WRITE:/ sy-uline(42).
ENDFORM. " DISPLAY_COLUMN_HEADINGS
*& Form BDC_UPDATE
Populate BDC table and call transaction ME22
FORM bdc_update.
PERFORM dynpro USING:
'X' 'SAPMM06E' '0105',
' ' 'BDC_CURSOR' 'RM06E-BSTNR',
' ' 'RM06E-BSTNR' wa_ekko-ebeln,
' ' 'BDC_OKCODE' '/00', "OK code
'X' 'SAPMM06E' '0120',
' ' 'BDC_CURSOR' 'EKPO-NETPR(01)',
' ' 'EKPO-NETPR(01)' p_newpr,
' ' 'BDC_OKCODE' '=BU'. "OK code
Call transaction to update customer instalment text
CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
MESSAGES INTO messtab.
Check if update was succesful
IF sy-subrc EQ 0.
ADD 1 TO gd_update.
APPEND wa_ekko TO it_success.
ELSE.
Retrieve error messages displayed during BDC update
LOOP AT messtab WHERE msgtyp = 'E'.
Builds actual message based on info returned from Call transaction
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = messtab-msgid
msgnr = messtab-msgnr
msgv1 = messtab-msgv1
msgv2 = messtab-msgv2
msgv3 = messtab-msgv3
msgv4 = messtab-msgv4
IMPORTING
message_text_output = w_textout.
ENDLOOP.
Build error table ready for output
wa_error = wa_ekko.
wa_error-err_msg = w_textout.
APPEND wa_error TO it_error.
CLEAR: wa_error.
ENDIF.
Clear bdc date table
CLEAR: bdc_tab.
REFRESH: bdc_tab.
ENDFORM. " BDC_UPDATE
FORM DYNPRO *
stores values to bdc table *
--> DYNBEGIN *
--> NAME *
--> VALUE *
FORM dynpro USING dynbegin name value.
IF dynbegin = 'X'.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-program,
value TO bdc_tab-dynpro,
'X' TO bdc_tab-dynbegin.
APPEND bdc_tab.
ELSE.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-fnam,
value TO bdc_tab-fval.
APPEND bdc_tab.
ENDIF.
ENDFORM. " DYNPRO
*& Form DISPLAY_REPORT
Display Report
FORM display_report.
FORMAT COLOR COL_NORMAL.
Loop at data table
LOOP AT it_success INTO wa_success.
WRITE:/ sy-vline,
(10) wa_success-ebeln, sy-vline,
(11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
(11) p_newpr, sy-vline.
CLEAR: wa_success.
ENDLOOP.
WRITE:/ sy-uline(42).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. " DISPLAY_REPORT
*& Form DISPLAY_ERROR_REPORT
Display error report data
FORM display_error_report.
LOOP AT it_error INTO wa_error.
WRITE:/ sy-vline,
(10) wa_error-ebeln, sy-vline,
(11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
(73) wa_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
ENDFORM. " DISPLAY_ERROR_REPORT
*& Form DISPLAY_ERROR_HEADINGS
Display error report headings
FORM display_error_headings.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(009), sy-vline,
(11) 'Netpr'(010), sy-vline,
(73) 'Error Message'(012), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. " DISPLAY_ERROR_HEADINGS
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Give Me Some Example Codes!!
I need some example codes that has a dataSource and the separate java file written in JDBC
The following code will establish a database connection, if you have a datasource called "Labor" defined
--> go to Control Panel
--> go to Administrative Tools
--> ODBC Data sources
--> User DSN (Add a data source called Labor of type Ms-Access) You will need to have a database already created. Give the path to this database.
Connection con = null;
Statement st = null;
String url = "jdbc:odbc:Labor"; //define the URL
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch (Exception e) {} //Locate the Driver
try {
con = DriverManager.getConnection(url, "", "");
} catch (Exception e) {} //Open A Database Connection
try { st = con.createStatement(); } catch (Exception e) { }
You can then execute SQL queries using the Statement object. It will return result sets, but you need to research this some more as there is too much to explain.
Adwait -
how to use getAncestor(n),getdescendant(child,child) in sql why they are use please give me example
jitendraBelow are a few examples that demonstrate these hierarchyid data type methods. See the hierarchyid reference in the SQL Server Books Online for more examples of these and other methods (http://technet.microsoft.com/en-us/library/bb677193.aspx).
--return a child of this node ('/1/')
SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, NULL).ToString();
--returns a child of this node greater than child node '/1/' ('/2/')
SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), NULL).ToString();
--returns a child of this node less than chold node '/1/' ('/0/')
SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, CAST('/1/' AS hierarchyid)).ToString();
--returns a child of this node greater than child node '/1/' and less than child node '/2/' ('/1.1/')
SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), CAST('/2/' AS hierarchyid)).ToString();
--return ancestor of node 1 level up from this node ('/1/2/')
SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(1).ToString();
--return ancestor of node 2 levels up from this node ('/1/')
SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(2).ToString();
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
Give some examples of sd tickets
give some examples of sd tickets, how these are solved?????/
Check these few ones
1. Account Assignment of Customer / material not maintained in Customer / Material Master (If maintained in combination in VKOA).
Solution:
Option 1 (Standard solution):
step 1: Cancel Billing Document --> Reverse PGI --> cancel Delivery --> Cancel Sales Order
step 2: Maintain Customer master / Material Master correctly.
step 3: Recreate sales Order --> Delivery --> PGI --> Invoicing.
Option 2:
Force the Account Assignment Group of Customer / Material through Debug in change mode of Billing document, which will release Billing Document to Accounting.
2. Account Key not maintained in Pricing Procedure:
Impact: This may create accounting document, but if condition type, which are to be posted to account, but do not have account key maintained in pricing procedure, it will not be post the relevant condition type to G/L account.
3. Billing Document not being released to accounting --
In Material Master, there is some link between Profit Centre & MRP Type. If one of it is not maintained, erratically few documents get stuck while releasing Billing Document to accounting. Few of course get posted.
Solution1: Cancel Billing Document --> Reverse PGI --> Cancel Delivery --> Block the sales Order & Create new sales Cycle all over again after rectifying Material master.
Solution 2: (Temporary Solution) In Debug mode in Billing, force the Profit Center in Billing Document with the help of Abaper. But ensure Material master is rectified.
From FI Side, you require to check that all the G/L account has been maintained through T.Code: FS00. G/L account being Master data has to be created in each client to upload through LSMW / SCATT / BDC.
In Billing Document in change mode (in the first screen where we enter Billing Document number), on the top most left hand corner, take a dropdown on Billing Document & select Release to accounting. Here you can get the under mentioned possible message:
1. G/L account not found
2. Cost Element not maintained for G/L account.
In both the above cases, FI consultant requires to take corrective action. -
Dear all,
I have to develop an application in Struts by using DAO design pattern ..........
Please give an example on Struts using DAO...................
Thank you
PleaseI'm glad you asked. It means Read The Flaming Manual. That'd be the struts manual by the way.
-
4.give some examples of collaborations from the Collaboration Launch Pad.
give some examples of collaborations from the Collaboration Launch Pad.
Answered my own question:
Here it is:
1. Logon to portal as Administrator
2. Navigate to Content Administrator -> Portal Content
3. Open the tree 'Portal Content'
4. Open the tree 'Content Provided by SAP'
5. Open the tree 'End User Content'
6. Open the tree 'Standard Portal user'
7. Open the Object 'Default Framework Page'
8. Open the Properties of 'Tool Area'
9. Select the 'Property Category' as 'Select all'
10. Set the property 'Enable Collaboration Launch Pad' to "Yes"
11. Set the property 'Enable Real-Time Collaboration' to "Yes"
12 Restart the portal (If you are not getting Collaboration Launch Pad). -
Give some example of sap sd tickets
Dear Sir,
pls give some examples of sap sd tickets & also explain how to solve ticket issues..
With Regards
Prasantahi,
pl check this link where i have recently posted one ticket :
[ticket|Re: urgent...................hi alll tickets]
and try to make a search in this forum, you might get more.
regards
sadhu kishore
Maybe you are looking for
-
My itunes account wont let me download music
i am trying to download my music from my itunes purchased but showes a message that i cant download my music until 90 days. what can i do?
-
NPE 10.1.3.1 - Can you solve it?
I get an NPE in OC4J 10.1.3.1 that I did not get in OC4J 9.0.4. The easisest way to explain it that it seems that a ResultSet that is populated in a bean, via JSP javascript invocation, is "lost" once that same JSP attempts to access it for display.
-
Must-know BlackBerry Z10 and BlackBerry 10 tips and tricks
Check out the following must-know BlackBerry Z10 and BlackBerry 10 tips and tricks to get the most out of your new BlackBerry 10 smartphone. 1) BlackBerry 10's Built-In Screen Shot Feature Capturing a screen shot on a BlackBerry 10 device is simple.
-
Media burner is not working in 4s what to do next
media burner is not working in 4s what to do next
-
Bestimmte Seiten einem Printbutton zuordnen..
Hallo Zusammen, ich hoffe ihr könnte mir weiterhelfen, da ich praktisch null Erfahrung mit Adobe Acrobat Pro habe. Ich möchte mir eine PDF datei erstellen, bei der ich auf der ersten Seite irgendwie eine "Selektionsmöglichkeit" habe diverse Seiten au