Ref.key(head) 1 in F-43
hi,
I have implemented BADI FI_HEADER_SUB_1300,for BKPF-XREF1_HD field as input in F-43 t-code.
field is available in f-43,and data is also getting saved in table.
but there is one problem, I have to execute FB60 first then only the field is visible in f-43.
that means each time user has to do FB60 then F-43,for the field to come in display.
pls help.
Hi
Check the following things
1. Check the field status of your posting keys in OB41 for Customer Special GL Transactions, if Reference 3 is at least an optional field
2. Check in OB14 that Reference 3 is at least an Optional field for the Field Group of Customer reconcilliation Account
3. In FBKP, field Status, reference 3 is allowed as optional field
Regards
Sanil
Similar Messages
-
Enterable field BKPF-XREF1_HD(Ref.key (header) 1)?
Hi
Friends,
Does anyone know how to make the XREF1_HD and XREF2_HD fields on table BKPF available so they may be populated during document entry (FB01, FB50, etc.)?
I know there is no cofiguration for this., only through substitution we can able to display.
(Q) How to do substitution for the above subject? How to make this field enterable during document entry.
Thanks
AnilHi
Friend,
Iam working for US Client, I have an issue.
Special handling code u2013 Identify a field in Vendor master or Vendor Invoice and pass this data on to IDOC
HQ1 - Check to be sent to XXXX HQ or to vendorIdentify a field
FX1 u2013 To vendor address by Fedex
(Q) we have to give this code in XK01 or FB60? for this purpose I need Ref.key (header) 1), It is 3digits No code. I can use Ref field in BKPF, but already am using this field.
Thanks
Anil -
Error: SAP license key: header or empty line expected
Hello All,
I wanted to install license for my portal server(EP-6, SP-14). But i am getting some error msg
<b>License file C:\APQ_WEBAS.txt contains an incorrect SAP license key: header or empty line expected. License key(s) not completely installed.</b>
when I clicked on install from file Button.
Any +ve will be aprited.Hi Uttam
Just Put this line at top of ur license file
Begin SAP License -
so the license file should look like this
Begin SAP License -
SAPSYSTEM=XXX
HARDWARE-KEY=XXXXXXXX
INSTNO=XXXXXXXXX
BEGIN=20051224
EXPIRATION=99991231
LKEY=SWPRODUCTNAME=J2EE-Engine_MSS or ORA
SWPRODUCTLIMIT=XXXXXXXX
SYSTEM-NR=000000000XXXXXXXXXX
regards,
kaushal -
Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020
while reversing a document thru FB08, it is giving the error message,
" Deferred tax: Post invoice and payment separately $1" Message no. DEFTAX020.
This is a stand alone invoice document , without any clearing document. What is to be done ?
Below is the snapshot of FB03:-
Document Number 2256162 Company Code MLTD Fiscal Year 2009
Document Date 24.05.2010 Posting Date 25.05.2010 Period 11
Reference PYX/10-11/032 Cross-CC no.
Currency INR Texts exist
Itm PK BusA Acct no. Description Tx Amount in INR
001 31 U106 503551 PYXIS SYSTEMS PVT.LTD. DD 55,150.00-
002 40 COMM 5656 Membership & Subscri DD 50,000.00
003 40 1371 Service Tax Availed DD 5,000.00
004 40 1372 Ecess on ST Availed DD 100.00
005 40 1373 S&H Ecess on ST Avai DD 50.00
Document Type I2 VEMDOR INV-CORPORATE
Doc.Header Text PYXIS SYS.P.LTD.
Branch number Number of Pages 0
Reference PYX/10-11/032 Document Date 24.05.2010
Posting Date 25.05.2010
Currency INR Posting Period 11 / 2009
Ref. Transactn BKPF Accounting document
Reference key 0002256162MLTD2009 Log.System MALCLNT999
Entered by NITINRB Parked by
Entry Date 25.05.2010 Time of Entry 13:05:08
TCode FBR2
Changed on Last update
Ledger Grp Ledger
Ref.key(head) 1 Ref.key 2Hi,
Check whether OSS note 913805 (see below) offers a solution to your particular issue.
Kind regards, Robert
Note 913805 - Error FF891 or DEFTAX025 when posting FI-Documents Version: 5
Summary
Symptom
The posting of FI-documents cannot be executed due to one of the following error messages:
FF 890 "Vendor and customer items in document with deferred taxes"
FF 891 "G/L account item without tax code in document with deferred taxes"
FF 892 "Error writing to table DEFTAX_ITEM"
DEFTAX 025 (no specific text)
Also update terminations and other errors which are related to function group TAX4 may be the topic of this note.
Other terms
RFUMSV25; RFUMSV50; VAT; deferred tax; BTE; DEFTAX_ITEM; TAX4; SAPSQL_ARRAY_INSERT_DUPREC; FI_POST_DEFTAX_ITEM; FF891; FF890; FF892; FF804; 00 671; FF099; DEFTAX020; DEFTAX021; DEFTAX022; DEFTAX023; DEFTAX025; DEFTAX012; DEFTAX_MX027; DEFTAX_MX047; DEFTAX_MX039; DEFTAX; DEFTAX_MX;
Reason and Prerequisites
Accidentally some business transaction events (BTE) for the new solution for deferred tax were delivered in an active state in support packages of SAP releases 4.70 and ERP 2004. The solution is available in the SAP-Standard only from release ERP 2005. Also in ERP 2005 the new deferred tax can cause problems in countries for which the solution is not released.
These BTEs perform strict tests for documents containing tax codes for deferred tax.
Solution
If you are using the old deferred tax, i.e. you use report RFUMSV25 to create transfer postings, you can safely deactivate these BTEs.
Remove the following BTEs:
00001025 DI-TAX CREATE_DEFTAX_ITEM
00001030 DI-TAX SET_DEFTAX_ITEM
00001040 DI-TAX CREATE_DEFTAX_ITEM_REVERS
00001050 DI-TAX CREATE_DEFTAX_ITEM_MR1M
In ERP 2005 (ECC 600) the application key is 'FI-TAX' instead of the above mentioned 'DI-TAX'.
To do this start transaction FIBF
-> Settings
-> P/S Modules
...of an SAP Application
Mark the entries from the list above and delete them.
This deactivates the functionality of 'new deferred tax' for all company codes in all clients on the system. This means that no data is written to table deftax_item at posting time. Report RFUMSV50 can still be started, but it will not process new documents any more.
If in ERP 2005 problems arise in one country but the new deferred tax is used in another country you must not deactivate the BTEs completely. In this case it is possible to restrict the BTEs to be active only in certain countries using the column 'country' in transaction FIBF.
Header Data
Release Status: Released for Customer
Released on: 16.01.2008 20:12:15
Master Language: English
Priority: Correction with medium priority
Category: Program error
Primary Component: FI-GL-GL-F Value Added Tax (VAT)
Affected Releases
Software Component Release From Release ToRelease And subsequent
SAP_APPL 46C 46C 46C
SAP_APPL 470 470 470
SAP_APPL 500 500 500
SAP_APPL 600 600 600
SAP_APPL 602 602 602
SAP_APPL 603 603 603
SAP_APPL 604 604 604
Related Notes
771319 - RFUMSV50: Documentation
Edited by: Robert North on May 26, 2010 11:49 AM
Edited by: Robert North on May 26, 2010 11:50 AM -
Field Change Control in a Document
Hello,
Please let me know how can we control what fields are changeable after the document is posted in the header and line item sections of the documents.
For e.g I want to make REF KEy 1 feild as changeable, right now it shows as non- modifiable.
Please let me know.
Thanks.Add the field in OB32.
Header
BKPF-XREF1_HD Ref.key (header) 1
BKPF-XREF2_HD Ref.key (header) 2
Line Item
BSEG-XREF1 Reference key 1
BSEG-XREF2 Reference key 2
BSEG-XREF3 Reference key 3 -
Meaning of actual posting (BKPF-PSOZL) ?
Hello,
Is there anyone who knows the meaning of actual posting (BKPF-PSOZL)?
Do you know when a value "X" has been set in BKPF-PSOZL?
Thanks for you help in advance.Hi Madhu,
Here is whole header information of my document that I mentioned before.
Document Type SA G/L Account Document
Doc.Header Tex 0000142100001
Card type Card no.
Request Number
Reference 1000 Document Date 01/01/2009
Posting Date 01/01/2009
Currency GBP Posting Period 01 / 2009
Ref. Transactn BKPF Accounting document
Reference key 0100000821XXXX2009 Log.System XXXXXXXXX
Entered by XXXXXX Parked by
Entry Date 01/06/2009 Time of Entry 11:16:15
TCode FB01
Changed on Last update
Ledger Grp Ledger
Ref.key(head) 1 Ref.key 2
As you see, it has nothing to do with previous year and documen parking.
Thanks.
BR,
Chris Kim -
How to select header group with detailed data in one SQL
Dear,
I would like to have a little help from you. My goal is to create a view where data must be in appropriate format. In this format i would like to have for each group one header.
I have 3 tables which they ar connected to each other (representing hierachical data where financial plan breaks across different groups).
CRM_PLAN
CRM_PLAN_ID
DATE
AMOUNT
CRM_PLAN_PE
CRM_PLAN_PE_ID
TITLE
AMOUNT
CRM_PLAN_ID (ref key to CRM_PLAN.CRM_PLAN_ID)
CRM_PLAN_MONTH
CRM_PLAN_MONTH_ID
YEAR
MONTH
AMOUNT
CRM_PLAN_PE_ID (foreign key to CRM_PLAN_PE.CRM_PLAN_PE_ID)
Data looks like:
CRM_PLAN
CRM_PLAN_ID | DATE | AMOUNT
1 | 01.01.2012 | 500
2 | 01.02.2012 | 200
CRM_PLAN_PE
CRM_PLAN_PE_ID |TITLE | AMOUNT | CRM_PLAN_ID
1 | Organization 1 |100 | 1
2 | Organization 2 |400 | 1
3 | Organization 3 |200 | 2
CRM_PLAN_MONTH
CRM_PLAN_MONTH_ID | YEAR | MONTH | AMOUNT | CRM_PLAN_PE_ID
1 | 2012| 1 | 60 |1
2 | 2012| 2 | 40 |1
3 | 2012| 1 | 350 |2
4 | 2012| 2 | 50 |2
5 | 2012| 1 | 200 |3
I would like view which would return data like:
MONTH | AMOUNT
Organization 1 |null
1 | 60
2 | 40
Organization 2 | null
1 | 350
2 | 50
Organization 3 | null
1 | 200
The main question is hot to write an sql as source for view to insert before each group a row with title column value from table CRM_PLAN_PE. Is that even possible? Maybe you could suggest me some other method.
View will be used in oracle form where will be possible to edit data - I will arrange that through insted of trigger.
Regards,
Igor
Edited by: user5528050 on 29.11.2012 2:23
Edited by: user5528050 on 29.11.2012 2:24
Edited by: user5528050 on 29.11.2012 2:25Hi, Igor,
user5528050 wrote:
... I would like view which would return data like:
MONTH | AMOUNT
Organization 1 |null
1 | 60
2 | 40
Organization 2 | null
1 | 350
2 | 50
Organization 3 | null
1 | 200
The main question is hot to write an sql as source for view to insert before each group a row with title column value from table CRM_PLAN_PE. Is that even possible? Maybe you could suggest me some other method. So, you want to have 2 different kinds of rows in the output:
(1) "parent" or "master" rows containing data from crm_plan_pe, such as
MONTH AMOUNT
============== ======
Organization 1(2) "child" or "detail" rows containing data from crm_plan_month, such as
MONTH AMOUNT
============== ======
1 60Sure, you can do that.
One way is to do a UNION of 2 separate queries: (1) to generate just the parent rows, (2) to generate just the child rows.
You could also join the 2 tables and use GROUP BY GROUPING SETS. The super-aggregate rows would be the parent rows.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved (it looks like crm_plan is not involved in this problem), and also post the results you want from that data. You need to post this whether or not you want SQL code in reply. The people who want to help you want to provide good answers, and that means they want to re-create the probelm and try their ideas.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ {message:id=9360002} -
Re:ODS-Key fileds and data fields
When we get data from r/3, I know we can have data fileds blank but can we have key fields also balnk ???
Jack,
Loading Sales Order Header, Item and Scheduline into same ODS(Keys: Header, Item & SCL)
But why you want to load like that..? Not good approach.
Srini -
Rerence key is not picking up in ZFBL5N
Hello SAP Expert !!
I got one issue,in ZFBL5N report reference key is not picking for few plants,kindly suggest me asap as this is very urgent issue.
Thanks in advance !!!Hi Prateek,
Please check the following threads and see whether you get any useful info.
Reference Key in dynamic selection in FBL5N
How to change ref. key 2 in FBL5n through Mass change?
XREF1(Reference Key1) and XREF2(Reference Key2) in FBl5N report
FBL5N t code and BSEG table is showing wrong contract number
Warm regards,
Murukan Arunachalam -
Read statement with duplicate key fields
Hello,
I have an internal table(EKBE) with 8 fields
ebeln ebelp vgabe gjahr belnr budat wrbtr refkey
populating the first 7 fields from EKBE table with VGABE = 2 and PO#, concatenating the WRBTR and GJAHR to get the Refkey and passing this to the 8th field.
Using this refkey, getting the document numbers from BKPF.
I am looping another internal table into a work area and reading the above internal table by passing the ebeln field and I am doing some calculations ,etc.
A custom table is getting updated from the above work area.
The issue is-
The internal table EKBE can have the same PO numbers with the same line item numbers but with different ref key's.
So, when I am reading the int. tab, it is reading only one record, since I have no other key's to read except EBELN. So for one PO# it is reading only 1 ref key, I cannot use the line item# as a key, as the line item#'s never match, even if they match they could be same PO# with same line item# and different ref key.
Any inputs highly appreciated.
Regards,
KiranLoop on EKBE Internal table as well to fetch all entries of PO. Use Parallel cursor to optmize performance.
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPCodeforParallelCursor-Loop+Processing -
The value 1 is not allowed for the field variace key
Hi experts,
When i was creating material master i was getting the status message as "the value 1 is not allowed for the field variance key" , but its stopping there its not moving out of that screen and creating the material record. When i see this field in the material master configuration its an optional field. Can you give me suggestions, where it can go wrong.
Thanks & Regards,
Ravi.Hi
Can u tell me the field name . I cant get that field ref key. In which view does it come.
Reg
Raja -
DMEE - vendor payment ref No.
Hi,
We have updated our SEPA_CT with >CdtrRef< and should have the system to load vendor invoice payment ref. key from the field BSEG-KIDNO into the field. The field have untill now been loaded into <RmtInf><Ustrd> using DMEE_PAYD - TEXT
- <RmtInf>
<Ustrd>100506600019060100506600019086100000516232889108</Ustrd>
- <Strd>
- <CdtrRefInf>
- <CdtrRefTp>
<Cd>SCOR</Cd>
</CdtrRefTp>
<CdtrRef>XXXX</CdtrRef>
</CdtrRefInf>
</Strd>
</RmtInf>
Any idea on how to get the BSEG-KIDNO data like seen here in the field <Ustrd> into the <CdtrRef>? The XXXX in the field is from a constant used to check that we could get a output.
BR
JoergenHi Ravish,
Thanks for your reply and I know there is no direct way to maintain the relationship between payment table to FPAY* sturcture.
I am a new person for developing DME payment tree.In the standard payment tree SEAP_DD , I want to know how to fill the DMEE elements which attribute is structure field using FPAY* field? I analyzed the structure details of FPAY* and its fields description and the fields in FPAY* are always different to payment tables. I think there are maybe exist background program or FM to transfer data from referenced payment tables to FPAY* field. If the background process exsits, I want to know the them and I can know how to fill DMEE element when running the DME payment tree.
Thanks a lot.
Iris -
SAP License Key configuration procedure in Web AS(J2EE)
Hi,
We installed Web AS 6.4 (J2ee). It is running on temporary license and going to expire in one week time. I applied for license key and got the permanent license key as a text file attachment through email. It is a simple text file containing the license key, system NR and etc. I saved that text file into my machine.
I tried to configure that license file into Web AS using visual administrator.
Server 0 --> Services --> Licensing Adapter --> Install License from file
I selected the text file which was sent by SAP to my mail.
It is giving error like
License file C:\(license file name).txt contains an incorrect SAP license key: Header or empty line expected.
License key(s) not completely installed.
I don't know what to do now. I think we can do through this through cmd. But I don't know how to do that.
Shall I delete the temporary license? Will the system allow me to enter the value manually.
Can any one guide me on this?
Thanks.Srikishan,
I am getting error lilke this.
D:\usr\sap\SID\SYS\exe\run>saplicense -install
SAPLICENSE (Release 640) ERROR ***
ERROR: Can not set DbSl trace function
DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
RC-INFO: error loading dynamic db-library - check environment for:
dbms_type = <db-type> (e.g. ora)
DIR_LIBRARY = <path to db-dll> (e.g. /usr/sap/SID/SYS/exe/run)
Any idea about it?
I set the system variable like
dbms_type = mss
DIR_LIBRARY = D:\usr\sap\SID\SYS\exe\run
But still getting the error.
Do I need to set dbms_type in environment variables? I don't know it's value. My db is MS SQL DB.
Thanks. -
Hi All,
I am getting the following error.. while running a simple application in struts.
Cannot find message resources under key org.apache.struts.action.MESSAGE ?
As I have searched in google but could not find the concreate example so please help and give me a proper answer..
my struts-config.xml file is as .....
<code>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- ========== Form Bean Definitions ============ -->
<form-beans>
<form-bean name="login" type="test.struts.LoginForm" />
</form-beans>
<!-- ========== Global Forward Definitions ========= -->
<global-forwards>
</global-forwards>
<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction"
name="login"
input="/jsp/LoginView.jsp"
validate="true">
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
</action>
</action-mappings>
<message-resources null="false" parameter="test.struts.MessageResources"/>
</struts-config>
</code>
And my LoginView.jsp file is as:
<code>
<!-- LoginView.jsp -->
<%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %>
<HTML>
<HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD>
<BODY>
<bean:message key="heading.login" />
<html:errors />
<html:form action="/login">
<p>
<bean:message key="label.userId" />:
<html:text property="userId" size="10" />
<br>
<bean:message key="label.passWord" />:
<html:password property="passWord" size="10" />
<br><br>
<html:submit>
<bean:message key="button.submit" />
</html:submit>
</html:form>
</BODY>
</HTML>
</code>
MessageResources.properties is as :
<code>
button.submit=Send for Verification
error.no.userId=<li>User ID is a required field</li>
error.no.passWord=<li>Password is a required field</li>
error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li>
errors.footer=</ul><hr>
errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
label.userId=User ID
label.passWord=Password
heading.login=<H2>Enter your user information</H2>
title.login=Login Screen
title.mainmenu=Welcome
heading.mainmenu=<H1>Welcome!</H1>
label.userType=<H2>You are authorized to use this system as a</H2>
</code>
Please reply soon.
Thanks in advance
AmitindiaHi All,
I am getting the following error.. while running a simple application in struts.
Cannot find message resources under key org.apache.struts.action.MESSAGE ?
As I have searched in google but could not find the concreate example so please help and give me a proper answer.. my struts-config.xml file is as .....
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-
config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-
config_1_0.dtd"> <struts-config> <!-- ========== Form Bean
Definitions ============ --> <form-beans> <form-bean name="login"
type="test.struts.LoginForm" /> </form-beans> <!-- ========== Global Forward Definitions ========= --> <global-forwards> </global-
forwards> <!-- ========== Action Mapping Definitions ======== --> <action-mappings> <action path="/login" type="test.struts.LoginAction" name="login" input="/jsp/LoginView.jsp" validate="true"> <forward name="valid" path="/jsp/MainMenu.jsp" /> <forward name="invalid" path="/jsp/LoginView.jsp" /> </action> </action-mappings> <message-resources null="false" parameter="test.struts.MessageResources"/> </struts-config>
And my LoginView.jsp file is as:
<!-- LoginView.jsp --> <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %> <HTML> <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD> <BODY> <bean:message key="heading.login" /> <html:errors /> <html:form action="/login">
<bean:message key="label.userId" />: <html:text property="userId" size="10" /> <br> <bean:message key="label.passWord" />: <html:password property="passWord" size="10" /> <br><br> <html:submit> <bean:message key="button.submit" /> </html:submit> </html:form> </BODY> </HTML>
MessageResources.properties is as :
button.submit=Send for Verification error.no.userId=<li>User ID is a required field</li> error.no.passWord=<li>Password is a required field</li> error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li> errors.footer=</ul><hr> errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul> label.userId=User ID label.passWord=Password heading.login=<H2>Enter your user information</H2> title.login=Login Screen title.mainmenu=Welcome heading.mainmenu=<H1>Welcome!</H1> label.userType=<H2>You are authorized to use this system as a</H2>
Please reply soon. Thanks in advance Amitindia -
*& Report ZRAHUL_ALV_SFLIGHT2
REPORT zrahul_alv_sflight2 NO STANDARD PAGE HEADING.
TYPE-POOLS slis.
DATA: fcat TYPE slis_fieldcat_alv,
it_fcat TYPE slis_t_fieldcat_alv,
fcat1 TYPE slis_fieldcat_alv,
it_fcat1 TYPE slis_t_fieldcat_alv,
fcat2 TYPE slis_fieldcat_alv,
it_fcat2 TYPE slis_t_fieldcat_alv,
lout TYPE slis_layout_alv,
head TYPE slis_listheader,
it_head TYPE slis_t_listheader.
TABLES: SFLIGHT, SCURX, SAPLANE.
DATA: BEGIN OF it_sflight OCCURS 0,
carrid TYPE sflight-carrid, "PK
connid TYPE sflight-connid,
fldate TYPE sflight-fldate,
currency TYPE sflight-currency, "FK 1
planetype TYPE sflight-planetype, "FK 2
END OF it_sflight.
DATA: BEGIN OF it_scurx OCCURS 0,
currkey TYPE scurx-currkey, "PK 1
currdec TYPE scurx-currdec,
END OF it_scurx.
DATA: BEGIN OF it_saplane OCCURS 0,
planetype TYPE saplane-planetype, "PK 2
seatsmax TYPE saplane-seatsmax,
tankcap TYPE saplane-tankcap,
weight TYPE saplane-weight,
END OF it_saplane.
SELECTION-SCREEN: BEGIN OF BLOCK blk WITH FRAME TITLE t.
SELECT-OPTIONS: id FOR it_sflight-carrid,
id2 FOR it_sflight-connid.
SELECTION-SCREEN END OF BLOCK blk.
INITIALIZATION.
t = 'enter required criterias'.
lout-zebra = 'X'.
START-OF-SELECTION.
SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight
WHERE carrid IN id AND connid IN id2.
END-OF-SELECTION.
****FCAT F0R IT_SFLIGHT
fcat-col_pos = 1.
fcat-tabname = 'IT_SFLIGHT'.
fcat-fieldname = 'CARRID'.
fcat-outputlen = 10.
fcat-seltext_m = 'PLANE ID'.
APPEND fcat TO it_fcat.
CLEAR fcat.
fcat-col_pos = 2.
fcat-tabname = 'IT_SFLIGHT'.
fcat-fieldname = 'CONNID'.
fcat-outputlen = 10.
fcat-seltext_m = 'CONN ID'.
APPEND fcat TO it_fcat.
CLEAR fcat.
fcat-col_pos = 3.
fcat-tabname = 'IT_SFLIGHT'.
fcat-fieldname = 'FLDATE'.
fcat-outputlen = 10.
fcat-seltext_m = 'FLDATE'.
APPEND fcat TO it_fcat.
CLEAR fcat.
fcat-col_pos = 4.
fcat-tabname = 'IT_SFLIGHT'.
fcat-fieldname = 'CURRENCY'.
fcat-outputlen = 10.
fcat-seltext_m = 'CURRENCY'.
APPEND fcat TO it_fcat.
CLEAR fcat.
fcat-col_pos = 5.
fcat-tabname = 'IT_SFLIGHT'.
fcat-fieldname = ';PLANETYPE'.
fcat-outputlen = 10.
fcat-seltext_m = 'PLANETYPE'.
APPEND fcat TO it_fcat.
CLEAR fcat.
*****GRID DISPLAY
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = 'ZRAHUL_ALV_SFLIGHT2'
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'CLICK'
i_callback_top_of_page = 'HEADER'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
i_grid_title = 'GRID 1'
I_GRID_SETTINGS =
is_layout = lout
it_fieldcat = it_fcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
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
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_sflight
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form header
text
FORM header.
CLEAR it_head.
head-typ = 'H'.
head-info = 'KINGFISHER'.
APPEND head TO it_head.
head-typ = 'S'.
head-key = 'KEY'.
head-info = 'AIRLINES'.
APPEND head TO it_head.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_head
i_logo = 'KING_LOGO'
I_END_OF_LIST_GRID =
I_ALV_FORM =
ENDFORM. "header
*& Form CLICK
text
-->OK text
-->SEL text
FORM click USING ok TYPE sy-ucomm
sel TYPE slis_selfield.
CLEAR it_fcat.
CASE ok.
WHEN '&IC1'.
********SAPLANE RELATION
READ TABLE it_sflight INDEX sel-tabindex.
SELECT * FROM saplane INTO CORRESPONDING FIELDS OF TABLE it_saplane WHERE planetype = it_sflight-planetype.
fcat-col_pos = 1.
fcat-tabname = 'IT_SAPLANE'.
fcat-fieldname = 'PLANETYPE'.
fcat-outputlen = 10.
fcat-seltext_m = 'TYPE OF PLANE'.
APPEND fcat TO it_FCAT.
CLEAR fcat.
fcat-col_pos = 2.
fcat-tabname = 'IT_SAPLANE'.
fcat-fieldname = 'SEATSMAX'.
fcat-outputlen = 10.
fcat-seltext_m = 'MAX SEATS'.
APPEND fcat TO it_FCAT.
CLEAR fcat.
fcat-col_pos = 3.
fcat-tabname = 'IT_SAPLANE'.
fcat-fieldname = 'TANKCAP'.
fcat-outputlen = 10.
fcat-seltext_m = 'FUEL TANK CAPACITY'.
APPEND fcat TO it_FCAT.
CLEAR fcat.
fcat-col_pos = 4.
fcat-tabname = 'IT_SAPLANE'.
fcat-fieldname = 'WEIGHT'.
fcat-outputlen = 10.
fcat-seltext_m = 'WEIGHT F PLANE'.
APPEND fcat TO it_FCAT.
CLEAR fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = 'ZRAHUL_ALV_SFLIGHT2'
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_callback_top_of_page = 'HEADER'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
i_grid_title = 'GRID 2'
I_GRID_SETTINGS =
is_layout = LOUT
it_fieldcat = IT_FCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
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
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = IT_SAPLANE
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*******SCURX RELATION
CLEAR: IT_FCAT2,IT_FCAT.
READ TABLE IT_SFLIGHT INDEX SEL-TABINDEX.
SELECT * FROM SCURX INTO CORRESPONDING FIELDS OF TABLE IT_SCURX WHERE CURRKEY = IT_SFLIGHT-CURRENCY.
FCAT2-COL_POS = 1.
FCAT2-TABNAME = 'IT_SCURX'.
FCAT2-FIELDNAME = 'CURRKEY'.
FCAT2-OUTPUTLEN = 15.
FCAT2-SELTEXT_M = 'CURRENCY'.
APPEND FCAT2 TO IT_FCAT2.
CLEAR FCAT2.
FCAT2-COL_POS = 2.
FCAT2-TABNAME = 'IT_SCURX'.
FCAT2-FIELDNAME = 'CURRDEC'.
FCAT2-OUTPUTLEN = 15.
FCAT2-SELTEXT_M = 'CURRENCY DEC'.
APPEND FCAT2 TO IT_FCAT2.
CLEAR FCAT2.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = 'ZRAHUL_ALV_SFLIGHT2'
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = 'HEADER'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'GRID 3'
I_GRID_SETTINGS =
IS_LAYOUT = LOUT
IT_FIELDCAT = IT_FCAT2
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
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
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = IT_SCURX
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDCASE.
ENDFORM. "click
this program runs fine when one navigation is used......but when both the foreign keys come in picture then its shows sequencialy...cant we jump directly to the third one which i require....
plz guide me.thank u.in short i want help on table having multiple foreign keys....and how to navigate in this when working on ALV reports.....
its easy when using interactive reports by using sy-cucol and sy-curow.....
reply asap.
thank u in advance.
Maybe you are looking for
-
Standard Sales Analsis Report with Customer Name and Location
Hi All, Can Anybody provide a custom query for the standard slaes Analysis report which includes Customer Name , Location columns in the Standerd Report. Regards, srini
-
Any way to get rid of email contacts mixed in with phone numbers?
Hi. My email contacts and phone numbers are mixed together and I want just my phone numbers to show. This is found by tapping the green phone icon and going to contacts.
-
No pictures show up in iPhoto Library on my hard drive.
When I try and find my pictures on my hard drive, there is only a iPhoto Library icon but no pictures show up. I upgraded my iLife to '08 and now I can't find the folder in which my pictures are stored. I can't drag and drop the pictures from iPhoto
-
Truncating last three characters in Mainfram GDG dataset.
Hi Folks, I had developed a scenario IDOC - > XI -> File and this file is generated on Mainframe system as a GDG dataset . I was able to generate the file but last three characters are getting truncated for each record in the file(dataset). From XI w
-
How can i replace parts of my laptop with better parts
I got a HP pavilion G6 . And i dont have the money to buy a new pc, so my question is, can i replace some parts with better ones, so i can have a better game expierience. And are there ways to boost my FPS? Thanks Niels