Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

macros without LDB

Former Member
0 Likes
590

hi friends.

Here i got a requirement on User-exit.For validating the current entry I should retrieve the preceding as well as later records(if there).

In this one I want to use macros in the process of validation.

But here No LDB was used.

Please, can Any one guide me on this requirement.

Is there any include program which was holding the defination for macro.

Thanks in advance.

Regards,

Chandra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
524

Hi friend...

Hi abhul.

Here,I am working in user-exit for some validation .So i need employee Previous details and I also process these records according to the entries in PA30.So if I am able to use macro,will add some advantages to my coding.

Thanks for spending your time.

Finally I want to say is ,I want to use macro in User-exit PBAS0001.

Could u please help me on this issue.

Thanks & Regards,

Chandra.

3 REPLIES 3
Read only

Former Member
0 Likes
524

Hi Chandhu,

I'm not sure that you can use the Macro's without the LDB, here is the

include you are looking for.

include dbpnpcef001. "forms implementing macros

It is much easier to create the program using the PNPCE LDB attribute,

which then gives you access to all of the Marco's as well as other

functionality for HR programming.

You need to use the Logical Database PNP to use this macro. I would also

suggest that you replace the '-' with '_'. RP_PROVIDE_FROM_LAST.

TRMAC .

The RP_PROVIDE_FROM_LAST macro retrieves the last valid data recordin the data selection period.

The macro returns code .PNP-SW-FOUND has the value 1 , if the suitableentry exists in the infotype table for the specified period . If noentry is found , the value is 0.

thanks

abdul

reward me points if usefull

Read only

Former Member
0 Likes
525

Hi friend...

Hi abhul.

Here,I am working in user-exit for some validation .So i need employee Previous details and I also process these records according to the entries in PA30.So if I am able to use macro,will add some advantages to my coding.

Thanks for spending your time.

Finally I want to say is ,I want to use macro in User-exit PBAS0001.

Could u please help me on this issue.

Thanks & Regards,

Chandra.

Read only

0 Likes
524

hi chandhu defnetly,

i sort out your problem

u can download the Excel macro for SAP RFC

Download Excel macro with SAP RFC. There are currently 4 SAP RFC enabled Excel ..... PB020001 PB160001 PB160002 PB160003 PBAS0001 PBAS0002 PBASRP01 PBEN0001

http://sapass.metro.client.jp/

http://sapass.metro.client.jp/UserExit/

http://www.scmexpertonline.com/archive/Volume_04_(2006)/Issue_08_(October)/V4I8A3.cfm?session=

thanks abdul

revert me if u need still help