ETrust and SAP ABAP/J2EE
Hello Security folks,
We are implementing SAP J2EE and ABAP across multiple systems. We have been working with CA eTrust to assist us in hardening the OS platform. We are running on AIX.
We recognize that eTrust does not use the SAP technology for external integration (which is why it CANNOT be certified in the same way).
Have any folks worked with eTrust and an SAP system on the same host?
We have found the "Executive Summary" (by SAP) for the eTrust and they have stated that it works with SAP Systems - like R/3 4.7 Enterprise. This system never had a J2EE stack included so I am wondering if J2EE is also workable while running eTrust.
The second question is with Re: to the policy files - the "Exec Summary" shows that there are two that should be implemented (one for OS generally, one for SAP). Are these from SAP or from CA?
Has anyone had experience with CA eTrust on SAP hosts?
Thanks,
Judson
Hi again,
We are still looking for an SAP specific eTrust configuration guide and baseline policy files.
Our SAP representative has suggested that we enter an SDN message on this - and that there are SAP security specialists that review these contents.
Your assistance in locating this information is greatly appreciated.
Warm regards,
Judson
Similar Messages
-
Difference between SAP BC ABAP and SAP ABAP Training
What is the basic difference between SAP BC ABAP and SAP ABAP Training ?
Can any one answer these? I am little confused about the learning material I searched on internet and the course provided. It has similar topics but different name. I have course like SAP ABAP ECC 6.0 (TAW10 and TAW12) but on search I also found SAP BC ABAP beside this.Hello
SAP BC means SAP Business Connector
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/content.htm
http://en.wikipedia.org/wiki/SAP_Business_Connector
So you can know SAP BC ABAP is ABAP for SAP BC
SAP ABAP/4 is a program lanuague
https://en.wikipedia.org/wiki/ABAP
For ABAP certification
TAW10 and 12 are the right materials.
Regards -
What is the difference between SAP HR module and SAP-ABAP-HR?
what is the difference between SAP HR module and SAP-ABAP-HR?
Thanks in advance..:)Hi,
SAP-HR is software component like SAP-BASIS is a component.
Its part of the CORE.
As far as I know there is nothing like SAP-ABAP-HR.
But ABAP offers some special syntax for HR though.
Like INFOTYPES, PROVIDE ENDPROVDIE etc.
Regards,
Sesh -
Provisioning problem for AD and SAP ABAP Systems
Hi,
We're using IDM 7.20 SP3 and successfully run he Initial Load for AD, NW 7.30 and ERP 6.0 Systems successfully.
But, when I add the priviledge of systems to a new user created via IDM UI, It is not provisioned successfully.
Job Log show the following errors:
[http://imageshack.us/photo/my-images/69/idmerror1.png/|http://imageshack.us/photo/my-images/69/idmerror1.png/]
The detail log is as follow:
JOB: Update context info
Provisioned entries - Successes: 1 Failures:0
MSKey AuditID Status Info
9910 682 OK AALASARLI1
JOB: SYNC
Provisioned entries - Successes: 1 Failures:0
MSKey AuditID Status Info
9910 682 OK 1608
JOB: Set task to error state
Provisioned entries - Successes: 0 Failures:1
MSKey AuditID Status Info
9910 682 FAIL uSkip Called to skip entry
JOB: Skip pending operation
Provisioned entries - Successes: 1 Failures:0
MSKey AuditID Status Info
9910 683 OK not-existing-mskey
JOB: Trigger notification: assignment failure
Messages Warning Executing sap_core_getSkippedOK() got RuntimeException - org.mozilla.javascript.EvaluatorException: uSelect(select top 1 avalue from idmv_value_basic_active where attrname='MX_ATTRIBUTE_VALUE' and mskey=not-existing-mskey) got exception com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'not'. HINT: Check line 20 in the script sap_core_getSkippedOK
Provisioned entries - Successes: 0 Failures:1
MSKey AuditID Status Info
9910 683 FAIL Failed running function in string "$FUNCTION.sap_setContextVariable(NOTIFICATION_SUBJECT;Assignment failed!!<SKIPPEDOK>=$FUNCTION.sap_core_getSkippedOK()$$;<UIUSER_DISPLAYNAME>=$FUNCTION.sap_getDisplayName(manager)$$)$$". Marking entry as failed. Exceptio
any idea?Hi,
The entries created when I updated a user (person) and add a priviledge, following entries created in audit table
Task_name Provision_status mcmv_mskey Message mcmv_ProvStatus mcmv_taskid mcmv_privatetask IDStore
Modify Identity OK 1608 NULL 1100 2578 0 2
Provisioning Failed 9911 uSkip Called to skip entry 1101 601 0 2
Pending Operation Failed Failed 9911 Failed running function in string "$FUNCTION.sap_setContextVariable(NOTIFICATION_SUBJECT;Assignment failed!!<SKIPPEDOK>=$FUNCTION.sap_core_getSkippedOK()$$;<UIUSER_DISPLAYNAME>=$FUNCTION.sap_getDisplayName(manager)$$)$$". Marking entry as failed. Exceptio 1101 898 0 2 -
Configure SAP ABAP as service provider using SAML holder-of-key
Hi
We are trying to configure "SAML Holder of key" between Microsoft (as
a service consumer) and SAP ABAP (as service provider).
The service provider/SAP ABAP is release 7.11 and we need to configure this component.
We have found SAP note 1254821 and are trying to follow the instructions for
the "SAML Holder of key" scenario:
However there is one step that we do not understand: step 5 "The private key to decrypt the
encrypted....at the provider system must be a WS Security Identity in transaction TRUST"
Anyone who can elaborate of the meaning of this step and describe a procedure for what
exactly to do?
BR
Tom BoHi,
a service provider needs to check two things when processing message. The first thing is that SAML assertion was issued by STS by checking signature of SAML assertion. The SAML assertion is signed by STS (step 4 in OSS note). The second thing is to verify that sender knows key from SubjectConfirmation element (that's why it is called holder of key). One way is to encrypt and sign SOAP message using symmetric key. There is also option to use asymmetric key. The key is encrypted by STS using the public key of service provider. Therefore the private key must be imported in service provider system (step 5 from OSS note). More info can be found [here|http://help.sap.com/saphelp_nw73/helpdata/en/e5/9f9913fc9c418db98c8693b2bbdb7c/frameset.htm].
Cheers -
Hi all,
Is It possible to use FDQM SAP Adapter with following configurations of SAP on the Hyperion 11.1.2.1 version.
SAP Kernel: 18
SAP Basis: 05
SAP ABAP: 05
Kindly let me know if there is any documentation available for it.
Thanks and Regards,
Lakshmikanth..I do not think that the SAP Kernel,SAP Basis and SAP ABAP mentioned in the SR is supported.
Please find the below information which is obtained from the senior Hyperion Specialists which is officially tested and supported.
SAP 4.6c system:
Kernel: 2415
Basis: 53
ABAP: 53
SAP 4.7 system:
Kernel: 80
Basis: 61
ABAP: 61
SAP ECC 6.0 system:
Kernel: 75
Basis: 09
ABAP: 09
Hope this helps.
Thanks and Regards,
Dark.. -
SAP WebDispatcher with NW7.0 Double-Stack-ABAP/J2EE
Hi folks,
we have an Double Stack NW 7.0 ABAP/J2EE System running, for using ABAP WebDynpros over Portal 6.0. On the portalserver itself the Portal and the Webdynpros are running and working absoultely fine.
While configuring SAP WebDispatcher to bring the Portal to the outside world, we
experienced some problems.
Details:
We use Webdispatcher to decrypt SSL
- HTTPS: Internet -> WebDisp
- HTTP: WebDisp. -> Portal
(this works!)
The external domain is https://portal.my-customer.de
The internal hostname of the portal is portal.mycustomer.de.
Problem:
When using the ABAP-Message Server in the WebDispatcher profile (like recommended I think), the Webdynpros are available but we cannot reach the portal.
- WORKS: https://portal.my-customer.de/sap/bc/webdynpros/sap/zmy_webdynpro
- DOESNOT: https://portal.my-customer.de/irj/portal
rdisp/mshost = portal.mycustomer.de
ms/http_port = 8100
When using the J2EE-Message-Server in the WebDispatcher profile the portal is
available but the webdynpros does not work appropriately, cause they are not reached.
- DOESNOT: https://portal.my-customer.de/sap/bc/webdynpros/sap/zmy_webdynpro
- WORKS: https://portal.my-customer.de/irj/portal
- DOESNOT: WebDynpros in portal are not available and there occurs a http-timeout in the content area with: http://portal.mycustomer.de:8000/sap/bc/webdynpro/sap/zmy_webdynpro cannot be found
Of course this address cannot be retrieved over webdispatcher, it is the "internal"
one, between webdispatcher and portal, not the external one between client and
webdisp.
rdisp/mshost = portal.mycustomer.de
ms/http_port = 8101
So the questions are:
1) Which message server do I have to use? (ABAP/J2EE)
2) How to achieve to reach both stacks?
or
When it is not possible and I have to choose reaching J2EE-Stack (Portal from outside) how can I use the ABAP WebDynpros appropriately inside the portal?
Hopes somebody can bring some light into the darkness.
Best regards
VolkerOk the ICM logg of the ABAP-Portal shows the following.
I'm not so used to read the logs, but what I see is, that the Request comes to the portal and ist handled the common HTTP-Handlerm, but the J2EE-Handler returns a "empty" request?
Here is a part of the log:
The Request Starts, the Cache Handler is calles, the J2EE Handler is called, return of Empty-HTTP but I cannot see a "Failure".
Thanks for having a look,
Best regards,
Volker
[Thr 3860] REQUEST:
Type: ACCEPT CONNECTION Index = 107
[Thr 3860] CONNECTION (id=1/233):
used: 1, type: 1, role: 1, stateful: 0
NI_HDL: 29, protocol: HTTP(1)
local host: 195.1.1.182:8000 ()
remote host: 195.1.1.181:29010 ()
status: NOP
connect time: 07.08.2008 16:11:39
MPI request: <0> MPI response: <0>
request_buf_size: 0 response_buf_size: 0
request_buf_used: 0 response_buf_used: 0
request_buf_offset: 0 response_buf_offset: 0
[Thr 7548] SiSelNSelect: start select (timeout=-1)
[Thr 3860] MPI:3 create pipe 0000000003790660 1
[Thr 3860] MPI<53>3#1 Open( ANONYMOUS 3 1 ) -> 3
[Thr 3860] MPI<53>3#2 Open( ANONYMOUS 3 0 ) -> 3
[Thr 3860] MPI:1 create pipe 0000000003790360 1
[Thr 3860] MPI<54>1#1 Open( ANONYMOUS 1 0 ) -> 1
[Thr 3860] MPI<54>1#2 Open( ANONYMOUS 1 1 ) -> 1
[Thr 3860] IcmPlCheckRetVal: Next status: READ_REQUEST(1)
[Thr 3860] IcmReadFromConn(id=1/233): request new MPI (0/0)
[Thr 3860] MPI<53>3#3 GetOutbuf -1 187210 65536 (0) -> 0000000003917280 0
[Thr 3860] NiIRead: hdl 29 received data (rcd=434,pac=1,RAW_IO)
[Thr 3860] IcmReadFromConn(id=1/233): read 434 bytes(timeout 500)
[Thr 3860] Address Offset IcmReadFromConn received
[Thr 3860] ------------------------------------------------------------------------
[Thr 3860] 00000000039172C8 000000 47455420 2f69726a 2f706f72 74616c2f |GET /irj/portal/|
[Thr 3860] 00000000039172D8 000016 696e6465 782e6874 6d6c2048 5454502f |index.html HTTP/|
[Thr 3860] 00000000039172E8 000032 312e300d 0a616363 6570743a 20696d61 |1.0..accept: ima|
[Thr 3860] 00000000039172F8 000048 67652f67 69662c20 696d6167 652f782d |ge/gif, image/x-|
[Thr 3860] 0000000003917308 000064 78626974 6d61702c 20696d61 67652f6a |xbitmap, image/j|
[Thr 3860] 0000000003917318 000080 7065672c 20696d61 67652f70 6a706567 |peg, image/pjpeg|
[Thr 3860] 0000000003917328 000096 2c206170 706c6963 6174696f 6e2f782d |, application/x-|
[Thr 3860] 0000000003917338 000112 73686f63 6b776176 652d666c 6173682c |shockwave-flash,|
[Thr 3860] 0000000003917348 000128 20617070 6c696361 74696f6e 2f766e64 | application/vnd|
[Thr 3860] 0000000003917358 000144 2e6d732d 65786365 6c2c2061 70706c69 |.ms-excel, appli|
[Thr 3860] 0000000003917368 000160 63617469 6f6e2f76 6e642e6d 732d706f |cation/vnd.ms-po|
[Thr 3860] 0000000003917378 000176 77657270 6f696e74 2c206170 706c6963 |werpoint, applic|
[Thr 3860] 0000000003917388 000192 6174696f 6e2f6d73 776f7264 2c202a2f |ation/msword, */|
[Thr 3860] 0000000003917398 000208 2a0d0a61 63636570 742d6c61 6e677561 |*..accept-langua|
[Thr 3860] 00000000039173A8 000224 67653a20 64650d0a 75736572 2d616765 |ge: de..user-age|
[Thr 3860] 00000000039173B8 000240 6e743a20 4d6f7a69 6c6c612f 342e3020 |nt: Mozilla/4.0 |
[Thr 3860] 00000000039173C8 000256 28636f6d 70617469 626c653b 204d5349 |(compatible; MSI|
[Thr 3860] 00000000039173D8 000272 4520362e 303b2057 696e646f 7773204e |E 6.0; Windows N|
[Thr 3860] 00000000039173E8 000288 5420352e 313b2053 56313b20 496e666f |T 5.1; SV1; Info|
[Thr 3860] 00000000039173F8 000304 50617468 2e313b20 2e4e4554 20434c52 |Path.1; .NET CLR|
[Thr 3860] 0000000003917408 000320 20322e30 2e353037 32373b20 2e4e4554 | 2.0.50727; .NET|
[Thr 3860] 0000000003917418 000336 20434c52 20312e31 2e343332 32290d0a | CLR 1.1.4322)..|
[Thr 3860] 0000000003917428 000352 686f7374 3a20706f 7274616c 2e61746c |host: portal.my|
[Thr 3860] 0000000003917438 000368 61732d77 65796861 7573656e 2e64650d |customer.de.|
[Thr 3860] 0000000003917448 000384 0a636f6e 6e656374 696f6e3a 204b6565 |.connection: Kee|
[Thr 3860] 0000000003917458 000400 702d416c 6976650d 0a636c69 656e7470 |p-Alive..clientp|
[Thr 3860] 0000000003917468 000416 726f746f 636f6c3a 20687474 70730d0a |rotocol: https..|
[Thr 3860] 0000000003917478 000432 0d0a |.. |
[Thr 3860] ------------------------------------------------------------------------
[Thr 3860] PlugInHandleNetData: role: 1, status: 1, content-length: 0/0
buf_len: 434, buf_offset: 0, buf_status: 0
[Thr 3860] HttpParseRequestHeader: no content length set
[Thr 3860] HttpParseRequestHeader: no transfer-encoding set
[Thr 3860] HttpParseRequestHeader: Version: 1000
[Thr 3860] HttpParseRequestHeader: Keep-Alive: 1
[Thr 3860] HttpParseRequestHeader: no server port set
[Thr 3860] HttpRewriteRequestHeader: perform actions: 0
[Thr 3860] HttpSrvHdlRequest: method: 1; path: /irj/portal/index.html
[Thr 3860] Handler 3: HttpAuthHandler matches url: /irj/portal/index.html, port: 80
[Thr 3860] Handler 4: HttpCacheHandler matches url: /irj/portal/index.html, port: 80
[Thr 3860] Handler 2: HttpSAPR3Handler matches url: /irj/portal/index.html, port: 80
[Thr 3860] Handler 0: HttpJ2EEHandler matches url: /irj/portal/index.html, port: 80
[Thr 3860] HttpSubHandlerCall: Call Handler: HttpAuthHandler, task=1, header_len=434
[Thr 3860] HttpSubHandlerItDeactivate: handler 0: HttpAuthHandler
[Thr 3860] HttpSubHandlerCall: Call Handler: HttpCacheHandler, task=1, header_len=434
[Thr 3860] HttpCacheHandler: 1 434 000000000088BE80 0000000000000000
[Thr 3860] ISC: Cache Lookup. 1. try: browser independent.
[Thr 3860] ISC: hashed querystr = 9e6a '&*&'
[Thr 3860] HttpCacheMakeObjectKey() -> '/irj/portal/index.html&&&GZ=0&A6E90000&' (39) rc=0
[Thr 3860] MTX_LOCK 1628 0000000000C71940
[Thr 3860] MTX_UNLOCK 1759 0000000000C71940
[Thr 3860] IctCmOpen#195 R '/irj/portal/index.html&&&GZ=0&A6E90000&'.-1 (- ???) 13119456 1 -> 0000000000000000 -1 rc=20
[Thr 3860] MTX_LOCK 1628 0000000000C717F0
[Thr 3860] MTX_UNLOCK 1759 0000000000C717F0
[Thr 3860] IctCmOpen#257 R '/irj/portal/index.html&&&GZ=0&A6E90000&'.-1 (- ???) 13119456 1 -> 0000000000000000 -1 rc=20
[Thr 3860] ISC: Cache Lookup. 2. try: browser specific key.
[Thr 3860] ISC: hashed querystr = 26b66ec1 '&Mozilla/4.0 (compatible; MSIE 6.0;&'
[Thr 3860] HttpCacheMakeObjectKey() -> '/irj/portal/index.html&&&GZ=0&1CE66B62&' (39) rc=0
[Thr 3860] MTX_LOCK 1628 0000000000C71940
[Thr 3860] MTX_UNLOCK 1759 0000000000C71940
[Thr 3860] IctCmOpen#196 R '/irj/portal/index.html&&&GZ=0&1CE66B62&'.-1 (- ???) 13119456 1 -> 0000000000000000 -1 rc=20
[Thr 3860] MTX_LOCK 1628 0000000000C717F0
[Thr 3860] MTX_UNLOCK 1759 0000000000C717F0
[Thr 3860] IctCmOpen#258 R '/irj/portal/index.html&&&GZ=0&1CE66B62&'.-1 (- ???) 13119456 1 -> 0000000000000000 -1 rc=20
[Thr 3860] HttpCacheHandler: cache miss.
[Thr 3860] HttpSubHandlerItDeactivate: handler 1: HttpCacheHandler
[Thr 3860] HttpSubHandlerCall: Call Handler: HttpSAPR3Handler, task=1, header_len=434
[Thr 3860] HttpSAPR3Handler: url_tab_init: 1, force_dest: 0
[Thr 3860] ICT: IctLookupPathTable() -> 20
[Thr 3860] HttpSAPR3Handler: j2ee_active: 1, j2ee_conf: 1, dest: 2
[Thr 3860] HttpSubHandlerItDeactivate: handler 2: HttpSAPR3Handler
[Thr 3860] HttpSubHandlerCall: Call Handler: HttpJ2EEHandler, task=1, header_len=434
[Thr 3860] HttpJ2EEHandler called: task=1
[Thr 3860] IcmIConnPoolAllocEntry: no unused entry for pool 0000000000C29CF0 found (reuse conn: 1)
[Thr 3860] IcmIConnPoolAllocEntry: try to create new entry for pool 0000000000C29CF0
[Thr 3860] IcmConnPoolAllocSlot: allocated entry 0000000008D118D0[0] of pool 0000000000C29CF0
[Thr 3860] NiHsLGetNodeAddr: found hostname 'portal.mycustomer.de' in cache
[Thr 3860] NiIGetNodeAddr: hostname 'portal.mycustomer.de' = addr 195.1.1.182
[Thr 3860] NiIGetServNo: servicename '50000' = port C3.50/50000
[Thr 3860] NiICreateHandle: hdl 30 state NI_INITIAL
[Thr 3860] NiIInitSocket: set default settings for new hdl 30 / sock 7816 (I4; ST)
[Thr 3860] NiIBlockMode: set blockmode for hdl 30 FALSE
[Thr 3860] NiIConnectSocket: hdl 30 is connecting to 195.1.1.182:50000 (timeout=5000)
[Thr 3860] SiPeekPendConn: connection of sock 7816 established
[Thr 3860] NiICheckPendConnection: connection of hdl 30 to 195.1.1.182:50000 established
[Thr 3860] NiIConnect: hdl 30 took local address 195.1.1.182:3024
[Thr 3860] NiIConnect: state of hdl 30 NI_CONNECTED
[Thr 3860] NiILocalCheck: matched local address: 195.1.1.182 (up)
[Thr 3860] IcmConnPoolConnect: Connection to host: portal.mycustomer.de, service: 50000 established (nihdl=30)
[Thr 3860] IcmConnPoolNewEntry: created new entry 0000000008D118D0[0] for pool 0000000000C29CF0 (nihdl=30, ssl=0000000000000000)
[Thr 3860] HttpJ2EEHandler: server triggered
[Thr 3860] Pool Entry 0000000008D118D0:
[Thr 3860] NI: 30, SSL: 0000000000000000, allocated: 1, inuse: 1, desc: 0000000000C28BA0
local host: 195.1.1.182:3024
remote host: 195.1.1.182:50000
[Thr 3860] HttpJ2EEHandler: status: 6
[Thr 3860] MPI<53>3#4 GetOutbuf -1 197250 65536 (0) -> 00000000039272C0 0
[Thr 3860] HttpJ2EEDumpReqHeader:
eye1: deadbeef, version: 1, client ip: 195.1.1.181, protocol: 1, guid: 1/233,
length: 434, type: 0, trace: 3, status: 6, eye2: deadbeef
[Thr 3860] Address Offset Send to AppServer via net:
[Thr 3860] ------------------------------------------------------------------------
[Thr 3860] 0000000003927308 000000 deadbeef 00000001 c30101b5 00000001 |................|
[Thr 3860] 0000000003927318 000016 00000001 000000e9 000001b2 00030600 |................|
[Thr 3860] 0000000003927328 000032 00000000 deadbeef |........ |
[Thr 3860] ------------------------------------------------------------------------
[Thr 3860] NiIWrite: hdl 30 sent data (wrt=40,pac=1,RAW_IO)
[Thr 3860] IcmFlushBuf: NiRawWrite (40 bytes) wrote 40, rc=0
[Thr 3860] MPI<53>3#5 DiscardOutbuf l2 0 0 197250 0 0 -> 00000000039272A0 0
[Thr 3860] Address Offset Send to AppServer via net: -
Where do i find daily posted question on sap abap and sap webdynpro abap
Hi
where do we find Daily posted questions on sap abap and sap webdynpro abap in scn sap so that i can go through the questions and answer them .Hi,
Go to the Content tab of any space and click on discussions. Then you can sort them by date created or any other
For ex: This link for WDA discussions: - Web Dynpro ABAP
You can also click on Receive email notifications for any space to get updates on that space.
hope this helps,
Regards,
Kiran -
Hello SAP Cummunity,
I am very much interested in take up SAP course but like everyone very much confused. Firstly let me tell a brief about myself,
- I have graduated in Bachelor of Engineering (Biotechnology)
- After B.E., I took up PGDM (Marketing and Finance).
- As my interest is more inclined towards Marketing, I took up job related to Sales.
- Presently working for FMCG Sector as Sales Executive.
Plz suggest me is SAP ABAP suitable for me ?Hi Harshith,
There´re many SAP Certifications. You can read Frequently
Asked Questions about SAP Certification, and browse The Training
and Certification Shop Catalog. Find a list of currently valid certifications in the
"By
Role". section.
Best regards,
S.Saleem -
ALV and Interactive Reports in SAP ABAP?
Hi All,
What type of reports we can generate in SAP ABAP using ALV & Interactive in real time Scenario? Do SAP provides some Standard reports? Plz give some examples?
Thanks in Advance.Hi Mohnish,
You can refer the following ALV sample code :
TYPE-POOLS: slis.
TABLES : afko,afpo .
+-- Data declarations--+
DATA : BEGIN OF it_afpo OCCURS 0,
AUFNR LIKE afpo-AUFNR,
PSMNG LIKE afpo-PSMNG,
WEMNG LIKE afpo-WEMNG,
PWERK LIKE afpo-PWERK,
DAUAT LIKE afpo-DAUAT,
END OF it_afpo.
DATA : BEGIN OF it_afko OCCURS 0,
AUFNR LIKE afko-AUFNR,
GSTRP LIKE afko-GSTRP,
GSTRS LIKE afko-GSTRS,
GSTRI LIKE afko-GSTRI,
GSUZI LIKE afko-GSUZI,
PLNBEZ LIKE AFKO-PLNBEZ,
END OF it_afko.
DATA : BEGIN OF it_makt OCCURS 0,
matnr TYPE matnr,
maktx TYPE maktx,
END OF it_makt.
DATA : BEGIN OF it_output OCCURS 0,
AUFNR LIKE afpo-AUFNR,
PSMNG LIKE afpo-PSMNG,
WEMNG LIKE afpo-WEMNG,
DAUAT LIKE afpo-DAUAT,
GSTRP LIKE afko-GSTRP,
GSTRS LIKE afko-GSTRS,
GSTRI LIKE afko-GSTRI,
GSUZI LIKE afko-GSUZI,
PLNBEZ LIKE AFKO-PLNBEZ,
matnr LIKE makt-matnr,
maktx LIKE makt-maktx,
END OF it_output.
DATA: wa_output LIKE it_output,
wa_afpo LIKE it_afpo,
wa_afko LIKE it_afko,
wa_makt like it_makt.
DATA : wk_date1(10) TYPE c,
wk_date2(10) TYPE c,
wk_datehead TYPE string.
+--Selection screen parameters--+
INITIALIZATION.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr FOR afpo-matnr.
PARAMETERS : p_pwerk type afpo-pwerk OBLIGATORY.
SELECT-OPTIONS: s_dauat for afpo-dauat OBLIGATORY,
s_gstrp for afko-GSTRP OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
--internal tables for alv--
DATA : gt_fieldcat TYPE slis_t_fieldcat_alv, "catalog for alv
gt_heading TYPE slis_t_listheader, "list for header1
gt_sort TYPE slis_t_sortinfo_alv, "Sorting of the
gt_event TYPE slis_t_event,
gt_selfield TYPE slis_selfield,
gv_alv_event TYPE slis_alv_event,
gv_repname TYPE sy-repid,
gs_layout TYPE slis_layout_alv,
gv_save TYPE c.
CONSTANTS gc_forname_top_of_page TYPE slis_formname VALUE
'TOP-OF-PAGE'.
START-OF-SELECTION.
PERFORM get_data.
PERFORM output_data.
PERFORM build_comment USING gt_heading[].
PERFORM eventstab.
PERFORM sub_t_sort_build.
PERFORM build_field_catalog.
PERFORM display_data.
--Data selection--
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data.
select AUFNR
PSMNG
WEMNG
MATNR
PWERK
DAUAT
from afpo CLIENT SPECIFIED
INTO TABLE it_afpo
WHERE mandt = sy-mandt
AND matnr IN s_matnr
and pwerk = p_pwerk
and dauat in s_dauat.
select AUFNR
GSTRP
GSTRS
GSTRI
GSUZI
PLNBEZ
from afko CLIENT SPECIFIED
INTO table it_afko
FOR ALL ENTRIES IN it_afpo
WHERE mandt = sy-mandt
AND aufnr = it_afpo-aufnr
and gstrp in s_gstrp.
SELECT matnr
maktx
FROM makt
INTO table it_makt
FOR ALL ENTRIES IN it_afKo
WHERE matnr = it_afKo-PLNBEZ.
ENDFORM. " get_data
*& Form output_data
text
--> p1 text
<-- p2 text
FORM output_data.
loop at it_afko into wa_afko.
LOOP AT it_afpo into wa_afpo
WHERE aufnr = wa_afKo-aufnr.
wa_output-AUFNR = wa_afpo-AUFNR.
wa_output-PSMNG = wa_afpo-PSMNG.
wa_output-WEMNG = wa_afpo-WEMNG.
wa_output-DAUAT = wa_afpo-DAUAT.
ENDLOOP.
loop at it_makt into wa_makt
where matnr = wa_afKo-PLNBEZ.
wa_output-matnr = wa_makt-matnr.
wa_output-maktx = wa_makt-maktx.
endloop.
wa_output-GSTRP = wa_afko-GSTRP.
wa_output-GSTRS = wa_afko-GSTRS.
wa_output-GSTRI = wa_afko-GSTRI.
wa_output-GSUZI = wa_afko-GSUZI.
APPEND wa_output TO it_output.
ENDLOOP.
CLEAR wa_afpo.
CLEAR wa_afko.
CLEAR wa_output.
SORT IT_OUTPUT BY GSTRP GSUZI.
ENDFORM. " output_data
--Header for ALV--
*& Form build_comment
text
-->P_GT_HEADING[] text
FORM build_comment USING p_heading TYPE slis_t_listheader.
DATA : ls_header TYPE slis_listheader.
*--poputale the report header info
ls_header-typ = 'H'.
MOVE : text-002 TO ls_header-info.
APPEND ls_header TO p_heading.
CLEAR ls_header.
ls_header-typ = 'S'.
ls_header-key = text-013 .
"'User:'
ls_header-info = sy-uname.
APPEND ls_header TO p_heading.
CLEAR: ls_header.
ENDFORM. " build_comment
*& Form eventstab
text
--> p1 text
<-- p2 text
FORM eventstab.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event
EXCEPTIONS
list_type_wrong = 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.
READ TABLE gt_event
WITH KEY name = slis_ev_top_of_page
INTO gv_alv_event.
IF sy-subrc EQ 0.
MOVE gc_forname_top_of_page TO gv_alv_event-form.
APPEND gv_alv_event TO gt_event.
ENDIF.
ENDFORM. " eventstab
*& Form build_field_catalog
text
--> p1 text
<-- p2 text
FORM build_field_catalog.
DATA ls_fieldcat TYPE slis_fieldcat_alv.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'DAUAT'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Order Type'.
ls_fieldcat-KEY = 'X'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'AUFNR'.
ls_fieldcat-outputlen = 10.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Order Number'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 3.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Material Number'.
APPEND ls_fieldcat TO gt_fieldcat.
----you can add fields as per your requirement.*----
ENDFORM. " build_field_catalog
*-- Form top of page
FORM top-of-page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_heading.
ENDFORM. "TOP-OF-PAGE
*& Form display_data
text
--> p1 text
<-- p2 text
FORM display_data.
gv_save = 'A'.
gv_repname = sy-repid.
gs_layout-colwidth_optimize = 'X'.
gs_layout-zebra = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repname
is_layout = gs_layout
it_sort = gt_sort[]
it_fieldcat = gt_fieldcat[]
i_default = 'X'
i_save = gv_save
it_events = gt_event[]
TABLES
t_outtab = it_output
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.
ENDFORM. " display_data
*& Form sub_t_sort_build
text
--> p1 text
<-- p2 text
FORM sub_t_sort_build.
DATA ls_sort TYPE slis_sortinfo_alv.
ls_sort-spos = 1.
ls_sort-tabname = 'it_output'.
ls_sort-fieldname = 'DAUAT'.
ls_sort-subtot = 'X'.
ls_sort-up = 'X'.
ls_sort-group = '*'.
APPEND ls_sort TO gt_sort.
ENDFORM. " sub_t_sort_build
Reward points, if helpful
Regards,
Ramneet -
Difference between SAP 4.7EE and SAP ECC 6.0 in terms of ABAP
Hi all,
I would like to know the differences between the SAP-4.7EE and SAP ECC 6.0 in terms of ABAP?
can any body Please Help me?Hi Vijay,
In terms of ABAP some function modules are obsolete in 4.7.
e.g WS_UPLOAD, WS_DOWNLOAD etc.
You can find the list of obsolete FMs in the table RODIR.
These need to be replaced in the ECC System.
Also ECC is very strict in case of EPC Errors. You need to check the EPC and remove the call function interface errors where it says SLIN observes catching of a runtime error. These might work with no issues in 4.7 but will shortdump in ECC.
If you are doing to a unicode conversion also. you need to check the transaction UCCHECK for unicode errors.
You also need to replace obsolete statements like >< and => , =< etc.
Please let me know if you need any further info on this.
Thanks,
Sai -
What is the diff between ABAP Query and SAP quary?
Balu,
SAP Query
Purpose
The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
Features
SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
All the data required by users for their lists can be selected from any SAP table created by the customer.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly.
Check out these links.
http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Step-by-step guide for creating ABAP query
http://www.sappoint.com/abap/ab4query.pdf
ABAP query is mostly used by functional consultants.
Kindly reward points by clicking the star on the left of reply,if it helps.Kindly close your previous threads if your problem is solved and reward points for helpful answers.
Don't forget to reward if useful... -
Dear SAP Experts ,
I Have 1 year exp as an Associate SAP ABAP HR Consultant and i have done MCA but still didn't get any job i am free from 3 months didn't get any call please guide me what to do my abap is not much strong but hr is good . i am so upset tht planing to move in other job profile like SEO or work as HR executive for getting domain knowledge.so plz guide me wht to do and please also tell in ABAP HR which main topics i have to make strong ?
Thanks
Regards,
Vikrant
<<Moderator Message: How many times are you going to ask the same question?>>
Message was edited by: kishan PHi Vikrant,
Since you are more interested towards HR than ABAP, in long term you can think of moving into SAP HCM functional career. And to be able to work as a functional consultant, you need to have good amount of business process knowledge. Considering this you can start working in core HR and gain domain experience and move your career later towards functional area.
And more over you have ABAP HR experience,this will be very handy when you are a functional consultant.
Regards,
Ravi -
Guide me please in sap abap hr and in sap hr. have 1 year exp did get job wht to do ?
Dear Friends ,
I Have 1 year exp as an Associate SAP ABAP HR Consultant and i have done MCA but still did get any job i am free from 3 months did get any call please guide me what to do my abap is not much strong but hr is good . i am so upset tht planing to move in other job profile like SEO or work as HR executive for getting domain knowledge.so plz guide me wht to do .
thanks
Regards,
VikrantHi Vikrant,
Since you are more interested towards HR than ABAP, in long term you can think of moving into SAP HCM functional career. And to be able to work as a functional consultant, you need to have good amount of business process knowledge. Considering this you can start working in core HR and gain domain experience and move your career later towards functional area.
And more over you have ABAP HR experience,this will be very handy when you are a functional consultant.
Regards,
Ravi -
What is main deff between indian payroll and us payroll in sap abap hr
HI Experts,
what is main deff between indian payroll and us payroll in sap abap hr.
Regards
NareshHi,
U.S payrolls:
SAP has given country specific payrolls for more than 40countries Each country specific version is called country version. Every country has a country specific payroll driver and pay roll schema based on modular international payroll driver and schema. When sap says country version it includes country specific civil, tax laws, contributory and other tax laws (all these details are populated in the country specific info types).
Some of them are:
- Personnel data -address-6, bank details-7, personal data-2, challenges-4 etc..
- Actions -0000 info type
- Organizational data
So when you run a payroll for a specific country, besides general information valid for the international pay roll, one needs to enter specific details in the particular info types for example if you are running U.S pay roll you need enter SSN no. to uniquely identify an employee in the info type 0002-personal data.
Besides the common infotypes these are some of the U.S pay roll specific infotypes that one has to configure in U.S pay roll.
- Garnishment Order - Info type 019
- Creating a Garnishment Order - Info type 0195
Inidan PayRolls:-
Indian pay roll besides common info types, uses specific info types from 0580 to 0590 and 0045 (loans infotype) -- these info types will capture the data related to all the major components of Indian pay roll.
Hope this is helpful,
Thanks
Kalyan
Maybe you are looking for
-
How to compile Oracle Linux source?
I accidentally downloaded source DVD "Oracle Linux Release 5 Update 2 source - DVD" instead of installable ISO image. Is there anyway I can compile it to make bootable ISO image? I tried to search this forum as well as other places but couldn't find
-
HP monitor 2009m goes black on a reandom basis.
HP monitor 2009m goes black on a reandom basis. Starting in safe mode (as recommended) OK once but not every time. What is causing the problem and how does the problem get fixed? Sorb1
-
Final Cut Express without Graphics Card
Can I run FCE without the Graphics card??
-
Intercompany stock transport order purchase requisition source of supply?
Hi friends, I wanted to know for the intercompany (NB) sto PO what is the determination field in source of supply TAB of pr... is it supplying plant or vendor? Regards, Krishna
-
Slow boot up in safe mode?
Why does my MacBook Pro (13-inch, Early 2011) boot up UNBELIEVABLY slow in safe mode? I've been using safe mode to delete glitchy software (non Apple certified) that I installed, but it just takes FOREVER to boot the computer. Why is this the case? A