Tuesday, July 22, 2008

2008 July 23 Portal Content July 24 Portal By Chin

Creating I View
Step01
Step02
Step03
Step04
Step05
Step06
Step07
Create Page
Step01
Step02
Step03
Step04
Add Iview to pages
Step01
Adding Pages to Roles
Step01

Roles(Worksets)
Workset(Pages)
Pages(Iview)

How to go to roles?
PortalContent->ContentProvidedBySAP
-End-UserContent
-Roles
-employee_self_service

By opening the page that you created and the roles opened.
You click on the roles in the category and then go to the tree view and add page to roles.

How to add to back end?
SPRO - > IMG -> PersonalManagement -> EmployeeSelfService -> Homepage FrameWork -> Resources -> Define Resources

*Make sure you have the PCD example //pcd......
**Add into the selected module Roles://pcs....

Monday, June 30, 2008

2008 June 30 Lesson Learned

In the quest of enhancing programming i made lots of mistakes.
Somethings to pin point:-

1. Sometimes the problem is not in the program but the is the logic.
2. For Loop command it is best to clear or reinitialized the attribute or variable
3. For the debug mode there is a table option key into it and see the result. The data inside could be helpful. "syst"
4. Always press F1 for more information. From that you can go SE37 to get more technical help F1 AGAIN!
5. The system example is the best (This is what i notice from doing BAdi)
6. Sometimes only the new debugger will work for newer type of programs.
7. There are many ways to test a program.
a. Front-End = Portal - Applicant And Approval
b. Back-End = Admind running a program or using APPcreate
8. ALWAYS DOUBLE CLICK. Into those area that you do not know.
9. Look for keywords. If you are changing a area try see modiy. Or if you are changing an area it could be some place which have specific name.


PS : i could be wrong so please advised Thanks in advance ^_^

Thursday, June 26, 2008

2008 Jun 27 How to check Transport

Tcode - stms
click on the Lorry Symbol.
click on the destination server.
Find the Transport number
check on the symbol
- > triangle (transported [text label ready to be transported again])
- > Green Tick (transported)
- > Green Square (means ready to be transported)
- > Red Square (error)

Wednesday, June 25, 2008

2008 Jun 25 How to check position ID

Exercise
1. Tcode (SE16) -> HRP1001 [ObjectType(P),ObjectID(00064744).RSIGN(B),RELAT(008)] Execute
2. Copy the SOBID(51650769)
3. Tcode (OPP01) -> [OBJECTID(51650769)] -> Select POSITION -> Click OverView(button) -> OverView Shift08
4. Check the relationship (z02 - Bussiness Structure (new)) OR (rel ) ( 003 - Legal Structure (old)) There is a OR will have to confirm with user
5. Choose the ORG ID Z02 -> 516 507 68 (answer!)

2008 June 25 How to Create BAdi

BAdi For current development
Adviced by Pak Nanang,Wai Meng and Radi.
TCode(TransactionCode)
SE18 - DisplayBAdi
SE19 - CreateBAdi

Deduction is within a standard SAP program there are places we can customized to our own requirements. The places are called user exit.
For my current limited knowledge:-
1. BAdi TCode - se19,se18
2. Dynamic Action

Been guided to do BAdi in two different ways.
1. SE19 -> Create Implementation -> Choose classic BAdi(Select from the list z* find) -> Press Create Impl. -> Choose the new name + The App Name. Then Change and Save the method you modify added.
2. OOAM -> Goto -> Enhancement (this is the place where you can find the list of BAdi related to PMS only so you do not need to search for z*) -> Choose classic BAdi

Why some programmers use se19 instead of ooam this is because they might want to us another BAdi which can do the desire value or behavior.

For the enhancement
The tcode use is
SE19
( to create ),
OOAM ( to view the layout and put the BAdi inside the PMS form - Functional Changes),
phap_admin_pa ( to execute the app ).
Appcreate ( to run the app but in more web based )

Guide was given by Wai Meng to find the coordinates in the forms ( using the debug mode - create a break point - look into the table (t_body) and find the unique Row and column Id)
Guide given by Pak Nanang was basically on how to create the BAdi and placement.
Guide given by Radi was basically the logic and the place to pin point the score value to be use by the Badi.

----------------------------------------------------

TCODE Picked Up
PFTC_DIS - workflow
SE91 - Message (havent test)

TABLE
T9B03 - The Value and coordinate use by the BAdi

Notes : I could be wrong any SAPIAN out there if i am wrong in any of my post please do voice out Thanks in advance



More How to and Tips :

https://www.sdn.sap.com/irj/sdn/thread?tstart=0&threadID=767077

http://searchsap.techtarget.com/tip/0,289483,sid21_gci1276392,00.html

Monday, June 23, 2008

Wednesday, June 18, 2008

PCH Logical Database calling a PNP logical database

Using call Function
Example
proceed = 'Y'.
*CHECK EMPLOYMENT STATUS (ACTION INFOTYPE).
clear i0000. refresh i0000.
call function 'HR_READ_INFOTYPE'
exporting
pernr = temp_02-pfno
infty = '0000'
begda = pchbegda
endda = pchendda
tables
infty_tab = i0000.
loop at i0000.
if empstat <&gt; space and not i0000-stat2 in empstat.
proceed = 'N'.
endif. "empstat <&gt; space and not i0000-stat2 in empstat.
exit.
endloop. "at i0000.
if sy-subrc ne 0.
proceed = 'N'.
endif. "sy-subrc ne 0.

Example
ZDLLBMW001


Information provided by Siti Sarah