Problems to sync data using Consolidator
Hi,
The first time I executed the Consolidator, it copied a table from Oracle 8 to Oracle Lite.
I added then some lines in both tables, I executed the Consolidator again, but I had no changes in none of the tables.
how can you explain that.
thanks in advance.
I've found the problem by myself
Similar Messages
-
Problem in reading data using scanner
In a client - server application,Iam sending the data "~!Raam7krishna~!" continously to the server periodically.... In the server side,Iam using scanner to read the data with the delimiter ~!. Server should continously read the data from the client.so iam using infinite for loop to read the data from the inputstream using scanner..
Problem is when a client send the data first time,i am received the data correctly in server side... At the second time of transmission of data from client to server,Server should not read any data .... but it does not throw any exception... but my client send the data to the server.... can anyone give me solution......
Scanner scan=new Scanner(InputStream);
for(;;)
{ String data=scan.next
}In a client - server application,Iam sending the data "~!Raam7krishna~!" continously to the server periodically.... In the server side,Iam using scanner to read the data with the delimiter ~!. Server should continously read the data from the client.so iam using infinite for loop to read the data from the inputstream using scanner..
Problem is when a client send the data first time,i am received the data correctly in server side... At the second time of transmission of data from client to server,Server should not read any data .... but it does not throw any exception... but my client send the data to the server.... can anyone give me solution......
Scanner scan=new Scanner(InputStream);
for(;;)
{ String data=scan.next
} -
Problem in exchange data using Bean
Hi all,
I have a problem when creating a portal application.
I've done through the steps described in this link:
http://www.ajvic.es/irj/portalapps/com.sap.portal.pdk.htmlb.htmlbmanuals/docs/dynpage-01.html
In this example, I use bean to exchange data.
In the function <b>doInitialization()</b> in JSPDynpage.java:
public void doInitialization()
// create the bean and set a default text value "unknown user
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
// new bean object
UserNameContainer = new DynPageNameBean();
// set default name
UserNameContainer.setName("unknown user");
// store bean in profile for the JSP
myProfile.putValue("UserNameBean", UserNameContainer);
// Now we set the state so that we can decide what action to do next
state = INITIAL_STATE;
The code: <b>myProfile.putValue("UserNameBean", UserNameContainer);</b> give a warning: "The methode getValue(String) from the type IPortalComponentProfile is deprecated" and I see that the value of UserNameContainer is <b>not</b> assigned to "UserNameBean".
If I use this code:
UserNameContainer = (MyBeanClass) myContext.getValue("MyB");
UserNameContainer.setName(name);
The result is the same.
Do you know how to solve this problem ?
Thank you in advance & kindly regards.
TweetyHi
Here is what you should do.
First The Bean
public class UserBean implements Serializable {
private String name;
public String getName() {
return name;
public void setName(String string) {
name = string;
Next the Dynpage DoInitialization Method .
IPortalComponentRequest request =
(IPortalComponentRequest) this.getRequest();
UserBean myBean = (UserBean) request.getComponentSession().getValue("myBean");
if (myBean == null) {
myBean = new UserBean();
myBean.setName("Unknown User");
request.getComponentSession().putValue("myBean",myBean);
this.state = INITIAL_STATE;
Next the JSP
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean
id="myBean"
scope="session"
class="UserBean"
/>
<html>
<hbj:content
id="myContext">
<hbj:page
title="PageTitle">
<hbj:form
id="myFormId">
<hbj:textView
id="s1" >
<%
s1.setText(myBean.getName());
%>
</hbj:textView>
</hbj:form>
</hbj:page>
</hbj:content>
</html>
Regards
Rajendra -
Problem with loading data using SQL LOADER
I am having following files with me when i run following command at command prompt
sqlldr scott/tiger@genuat control =c:\emp.ctl
then giving error as
SQL Loader 500: unable to open file
SQL Loader 553: file not found
emp.dat file data
1111,sneha,CLERK 7902,17-Dec-80,800,20
2222,manoj,SALESMAN,7698,20-Feb-72 ,1600,6500,30
3333,sheela,MANAGER,7839,8-Apr-81,2975,20
emp.ctl file
LOAD DATA
INFILE 'c:\emp.dat'
APPEND
INTO TABLE emp
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(EMPNO,
ENAME ,
JOB,
MGR,
HIREDATE,
SAL ,
COMM,
DEPTNO)
can anyone tell me what is problem in above file why data is not loaded in table??I don't find any problem if you invoke the SQLLDR using the below command(and if you are certain that the control file resides in the C: drive).
sqlldr scott/tiger@genuat control =c:\emp.ctl
If this doesn't work then invoke the SQLLDR from the C: prompt itself.
sqlldr scott/tiger@genuat control=emp.ctl
It would locate the control file and check whether the sqlldr completes successfully? -
Problem while copying datas using Copy Express
Hai Experts,
Greetings.
We were trying to copy Master and Configuration datas from test database to Live database using Copy express. The datas from Item Master, BP Master copied Correctly, but, in CoA (we are using Segmented Accounts) the G/L Account --> the Code column shows the System refernce no. (ie., _SYS00000002679) and the Name of the G/L Account is copied correctly.
Is there any solution to solve this problem.
Thanks and Regards
RajaOn your test company, there's segmented accounting setup. Is the segmented accounting setup on the Live company (or have you managed to use copy express to copy over the segments and other settings)?
If you've done that, then maybe you could export to XML your Copy Express worksheet and upload it somewhere so we can have a look? -
Problem during uploading data Using BDC
While I'm trying to upload data for T.Code J1IS using BDC, Value for the field Net.***.value ( J_1IASSVAL-J_1IVALNDP) is not getting populated on the screen.
Pls help.Hi,
This is a Currency Field so you need to pass this to a Char field first and then pass to BDCTAB-FVAL.
" This is a common problem with BDC with other data types even with Date and Quantity and Numeric types
Please note while passing values to BDCTAB all the values should be passed in CHAR form only
Cheerz
Ram. -
Problem to extract data using DS 2LIS_11_VAHDR & 2LIS_11_VAITM
Hello Experts,
my requirement is to extract the SD sales Item & sales header data int BI. while executing the Reports in BI I find some incosistencies in data
Ex: for for some Sales organizations
0CRM_NUMDOC = 17 and the corresponding 0NETVALORD = 0,00
and for some sales organization
0CRM_NUMDOC = 0 and the corresponding 0NETVALORD = 5200,00
we are using the data sopurce 2LIS_11_VAHDR to load Document header data and the data sopurce 2LIS_11_VAITM to get Item Net value data. and used two trtansformations to the same SAP standard cubes 0CSAL_C05 & 0CSAL_C03.
asper my analysis in development system I find
VBAK contains 1405 records but the DS 2LIS_11_VAHDR extracts only 1235 records.
but
VBAP conains 2665 records and the DS 2LIS_11_VAITM extracts all 2665 records.
is it creats the problem?
I deleted the setuptables and again fill them even thought I have the same problem ?
If you have any idea regarding this issue please share with me.
Thanks in advance.
cheers.............HI,
Check indeed the extraction in your source system with RSA3.
Also perform the load and check your data in PSA (before any transformation takes place).
Are you going to use delta or full loading? I assume it's delta? So if you perform your initial load with data, no use of the setup table is required...
If you have too much data to do this, try an initial load without data, first delta load and next a full repair load (which will read your setup table). Do not forget to fill your setup table with all the historical data you need in transaction SBIW.
Hope this helps.
Best Regards,
Michel Hoefkens -
Problem in Calculating Date using Calendar in J2ME
Hi
I am new to J2ME.
program is
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH,31);
cal.set(Calendar.MONTH,11);
cal.set(Calendar.YEAR,2008);
cal.set(Calendar.HOUR_OF_DAY,23+3);//Add 3 hour to Existing 23 hour
cal.set(Calendar.MINUTE,58+45);//add 45 min to Existing 58 min.
System.out.println("Date and Time is "+cal.getTime());
This is my J2ME program.
I expect 1-jan-2009 3 hour 43 min.
But I am being got 31-Dec-2008 3 hour 43 min.
I could able get correct answer when I use JAVA. But J2ME is giving this problem.
What is the wrong in my coding.
Please Any one give me a solution.
And also I tried to cal.set(2008,11,31,23+3,58+45);
This is API is not supported in J2ME.
Thank you.Thank u guys,
I could not able to find correct API.
Anyway I have written my own function. for Rolling days, month, year according to Hour and minute change.
Thanks to all. -
Problem in displaying data using ALV interactive using OOPS
Hi friends,
I have created one interactive report using oops..
on my selection screen i have a select-option TABNAME for DD02L table with no intervals option.
ie : i enter table names in that field..
for example i enter VBAP
MARA,
MARC. etc
when i execute i get a basic list which gives some details about the tables.
now on my basic list when i double click on any row then ie : say if i click on 2nd row , in the back ground based on the index on which i have click iam reading that particular row from the table and from that using the table name iam displaying the all the fields of the table in the ist secondary list....
Till now its working fine but once when i go back to the back to the basic list and when i click another row... here even if click another row its displaying the same fields of the table which was ist click.
ie : say ist time i have clicked mara then later vbap.....But its displaying me the mara details instead it should display vbap details...
I have used refresh_table_display method also.... But its not working fine...
How can i correct it...
Regards,
Kumar.Hello Kumar
I can only guess that you call the second screen (perhaps '0200') within the event handler method for event DOUBLE_CLICK. This is not really a good idea. Instead use a simple trick to overcome this refreshing problem:
METHOD handle_double_click.
" Save the row perhaps in a static attribute of your event handler method, e.g.
. lcl_eventhandler=>ms_row = e_row. " ms_row defined as static attribute of event handler class
" Trigger PAI with a defined ok-code:
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
ok_code = 'DETAIL_LIST'.
ENDMETHOD.
This method call triggers PAI of your screen which otherwise does not occur after an event has been raised.
MODULE user_command_0100 PAI.
CASE gd_okcode.
WHEN 'DETAIL_LIST'.
perform DISPLAY_DETAIL_LIST. " and call screen '0200'
WHEN OTHERS.
ENDCASE.
ENDMODULE.
The next time you make a double click a new row/index is filled into the static attribute. By triggering PAI (followed by PBO) you ensure a flushing (= refreshing) before the secondary list is displayed.
Regards
Uwe -
I have problem in transfeering data using field point via tcp
I am reading the values from the filed point, which is connected, to the RT controller and transferring the values to the client PC via TCP at a specified acquisition rate.
Case1 when the acquisition rate is 0.1 minutes I get the values from the controller correctly i.e. 5v, 5v, and the chart shows no change. The timed out of the TCP read is default value i.e. is 250ms
But when I change the acquisition rate to .5 minutes I get the values as 5v, 0v, 5v, and 0v. The time out of the TCP read is same as first case. The inputs to the field point are at the constant 5v.
Please tell how to solve the problem so as to see the plot in the chart continuously as inputs for the field points the read
ing are at constant rate of input 5v.Suresh,
Since this question deals with using the LabVIEW TCP/IP functions, you are better off posting it to the LabVIEW discussion forum.
Regards,
Aaron -
Problem with setting date using java 1.4.2
Is this a bug?
under java 1.4.2,
executing System.out.println(new java.util.Date("01-JAN-1950")) displays
Sun Jan 01 00:10:00 SGT 1950
but under java 1.3.1 the same statement displays as Sun Jan 01 00:00:00 SGT 1950 which is the desired result.I'm just citing an example using Date().
In fact, whether I use DateFormat or Calendar, it shows the same result.
When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
It works correctly under jdk1.3.1 -
Problem in Fetching data using RFC FM from NON SAP system
Hi All,
Need help from experts on data transfer using RFC from a non SAP system/database. I have creasted the destination in sm59.
I have created a function module too which has an import parameter as a query and export parameter as an internal table.
No when i test run this function module it returns some entries. But when I call this FM in a program it throws a dump 'rfc_external_abort' . Here is what the call to FM looks like in my program. Please guide me on this.
Thanks in advance,
Saket.
DATA : lv_query TYPE string,
it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
DESTINATION 'D39'
EXPORTING
in_sql_query = lv_query
IMPORTING
ET_GDDB_DATA = it_gddbdataHi,
your question..
DATA : lv_query TYPE string,
it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
DESTINATION 'D39'
EXPORTING
in_sql_query = lv_query
IMPORTING
ET_GDDB_DATA = it_gddbdata
you are telling that you are fetching the data from non sap system using RFC function module.. how it is possible..you canot fetch the data from non SAP system using RFC FM alone.. you have to use the concept BAPI.. it will work..
I hope this will help you..
Regards,
Kiran -
Problem in displaying data using Radiobuttons?
Hi All,
I have a requirement where along with some input fields in have three radiobuttons and under each of the radiobuttons there are date fields, now when i click on the first radiobutton the second date field has to be disabled and the a report o/p has to be generated, again when i click on the second radibutton the first date field has to be disbaled and second report o/p has to be generated and when the third one is clicked both the date fields has to be disabled and the third report o/p has to be generated.
I have written the code for disabling the fields, the problem is when i click on the second radiobutton it does not disable the first date field and is taking a long time in execution and the control is terminating the program.
The report o/p logic has been written in three different subroutine forms. Please tell me how i can overcome this problem. I am attaching my code in this mail.
selection-screen begin of block b1 with frame title text-001.
select-options: s_bukrs for v1 modif id ABC,
s_vkorg for v2 obligatory modif id ABC,
s_vtweg for v3 obligatory modif id ABC,
s_spart for v4 obligatory modif id ABC,
s_fkart for v5 obligatory modif id ABC.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
selection-screen begin of line.
parameters: p1 radiobutton group g1 default 'X' user-command ucomm.
selection-screen end of line.
parameters:s_date type sy-datum modif id XYZ.
selection-screen skip 1.
selection-screen begin of line.
parameters:p2 radiobutton group g1.
selection-screen end of line.
parameters:s_date1 type sy-datum modif id XYZ.
selection-screen skip 1.
selection-screen begin of line.
parameters:p3 radiobutton group g1.
selection-screen end of line.
selection-screen skip 1.
selection-screen end of block b2.
At Selection-Screen Output.
loop at screen.
if p1 = 'X' and
screen-name = 'S_DATE1' or screen-group1 = 'ABC' .
screen-input = 0.
modify screen.
elseif p2 = 'X'
and screen-name = 'S_DATE' or screen-group1 = 'ABC'.
screen-input = 0.
modify screen.
elseif p3 = 'X' or screen-group1 = 'ABC'.
check screen-group1 = 'XYZ'.
screen-active = 0.
modify screen.
endif.
endloop.
At Selection-Screen.
if p1 = 'X'.
perform dailysummaryinvoice.
elseif p2 = 'X'.
perform blockedinvoices.
elseif p3 = 'X'.
write:/ 'Display'.
endif.
refresh: s_bukrs,
s_vkorg,
s_vtweg,
s_spart,
s_fkart.
Please help.
Regards,
MDHi friend,
Check this code i hope it ll be hep full for u.
*& Report ZDTK_FI_CRDB
*& AUTHOR : D TARUN KUMAR
*& FUNC CONSULTANT : ABDUL GANI
*& TRANSPORT REQ NO. : RD1K902089
*& PACKAGE : ZTARUN
*& TRANSACTION CODE : ZCRDB
*& DESCRIPTION : CREDIT DEBIT NOTE FOR CUSTOMER OR VENDOR.
REPORT ZDTK_FI_CRDB NO STANDARD PAGE HEADING
LINE-COUNT 65(5)
LINE-SIZE 80
MESSAGE-ID ZTAR_FI
*& STRUCTURE DECLARATION
TYPES : BEGIN OF TY_ADDR,
BUKRS TYPE BUKRS, "COMPANY CODE
LIFNR TYPE LIFNR, "VENDOR NO
KUNNR TYPE KUNNR, "CUSTOMJER NO
NAME1 TYPE NAME1, "NAME1
NAME2 TYPE NAME2, "NAME2
ORT01 TYPE ORT01, "CITY
ORT02 TYPE ORT02,
PSTLZ TYPE PSTLZ, "POSTAL CODE
STRAS TYPE STRAS, "STREET
ADRNR TYPE ADRNR, "ADDRESS NO
TELF1 TYPE TELF1, "TELEFHONE NO
TELF2 TYPE TELF2, "TELEFHONE NO 2
TELFX TYPE TELFX, "FAX
END OF TY_ADDR,
BEGIN OF TY_LFA1,
KUNNR TYPE KUNNR, "CUSTOMJER NO
NAME1 TYPE NAME1, "NAME1
NAME2 TYPE NAME2, "NAME2
ORT01 TYPE ORT01, "CITY
ORT02 TYPE ORT02,
PSTLZ TYPE PSTLZ, "POSTAL CODE
STRAS TYPE STRAS, "STREET
ADRNR TYPE ADRNR, "ADDRESS NO
TELF1 TYPE TELF1, "TELEFHONE NO
TELF2 TYPE TELF2, "TELEFHONE NO 2
TELFX TYPE TELFX, "FAX
END OF TY_LFA1,
BEGIN OF TY_DOCM,
GJAHR TYPE GJAHR,
BELNR TYPE BELNR_D,
BUDAT TYPE BUDAT,
BLDAT TYPE BLDAT,
BLART TYPE BLART,
BSCHL TYPE BSCHL,
SHKZG TYPE SHKZG,
XBLNR TYPE XBLNR,
DMBTR TYPE DMBTR,
SGTXT TYPE SGTXT,
REBZG TYPE REBZG,
REBZJ TYPE REBZJ,
KUNNR TYPE KUNNR,
LIFNR TYPE LIFNR,
END OF TY_DOCM.
*& TABLE DECLARATION
DATA : T_ADDR TYPE STANDARD TABLE OF TY_ADDR,
*& WORK AREA DECLARATION
W_ADDR TYPE TY_ADDR,
W_DOCM TYPE TY_DOCM,
W_LFA1 TYPE TY_LFA1,
*& GLOBLE VARIABLE DECLARATION
G_KUNNR TYPE KUNNR,
G_LIFNR TYPE LIFNR,
DCAMT TYPE DMBTR.
*& INITIALIZATION
INITIALIZATION.
CLEAR :
*REFRESH :
*& SELECTION SCREEN DECLARATION
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN : END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS R1 RADIOBUTTON GROUP RAO DEFAULT 'X' USER-COMMAND hit.
SELECTION-SCREEN COMMENT (50) TEXT-003 FOR FIELD R1.
PARAMETERS R2 RADIOBUTTON GROUP RAO.
SELECTION-SCREEN COMMENT (50) TEXT-004 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN END OF BLOCK B2.
*SELECTION-SCREEN: BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-005.
*SELECTION-SCREEN SKIP 1.
*SELECTION-SCREEN BEGIN OF LINE.
*PARAMETERS R3 RADIOBUTTON GROUP RAJ DEFAULT 'X' USER-COMMAND hit.
*SELECTION-SCREEN COMMENT (50) TEXT-006 FOR FIELD R1.
*PARAMETERS R4 RADIOBUTTON GROUP RAJ.
*SELECTION-SCREEN COMMENT (50) TEXT-007 FOR FIELD R2.
*SELECTION-SCREEN END OF LINE.
*SELECTION-SCREEN SKIP 1.
*SELECTION-SCREEN : END OF BLOCK B3.
*& AT SELECTION SCREEN
AT SELECTION-SCREEN.
PERFORM VALIDATE_SELECTION.
*& AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
PERFORM SCREEN_OUTPUT.
*& START OF SELECTION
START-OF-SELECTION.
IF R1 = 'X'.
PERFORM GET_DOCUMENT_L.
ELSEIF R2 = 'X'.
PERFORM GET_DOCUMENT_K.
ENDIF.
*& END OF SELECTION
END-OF-SELECTION.
PERFORM DISPLAY.
*& TOP OF PAGE
*TOP-OF-PAGE.
PERFORM PAGE_HEADER.
*& Form VALIDATE_SELECTION
text
form VALIDATE_SELECTION .
DATA : L_BUKRS TYPE BSID-BUKRS.
SELECT SINGLE BUKRS FROM KNB1
INTO L_BUKRS
WHERE BUKRS = S_BUKRS.
*IF SY-SUBRC <> 0.
*MESSAGE E001.
*LEAVE LIST-PROCESSING.
*ENDIF.
DATA : L_KUNNR TYPE BSID-KUNNR.
SELECT SINGLE KUNNR FROM BSID
INTO L_KUNNR
WHERE KUNNR = S_KUNNR.
*IF SY-SUBRC <> 0.
*MESSAGE E002.
*LEAVE LIST-PROCESSING.
*ENDIF.
endform. " VALIDATE_SELECTION
*& Form SCREEN_OUTPUT
text
form SCREEN_OUTPUT .
IF R1 = 'X'.
LOOP AT SCREEN.
if screen-group1 = 'GP1'.
SCREEN-active = '0'.
*SCREEN-INTENSIFIED = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-group1 = 'GP2'.
SCREEN-active = '0'.
*SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
endform. " SCREEN_OUTPUT
*& Form GET_DOCUMENT_L
text
FORM GET_DOCUMENT_L .
DATA : MESSG(60).
SELECT SINGLE BUKRS
LIFNR
GJAHR
BELNR
BUDAT
BLDAT
BLART
BSCHL
SHKZG
DMBTR
SGTXT
REBZG
REBZJ FROM BSIK
INTO CORRESPONDING FIELDS OF W_DOCM
WHERE BUKRS = S_BUKRS AND
GJAHR = S_GJAHR AND
BELNR = S_BELNR.
SELECT SINGLE DMBTR FROM BSIK INTO DCAMT
WHERE BELNR = W_DOCM-REBZG AND
GJAHR = W_DOCM-REBZJ.
IF NOT W_DOCM IS INITIAL.
PERFORM GET_LFA1.
ELSE.
SELECT SINGLE BUKRS
LIFNR
GJAHR
BELNR
BUDAT
BLDAT
BLART
BSCHL
SHKZG
DMBTR
SGTXT
REBZG
REBZJ FROM BSAK
INTO CORRESPONDING FIELDS OF W_DOCM
WHERE BUKRS = S_BUKRS AND
GJAHR = S_GJAHR AND
BELNR = S_BELNR.
SELECT SINGLE DMBTR FROM BSAK INTO DCAMT
WHERE BELNR = W_DOCM-REBZG AND
GJAHR = W_DOCM-REBZJ.
IF NOT W_DOCM IS INITIAL.
PERFORM GET_LFA1.
ELSE.
CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR VENDOR' INTO MESSG
SEPARATED BY SPACE.
MESSAGE I011 WITH MESSG.
LEAVE LIST-PROCESSING.
ENDIF.
ENDIF.
ENDFORM. " GET_DOCUMENT_L
*& Form GET_LFA1
text
FORM GET_LFA1 .
SELECT SINGLE LIFNR
NAME1
NAME2
ORT01
ORT02
PSTLZ
STRAS
ADRNR
TELF1
TELF2
TELFX FROM LFA1 INTO CORRESPONDING FIELDS OF W_ADDR
WHERE LIFNR = W_DOCM-LIFNR.
ENDFORM. " GET_LFA1
*& Form GET_DOCUMENT_K
text
FORM GET_DOCUMENT_K .
DATA : MESSG(60).
SELECT SINGLE BUKRS
KUNNR
LIFNR
GJAHR
BELNR
BUDAT
BLDAT
BLART
BSCHL
SHKZG
DMBTR
SGTXT
REBZG
REBZJ FROM BSID
INTO CORRESPONDING FIELDS OF W_DOCM
WHERE BUKRS = S_BUKRS AND
GJAHR = S_GJAHR AND
BELNR = S_BELNR.
SELECT SINGLE DMBTR FROM BSID INTO DCAMT
WHERE BELNR = W_DOCM-REBZG AND
GJAHR = W_DOCM-REBZJ.
IF NOT W_DOCM IS INITIAL.
PERFORM GET_KNA1.
ELSE.
SELECT SINGLE BUKRS
KUNNR
LIFNR
GJAHR
BELNR
BUDAT
BLDAT
BLART
BSCHL
SHKZG
DMBTR
SGTXT
REBZG
REBZJ FROM BSAD
INTO CORRESPONDING FIELDS OF W_DOCM
WHERE BUKRS = S_BUKRS AND
GJAHR = S_GJAHR AND
BELNR = S_BELNR.
SELECT SINGLE DMBTR FROM BSAD INTO DCAMT
WHERE BELNR = W_DOCM-REBZG AND
GJAHR = W_DOCM-REBZJ.
IF NOT W_DOCM IS INITIAL.
PERFORM GET_KNA1.
ELSE.
CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR CUSTOMER' INTO MESSG
SEPARATED BY SPACE.
MESSAGE I011 WITH MESSG.
LEAVE LIST-PROCESSING.
ENDIF.
ENDIF.
ENDFORM. " GET_DOCUMENT_K
*& Form GET_KNA1
text
FORM GET_KNA1 .
SELECT SINGLE KUNNR
NAME1
NAME2
ORT01
ORT02
PSTLZ
STRAS
ADRNR
TELF1
TELF2
TELFX FROM KNA1 INTO CORRESPONDING FIELDS OF W_ADDR
WHERE KUNNR = W_DOCM-KUNNR.
ENDFORM. " GET_KNA1
*& Form DISPLAY
text
FORM DISPLAY .
LONG TEXT *************************
*DATA : BEGIN OF inline OCCURS 0,
*END OF inline.
*TYPES: BEGIN OF TY_LONGT,
tdformat TYPE tdformat,
tdline TYPE tdline,
END OF TY_LONGT.
*DATA : TLONGT TYPE STANDARD TABLE OF TY_LONGT,
WLONGT TYPE TY_LONGT.
DATA: BEGIN OF DTEXT OCCURS 50.
*DATA: MATNR LIKE PBIM-MATNR.
INCLUDE STRUCTURE TLINE.
DATA: END OF DTEXT.
DATA: BEGIN OF HTEXT.
INCLUDE STRUCTURE THEAD.
DATA: END OF HTEXT.
DATA: BEGIN OF LTEXT OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF LTEXT.
DATA: TNAME LIKE THEAD-TDNAME.
CONCATENATE S_BUKRS W_DOCM-BELNR S_GJAHR '002' INTO TNAME.
*SEPARATED BY SPACE.
DATA : W_STXL TYPE STXL.
SELECT SINGLE * FROM STXL INTO W_STXL
WHERE TDNAME = TNAME.
IF NOT W_STXL IS INITIAL.
*SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
*MOVE PBIM-BDZEI TO TNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = W_STXL-TDID
LANGUAGE = W_STXL-TDSPRAS
NAME = TNAME
OBJECT = W_STXL-TDOBJECT
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
APPEND DTEXT.
ENDIF.
ENDLOOP.
ENDIF.
LONG TEXT *************************
CUSTOMER / VENDOR NO *************************
DATA : CUVE(10).
IF R1 = 'X'.
CUVE = W_ADDR-LIFNR.
ELSEIF R2 = 'X'.
CUVE = W_ADDR-KUNNR.
ENDIF.
CUSTOMER / VENDOR NO *************************
CR / DR DATA *************************
IF DCAMT IS INITIAL.
SELECT SINGLE DMBTR FROM BSIS INTO DCAMT
WHERE BELNR = W_DOCM-REBZG AND
GJAHR = W_DOCM-REBZJ .
( KOART = 'D' OR KOART = 'K' ).
ENDIF.
CR / DR DATA *************************
DATA: CNAME TYPE BUTXT.
SELECT SINGLE BUTXT FROM T001 INTO CNAME
WHERE BUKRS = S_BUKRS.
DATA : NAME(60),
STREET(60),
TELFX(60).
CONCATENATE W_ADDR-NAME1 W_ADDR-NAME2 INTO NAME
SEPARATED BY SPACE.
CONCATENATE W_ADDR-ORT01 W_ADDR-ORT02 'POSTAL CODE :' W_ADDR-PSTLZ INTO STREET
SEPARATED BY SPACE.
CONCATENATE 'Tel No.:' W_ADDR-TELF1 W_ADDR-TELF2 'FAX :' W_ADDR-TELFX INTO TELFX
SEPARATED BY SPACE.
DATA : CRDB(20),
CRDBA(16),
BALC TYPE DMBTR.
IF W_DOCM-SHKZG = 'S'.
CRDB = 'Debit Note No. :'.
CRDBA = 'DEBIT'.
BALC = DCAMT + W_DOCM-DMBTR.
ELSEIF W_DOCM-SHKZG = 'H'.
CRDB = 'Credit Note No. :'.
CRDBA = 'CREDIT'.
BALC = DCAMT - W_DOCM-DMBTR.
ENDIF.
SKIP 5.
*FORMAT INVERSE.
ULINE 03(77).
WRITE : 03 SY-VLINE, 80 '|',
/03 SY-VLINE, NAME, 60 'No.:' COLOR 7, CUVE COLOR 7, 80 '|',
/03 SY-VLINE, W_ADDR-STRAS, 80 '|',
/03 SY-VLINE, STREET, 80 '|',
/03 SY-VLINE, TELFX, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 05 CNAME COLOR 2, 80 '|',
/03 SY-VLINE, 36 CRDB RIGHT-JUSTIFIED, 59 W_DOCM-BELNR, 71 W_DOCM-GJAHR, 80 '|',
/03 SY-VLINE, 58 'DATE :', W_DOCM-BUDAT, 80 '|',
/03 SY-VLINE, 80 '|'. ULINE 03(77).
WRITE : /03 SY-VLINE, 80 '|'.
IF NOT DTEXT IS INITIAL.
LOOP AT DTEXT.
WRITE : /03 SY-VLINE, 05 DTEXT-TDLINE COLOR 1, 80 '|'.
ENDLOOP.
ELSEIF W_DOCM-SGTXT NE ''.
WRITE : /03 SY-VLINE, 05 W_DOCM-SGTXT COLOR 1, 80 '|'.
ELSE.
WRITE : /03 SY-VLINE, 80 '|'.
ENDIF.
WRITE : /03 SY-VLINE, 80 '|',
*WRITE : /03 SY-VLINE, TNAME, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 08 'WORKING OF INTEREST CALCULATION AS ON ' COLOR 4,
47 ASON COLOR 4, ' [ 360 DAYS BASIS ]' COLOR 4, 80 '|',
/03 SY-VLINE, 80 '|'. ULINE 03(77).
WRITE : /03 SY-VLINE, 11 'DATE', 23 'INVOICE', 41 CRDBA, 55 'BALANCE', 64 'DAYS', 70 'INTEREST', 80 '|',
/03 SY-VLINE, 23 ' AMOUNT', 41 'AMOUNT', 55' AMOUNT', 70 ' @ 8.00% ', 80 '|',
/03 SY-VLINE, 80 '|'. ULINE 03(77).
WRITE : /03 SY-VLINE, 80 '|',
/03 SY-VLINE, 06 W_DOCM-BUDAT, 15 DCAMT, 32 W_DOCM-DMBTR, 47 BALC, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|'. ULINE 03(77).
WRITE : /03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 10 'PREPARED BY', 35 'ACCOUNTANT', 60 'MANAGER', 80 '|',
/03 SY-VLINE, 80 '|',
/03 SY-VLINE, 80 '|'. ULINE 03(77).
ENDFORM. " DISPLAY
Thanks & Regards,
D Tarun Kumar.
Edited by: Devalla Tarun Kr. on Aug 28, 2008 3:40 PM -
Problem in Uploading Data using a Tab Separated File?
Hi All,
I am trying to upload a file which tab separated containing customer and bank details and my file structure somewhat in the following manner.
10 21169 abcde xyz kdHDHLk gdh ghgah (Customer Details)
20 21169 DE 20050000 01122334 (bank details for customer 21169)
20 21169 DE 23022200 1122334455
(bank details for customer 21169)
20 21169 DE 23984899 223344556 (bank details).
But when I am trying to intial upload the details to an internal table using GUI_upload FM and display to check if it is loading correctly or not it is not giving me any o/p.
I am copying the code which I am trying to execute. Please tell me what way I need to modify the code so that it executes correctly.
parameters: p_file type rlgrap-filename.
data: begin of wa_file,
text(256) type c,
end of wa_file.
data: it_file like table of wa_file.
types: begin of ty_kna1,
kunnr type kunnr,
name1 type name1,
sortl type sortl,
stras type stras,
ort01 type ort01,
land1 type land1,
spras type spras,
end of ty_kna1.
data: it_kna1 type standard table of ty_kna1,
wa_kna1 type ty_kna1.
types: begin of ty_knbk,
kunnr type kunnr,
banks type knbk-banks,
bankl type knbk-bankl,
bankn type knbk-bankn,
end of ty_knbk.
data: it_knbk type standard table of ty_knbk,
wa_knbk type ty_knbk.
data: v_id(2).
At Selection-Screen on Value-Request for p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = p_file
Start-of-Selection.
data: p_file1 type string.
p_file1 = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = p_file1
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = it_file
* EXCEPTIONS
* FILE_OPEN_ERROR = 1
* FILE_READ_ERROR = 2
* NO_BATCH = 3
* GUI_REFUSE_FILETRANSFER = 4
* INVALID_TYPE = 5
* NO_AUTHORITY = 6
* UNKNOWN_ERROR = 7
* BAD_DATA_FORMAT = 8
* HEADER_NOT_ALLOWED = 9
* SEPARATOR_NOT_ALLOWED = 10
* HEADER_TOO_LONG = 11
* UNKNOWN_DP_ERROR = 12
* ACCESS_DENIED = 13
* DP_OUT_OF_MEMORY = 14
* DISK_FULL = 15
* DP_TIMEOUT = 16
* OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
constants: c_tab type X value '09'.
loop at it_file into wa_file.
if wa_file+0(2) = '10'.
split wa_file at 'c_tab'
into v_id
wa_kna1-kunnr
wa_kna1-name1
wa_kna1-sortl
wa_kna1-stras
wa_kna1-ort01
wa_kna1-land1
wa_kna1-spras.
append wa_kna1 to it_kna1.
elseif wa_file+0(2) = '20'.
split wa_file at 'c_tab'
into v_id
wa_knbk-kunnr
wa_knbk-banks
wa_knbk-bankl
wa_knbk-bankn.
append wa_knbk to it_knbk.
endif.
endloop.
write:/ 'Customer Master General Data'.
uline.
loop at it_kna1 into wa_kna1.
write:/ wa_kna1-kunnr,
wa_kna1-name1,
wa_kna1-sortl,
wa_kna1-stras,
wa_kna1-ort01,
wa_kna1-land1,
wa_kna1-spras.
endloop.
clear wa_kna1.
skip 2.
write:/ 'Customer Master Bank Data'.
uline.
loop at it_knbk into wa_knbk.
write:/ wa_knbk-kunnr,
wa_knbk-banks,
wa_knbk-bankl,
wa_knbk-bankn.
endloop.
clear wa_knbk.
Regards,
MDDeclare Class cl_abap_char_utilities
Use File type as 'DBF'
Has_field_seperator = w_tab in FM GUI_UPLOAD
DATA: w_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = w_file
filetype = 'DBF'
append = ' '
write_field_separator = w_tab
TABLES
data_tab = it_extractchar
fieldnames = it_header
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
OTHERS = 22 -
Data pump problem on sync data from windows to linux
Hi,
i have production db on windows 2003 server, and syn data from production windows machine to linux server. using data pump exports, imports.
i have written an procedure to export schema level
and
procedure for import like
dbms_datapump.open(operation ='import',job_module='schema',job_name='imp');
dbms_datapump.add_file(handle='',filename='imp.dmp',directory='dir_datapump',filetype=dbms_datapump.ku$_file_type_dump_file);
dbms_datapump.metadata_filter(handle='',name='schema_expr',value='in('hr','oe')',object_type''table');
dbms_datapump.set_parameter(handle ='',name=table_exists_action,value=replace);
when i run the above procedure, error displays that table already exists ora-31684
but from the
impdp include=table table_exists_action=replace
i am able to do it.
can u suggest what iam missing.
Regards
AjayI will try to explain a little better using screenshots. This screenshot is from windows :
http://img510.imageshack.us/img510/1714/windowspg.jpg
At the top is says 'date taken' and ANY windows photo library software will sort it by this date. Below are the properties of the same file after it's copied to osx :
http://img153.imageshack.us/img153/6345/screenshot20100322at145.png
It contains lots of information about the picture but not when it was taken. So software such as iphoto or picasa sorts it by it's created date (which you can see at the top is Monday 12th January).
Why isn't OSX carrying over the exif data on when the photo was taken ? I can't see any iphoto options to sort by that date.
Message was edited by: Ollie UK
Message was edited by: Ollie UK
Maybe you are looking for
-
Jquery tooltip for sharepoint 2013 list (newform.aspx)
I am looking for a simple solution/jquery tooltip for SharePoint list form fields. Something like below , but this one displays static text for each column and want tooltip text for each of my list column <script type="text/javascript" language="java
-
The hinges are sticking and has separated from its support within the computer. It is pushing away the back of the computer. A total mess. I have not dropped or damaged the computer in anyway. This computer is less than 12 months old. I'm not impress
-
Leave Request create RFC or BAPI
HI, RFC or BAPI for leave request create and that will trigger a work flow. Input Parameters Pernr, Absence subtype, and date. Thanks in advance Regards, Kiruba.R
-
Customer group in FI Credit/Debit memos
Hi, Is it possible to pull customer group on FI credit & debit memos. I have maintained customer group in customer master under sales area data. I have posted one credit memo using this customer but i didn't find customer group on FI document. How sh
-
Ok so my iphone 3gs has to be off inorder to charge
ok so for some reasome my i phone hasent been charging to well it keeps stopping but now i have to shut my whole phone down so its off then plug in a charger wich turns the phone on and then starts charging but if the cable comes out of the phone the