HEY....CAN ANY BODY CORRECT MY CODE!!!!!
REPORT YTABLEJOIN .
TABLES:YEMPLOYEE,
YEMPLOYEEDB.
TYPES: BEGIN OF TY_EMPLOYEE,
EMP_ID TYPE YEMPLOYEE-EMP_ID,
EMP_NAME TYPE YEMPLOYEE-EMP_NAME,
EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
EMP_AGE TYPE YEMPLOYEEDB-EMP_AGE,
EMP_GENDER TYPE YEMPLOYEEDB-EMP_GENDER,
END OF TY_EMPLOYEE.
TYPES: BEGIN OF TY_EMPLOYEEDB,
EMP_NAME TYPE YEMPLOYEEDB-EMP_NAME,
EMP_ID TYPE YEMPLOYEEDB-EMP_ID,
EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
END OF TY_EMPLOYEEDB.
*TYPES: BEGIN OF TY_JOIN,
EMP_ID TYPE YEMPLOYEE-EMP_ID,
EMP_NAME TYPE YEMPLOYEE-EMP_NAME,
EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
EMP_AGE TYPE YEMPLOYEEDB-EMP_AGE,
EMP_GENDER TYPE YEMPLOYEEDB-EMP_GENDER,
END OF TY_JOIN.
DATA:I_EMPLOYEE TYPE STANDARD TABLE OF TY_EMPLOYEE WITH HEADER LINE.
DATA:I_EMPLOYEEDB TYPE STANDARD TABLE OF TY_EMPLOYEEDB WITH HEADER LINE.
*DATA:I_JOIN TYPE STANDARD TABLE OF TY_JOIN WITH HEADER LINE.
*SELECT * FROM YEMPLOYEE INTO CORRESPONDING FIELDS OF TABLE I_EMPLOYEE .
*SELECT * FROM YEMPLOYEEDB INTO CORRESPONDING FIELDS OF TABLE
*I_EMPLOYEEDB.
*USING JOIN STATEMENTS
*SELECT AEMP_ID AEMP_NAME A~EMP_ADDR
*AEMP_PROFILE BEMP_AGE B~EMP_GENDER INTO
*CORRESPONDING FIELDS OF TABLE I_JOIN FROM I_EMPLOYEE AS A JOIN
*I_EMPLOYEEDB AS B ON AEMP_ID = BEMP_ID.
*USING FOR ALL ENTRIES
SELECT *
FROM YEMPLOYEEDB INTO
CORRESPONDING FIELDS OF TABLE I_EMPLOYEEDB.
SELECT * FROM YEMPLOYEE INTO
CORRESPONDING FIELDS OF TABLE I_EMPLOYEE
FOR ALL ENTRIES IN I_EMPLOYEEDB
WHERE EMP_ID = I_EMPLOYEEDB-EMP_ID
AND EMP_NAME = I_EMPLOYEEDB-EMP_NAME.
*AND EMP_NAME = I_EMPLOYEE-EMP_NAME.
*LOOP AT I_EMPLOYEE.
*READ TABLE I_EMPLOYEEDB WITH KEY EMP_ID = I_EMPLOYEE-EMP_ID.
*IF SY-SUBRC = 0.
*I_EMPLOYEE-EMP_ADDR= I_EMPLOYEEDB-EMP_ADDR.
*I_EMPLOYEE-EMP_PROFILE = I_EMPLOYEEDB-EMP_PROFILE.
*MODIFY I_EMPLOYEE.
*ENDLOOP.
LOOP AT I_EMPLOYEE.
WRITE: I_EMPLOYEE-EMP_ID,
I_EMPLOYEE-EMP_NAME,
I_EMPLOYEE-EMP_ADDR,
I_EMPLOYEE-EMP_PROFILE,
I_EMPLOYEE-EMP_AGE,
I_EMPLOYEE-EMP_GENDER.
SKIP.
ENDLOOP.
MY QUESTION IS HOW TO GET THE DISPLAY....?
hi.
just debug your program.
i think select statement not fetching data from table YEMPLOYEE.
use internal table.
just look at this code
TABLES:YEMPLOYEE,
YEMPLOYEEDB.
data: BEGIN OF I_EMPLOYEE occurs 0,
EMP_ID TYPE YEMPLOYEE-EMP_ID,
EMP_NAME TYPE YEMPLOYEE-EMP_NAME,
EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
EMP_AGE TYPE YEMPLOYEEDB-EMP_AGE,
EMP_GENDER TYPE YEMPLOYEEDB-EMP_GENDER,
END OF I_EMPLOYEE.
data: BEGIN OF I_EMPLOYEEDB occurs 0,
EMP_NAME TYPE YEMPLOYEEDB-EMP_NAME,
EMP_ID TYPE YEMPLOYEEDB-EMP_ID,
EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
END OF I_EMPLOYEEDB.
*USING FOR ALL ENTRIES
SELECT *
FROM YEMPLOYEEDB INTO
CORRESPONDING FIELDS OF TABLE I_EMPLOYEEDB.
SELECT * FROM YEMPLOYEE INTO
CORRESPONDING FIELDS OF TABLE I_EMPLOYEE
FOR ALL ENTRIES IN I_EMPLOYEEDB
WHERE EMP_ID = I_EMPLOYEEDB-EMP_ID
AND EMP_NAME = I_EMPLOYEEDB-EMP_NAME.
LOOP AT I_EMPLOYEE.
WRITE: I_EMPLOYEE-EMP_ID,
I_EMPLOYEE-EMP_NAME,
I_EMPLOYEE-EMP_ADDR,
I_EMPLOYEE-EMP_PROFILE,
I_EMPLOYEE-EMP_AGE,
I_EMPLOYEE-EMP_GENDER.
SKIP.
ENDLOOP.
Message was edited by:
prajwal k
Similar Messages
-
Select all and dselect all can any body provide a code for these buttons
hi
i have taken 4 buttons for select all and dselect all and sort up and sort down can any body provide a code for these buttons.
thankshi,
Refer this link...
code for select_all and deselect_all in modulepool -
Can any body give me code for file download in jsp
Hi all,
I have done file uploading to a particular dir C;\uploadfiles, and store the name of the file with other information in a table. Now I want to download that file of any format from that dir using jsp or servlet.
Can anybody please help me with some code.
Thanks and Regards
RajibThis seems more like a job to a servlet
public String getContentType(){
this should return the cntent yupe of the file
that shoule be downloaded
if unknown use something like binary/data
public byte[] getFileData(){
This should return the data of the file as a byte array
public void doGet(......................){ // or doPost
res.setCotentType(getContentType());
OutputStream os = res.getOutputStream();
os.write(getFileData());
os.close();
}Above is the most simplest way to do it
and havent been tested you might need changes based on your program design -
Can any body Help me how to upload the BANK SORT codes File other LSMW
Dear Experts
I Could not under stand how to upload bank "sort codes" file in to SAP system other than LSMW,
could please some body help me ,
the file which have "CSV" format, is the format is correct format to upload into SAP system?
and Country code is Great Britan
Best regards
RanamkaHI
I have to sort codes ordered to upload into SAP , I have the date which i have below mentioned format can any body guide me weather formate is correct or not , if wrong please provide me which is correct format and also give me which it the transaction code for uploading
Field No. Field Description Data Type Max.Length
1 Record Type
2 Branch or place
3 BIC Bank Code
4 BIC Branch Code
5 6 Digit Sort Code
6 Address Line 1
7 Address Line 2
8 Address Line 3
9 Postcode
10 Telephone Number
11 Branch Title
12 Bank Name
13 Town
14 Date Last Amended
Best Regards
Ranamka -
CAN ANY BODY EXPLAIN THESE QUESTIONS, VERY URGENT
WHAT IS THE USE OF CHAPTER ID, IN CHAPTER ID RATES WILL BE DETERMINES.
HOW MANY TAX CODES NEED CST, LST.
WHERE CAN I SEE EXCISE REGISTER
WHAT IS MEANT BY RG1 CAN ANY BODY EXPLAIN BRIEFLY, WHAT IS THE USE OF RG1
HOW DO I GET OPENING BALANCE FOR EVERY MONTH.
IN DEPOT SALES, IF CREATING EXCISE INVOICE A CERTIFICATED WILL ISSUE, IN A CERTIFICATE WHICH FIELDS WILL BE THERE.
WHAT IS MEANT BY JURISDICTION CODE & COUNTY CODE.
IN SD FACTORY SALES WHICH A/C ENTERIES GENERATED.
CAN ANY BODY EXPLAIN THESE FORMS, WHICH SITUATION THESE FORMS WE ARE USING. I NEED VERY URGENT.
a) A form
b) D form
c) C form
d) H form
e) DDP form
f) TR6 form
g) D3 form.
H) ARE.
I) ARE 1
j) ARE 2
IN DEPOT SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES WILL COME,
IN FACTORY SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES WILL COME
NOW WHAT IS THE VAT TAX.
what is the use of common distribution channel and common divisions
PLS FORWARD ANSWERS TO THIS MAIL ID.
i hope that definitely people will help
thanks every body.Dear vara prasad
You can take it for granted if you post so much questions in one thread like this, nobody will answer / clarify you.
So please make one thread per question.
Meanwhile, just I would like to clarify for few questions
1) The most important feature of chapter id is that based on this chapter id which you maintain in "Excise Tax Rate", all your excise tax rates will be flowing into your sale order / billing
2) If the rate of tax differs, then you need to maintain a separate tax code. For example, the LST / VAT in some state is 4%, and in some state it is 12%. So in this case, you need to maintain two tax codes
thanks
G. Lakshmipathi -
Can any body explain the STO Process
hi,
sap gurus,
good morning to all,
can any body explain the PLANT to STORAGE LOCATION stock transfer single and two
stepProcess in detail.
regards,
balaji.t
09990019711.Hi,
Stock Transfer Between Plants in One Step
Use
This type of stock transfer can only be carried out in Inventory Management. Neither Shipping in the issuing plant nor Purchasing in the receiving plant is involved in the process.
Transferring stock in one step has the following characteristics:
The stock transfer is entered as a transfer posting in Inventory Management.
The transfer posting can be planned by creating a reservation.
The quantity of the stock transferred is posted immediately from the unrestricted-use stock of the issuing plant to the unrestricted-use stock of the receiving plant
The transfer posting is valuated at the valuation price of the material in the issuing plant.
If the plants involved belong to different company codes, the transfer between plants is also a transfer between company codes. In this case, the system creates two accounting documents for the transfer posting. The stock posting is offset against a company code clearing account.
Stock Transfer Between Plants in Two Steps
Use
This type of stock transfer can only be carried out in Inventory Management. Neither Shipping in the issuing plant nor Purchasing in the receiving plant is involved in the process.
The stock transfer includes the following processes:
A goods issue in the issuing plant
A goods receipt in the receiving plant
Transferring stock in two steps has the following characteristics:
The transfer posting cannot be planned by creating a reservation.
The quantity posted from stock is first of all managed as stock in transfer in the receiving plant. Only once the goods receipt has been posted is the quantity posted to the unrestricted-use stock of the receiving plant.
This enables the quantity "on the road" to be monitored.
The transfer posting is valuated at the valuation price of the material
pl check for more info [STO|http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b90dc43ad11d189410000e829fbbd/content.htm]
regards
sadhu kishore -
Can any body tell me the general tickets.
Hi all,
Can any body tell me the general tickets received by users in production support.means the issues which we have to solve.Hi
General tickets
1) SID missings
2) ODS activation failed
3) Delta failures from ODS to Cube
4) Authorizations to Co Codes for the reports
5) Error records in PSA
6) Special characters or Invalid characters
7)Timestamp error
Etc
Hope it helps
regards
AK
Assign Points if usefull -
hi, i want to control my vi from multiple systems using ethernet options can any body tell me how to do that? thans in advance
There are multiple ways of doing this. Here are some of them..
The Web Publishing tool allows you to publish the front panel and you can control the front panel remotely.http://www.ni.com/white-paper/2911/en/
The TCP/IP socket can allow you to pass codes "strings" to another computer. Lookup the server client example.
regards,
Gautham -
Can any body tell me, can we attach field exits to Njoy trnsactions in 4.7
Hi,
can any body tell me how to attach field exits to the enjoy transactions in 4.7.
I was not been able to attch the field exits to "Account assignement catagory" in trnasaction ME51N(Purchase requisition creation) using the program "RSMODPRF".
Please suggest.
Best Regards
Ramanjaneya ReddyBut hey! Your in 4.7, use BADIs!
Goto transaction SE18, search and you will find some stuff like ME_PROCESS_REQ. There are several dozens for purchasing, so go for the new technics.
By the way, I'm not sure if workaround is still possible in 4.7.
Implementation will be done with SE19.
Regards,
Christian -
Can any body tell me how to use the TCODE:ABF1 ?
Can any body tell me how to use the TCODE:ABF1 ?
Can any body tell me the different of the ABF1 and FB01?
Thank very much.Hi Jie,
both Transaction codes are working are same.
Both are working through program : SAPMF05A.
Packages are different: FIDC & AB.
FB01 : we can control objects through F_BKPF_BUK
Hope its clear.
Kishore K -
Can any body tell how RSGEN works
Can any body tell how RSGEN works and where it stores the generated code and where the path is maintained.
Regards
MaveYa I am sorry I mean SGEN , my problem is I had ran that SGEN but each time I restart my system and access any TCODE the system starts compiling its happeneing every time I restart. What I suppose my system cannot able to locate the generated loads of ABAP sources .
How the system actually recognize the generated loads from the tablespace somewhere may be tablespace path is defined ?
OR suggest any alternative.
Regards
Mithun -
Can any body help me to prepare f.s for!
can any body help me to prepare f.s for!
all material movements and asociated accoutning document?
all open purchase orders for a given plant and delivery period?Hi
what do you mean by f.s, is it functional specification?
Material document associated accounting document you can find MSEG and BSEG tables
Open Purchase Orders for a given plant and delivery period
Purchase orders infirmation is available in EKKO (Header) and EKPO (Item)
Take the information from EKKO by company code, pass it on to EKPO by plant (WERKS)which is not equal to (EKPO -ELIKZ) for open PO and for delivery date (EKET-EINDT).
please check and let me know if you need anything.
regards
Srinivas -
Can any body give the solution
Hi,
Can any body give the solution for my queries?
A two level PO Release workflow is required to support the Import PO Release Approval business process. Forecast and Replenishment will transfer orders to SAP ERP. Purchase orders will be blocked upon creation based on the document type. If the document type is ZIMP=Import Purchase order, the order will have to go through a release process described below:
When a PO is created it will be automatically blocked based on the document type ZIMP and a workflow will be triggered to the stock planner responsible to work on the containerization of the order. The stock planner will receive an email notification and an SAP workitem to generate and send a report to the vendor to get the order containarized. Once the report has been sent the purchase order will be relased with code 01:In containerization.
01/29/07: The containerization report needs to include: PO number (EKPO_EBELN), Article number (EKPO_MATNR), Vendor part number (EKPO_MFRPN), Description (MKAT_MAKTX), Quantity in Base unit of Measure (EKPO_MENGE) and Quantity in BuyPack unit of measure and Net price (EKPO_BPRME). This report should be generated out of SAP as part of the release code 01 of the workflow. The report will be downloaded to excel by the approver.
After the order is released with code 01, a second workitem will be triggered to the stock planner who will use SAP to execute the workitem. The work item will allow the modification of the PO (if needed) with the containerized quantities and the release of it using release code 02:Release. The second work item for release code 02 does not need to trigger the report.
Substitutions: If there is a substitute for the approver (i.e.an admin), that person will be included on the list of approvers.
Emergency approvals: A position not in the approver hierarchy (i.e., Finance Marketing Manager) can approve the request outside the loop of the approval workflow.
these are the questions i have from the above requirement:
Is the containerazation report which has to be include few fields has to develop as a report or has to be done in workflow?
Can any body explain how the order is containerized and what is containerization?
Where can i see the release codes in the me21n?
If there is any queries regarding this requirement to shoot Functional Spec owner.Please Send to me.
Give the Solutions ASAP.
Regards,
Naidu.See my response in Can any body give the solution.
Rosaiah and others: please quit starting multiple threads for the same request. It is just annoying! In my opinion it is also disrespectful to everyone else in the forum, but that's my personal opinion.
You could either have edited your original request, or posted a reply to it with the additional information. -
Re:I am fresher can any body giveme Interview point Questions
Dear Friends,
I am fresher can any body giveme Interview point Questions.
emailid:[email protected]
Thanks in advance,
KIRAN.http://www.sap-img.com/sap-fi.htm
FICO Sample Questions
FI/CO Interview Questions
SAF FI Technical Interview Questions 1
SAF FI Technical Interview Questions 2
SAP FI/CO Sample Questions and Answers 1
SAP FI/CO Sample Questions and Answers 2
FI Errors and Probable Solutions
SAP Financial Modules TC
Some Important Tcodes for FI GL AR AP Asset
SAP FI Transaction Code List 1
SAP FI Transaction Code List 2
Tcodes for Configuring Assets Accounting
Useful Reports Tcode in SAP Financial Accounting
The Financial Statement Closing Tcodes
Profit and Loss Closing Tcodes
Assets and Liabilities Closing Tcodes
SAP FI CO Table
Important Tables in SAP FI
Important Tables in SAP CO
Important Tables in SAP AA
Regards,
Rajesh Banka -
Can any body send me some issues about mail sending .
can any body send me some issues about mail sending .
thanks alot !
mail to :<i><b>[email protected]</b></i>HI
GOOD
GO THROUGH THIS CODE
REPORT ZTSAPMAIL.
DATA: X_OBJECT_TYPE LIKE SOOD-OBJTP.
DATA: BEGIN OF X_OBJECT_HD_CHANGE.
INCLUDE STRUCTURE SOOD1.
DATA: END OF X_OBJECT_HD_CHANGE.
DATA: BEGIN OF X_OBJCONT OCCURS 10.
INCLUDE STRUCTURE SOLI.
DATA: END OF X_OBJCONT.
DATA: BEGIN OF X_OBJHEAD OCCURS 0.
INCLUDE STRUCTURE SOLI.
DATA: END OF X_OBJHEAD.
DATA: BEGIN OF RAW_HEAD.
INCLUDE STRUCTURE SORH.
DATA: END OF RAW_HEAD.
DATA: BEGIN OF X_RECEIVERS OCCURS 0.
INCLUDE STRUCTURE SOOS1.
DATA: END OF X_RECEIVERS.
PARAMETERS: RECEIVER LIKE X_RECEIVERS-RECNAM. " Name
*BUILD MESSAGE HEADER
MOVE 'Sort field goes here' TO X_OBJECT_HD_CHANGE-OBJSRT. " Sort field
MOVE 'Name of the object goes here' TO X_OBJECT_HD_CHANGE-OBJNAM. " Name
MOVE 'Document title goes here' TO X_OBJECT_HD_CHANGE-OBJDES. " Title
MOVE 'F' TO X_OBJECT_HD_CHANGE-OBJSNS. " Functional OBJECT
MOVE 'E' TO X_OBJECT_HD_CHANGE-OBJLA. " Language
Object type of the new document
MOVE 'RAW' TO X_OBJECT_TYPE.
CLEAR X_OBJCONT.
MOVE 'Contents of mail' TO X_OBJCONT-LINE.
APPEND X_OBJCONT.
CLEAR X_OBJCONT-LINE. APPEND X_OBJCONT.
MOVE 'More contents' TO X_OBJCONT-LINE.
APPEND X_OBJCONT.
MOVE 'Still more contents'
to x_objcont-line.
APPEND X_OBJCONT.
MOVE ' ' TO X_OBJCONT-LINE.
APPEND X_OBJCONT.
Specific header (Dependent on the object type, here RAW)
REFRESH X_OBJHEAD.
DESCRIBE TABLE X_OBJCONT LINES RAW_HEAD-RAWSIZ.
MOVE RAW_HEAD TO X_OBJHEAD.
APPEND X_OBJHEAD.
*RECEIVERS table
CLEAR X_RECEIVERS.
REFRESH X_RECEIVERS.
MOVE RECEIVER TO X_RECEIVERS-RECNAM. " Name
MOVE 'B' TO X_RECEIVERS-RECESC. " Receiver type
MOVE 'X' TO X_RECEIVERS-SNDCP. " Send as a copy
MOVE 'X' TO X_RECEIVERS-SNDEX. " EXPRESS DOCUMENT
APPEND X_RECEIVERS.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = 'OUTBOX'
forwarder = x_forwarder
object_fl_change = x_object_fl_change
OBJECT_HD_CHANGE = X_OBJECT_HD_CHANGE
object_id = x_object_id
OBJECT_TYPE = X_OBJECT_TYPE
OUTBOX_FLAG = 'X'
OWNER = SY-UNAME
store_flag = x_store_flag
importing
object_id_new = x_object_id_new
sent_to_all = x_sent_to_all "May need to use
TABLES
OBJCONT = X_OBJCONT
OBJHEAD = X_OBJHEAD
objpara = x_objpara
objparb = x_objparb
RECEIVERS = X_RECEIVERS.
Firstly SAP Mail
A SAP mail is a mail internal to the SAP system. It is a very good forum to exchange information with other users. Using a SAP mail in ABAP code facilitates exchange of automatic messages at various stages of the business process. It is easy to use and saves many hassles involved in using workflows for exchanging messages.
The ABAP code to send a sap mail is built around the FM SO_OBJECT_SEND which has the following pattern.
call function 'SO_OBJECT_SEND'
exporting
EXTERN_ADDRESS = ' '
FOLDER_ID = ' '
FORWARDER = ' '
OBJECT_FL_CHANGE = ' '
OBJECT_HD_CHANGE = ' '
OBJECT_ID = ' '
OBJECT_TYPE = ' '
OUTBOX_FLAG = ' '
OWNER = ' '
STORE_FLAG = ' '
DELETE_FLAG = ' '
SENDER = ' '
CHECK_ALREADY_SENT = ' '
importing
object_id_new =
sent_to_all =
tables
OBJCONT =
OBJHEAD =
OBJPARA =
OBJPARB =
receivers =
PACKING_LIST =
ATT_CONT =
ATT_HEAD =
NOTE_TEXT =
exceptions
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
x_error = 20
others = 21.
THANKS
MRUTYUN
Maybe you are looking for
-
How do I switch itunes from one computer to my new one?
I have iTunes installed on my new computer. The problem is that all of my app icons are greyed out. Any help is greatly appreciated. Thank you! Mike
-
I connected my iphone to the computer after my husband had been in itunes with his iphone, when i connected my phone I lost all my info, photo's calendar, contacts etc, and my husbands info was downloaded on to my phone. how do I retrieve my info and
-
How to add a search help to a field Bank Type in Transaction FK02
Dear All, How to add a search help to a field Bank Type in Transaction FK02. Is there any possibilty of using exit or searc help or domain to solve this problem. Thanks in Advance.. Thanks, Lakhsmi.
-
Where will i find - BP for Talent Development Specialist
Hello!!! I have been searching for the BP for Talent Development Specialist (also called Talen Specialist i guess). Couldnt find anything relevant to that. It would be very helpful if someone could point me out in the correct direction. My system is
-
How to get rid of MobileMe?
Hello, I set up my iCloud account through my iPhone. I'm not allowed to access it, though, because it asks me to sign into MobileMe. When I attempt to, either my username or password is incorrect. And I looked at my System Preferences on my Mac an