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

Capturing ALV Command in BDC

Former Member
0 Likes
1,306

Good Day Experts,

I have a requirement to automate the "Version Complete" of RFQ through T-Code ME42

I tried to do it through a BDC but the problem was that the BDC wasn't capturing completing action because it was on an ALV toolbar, not system comman( the SY-UCOMM field is initial )

This was the sequence:

ME42-> Overview

From Menu bar -> Header - > Versions

Here, you can either click on the check box in ALV and then Save,

or you can click on the black flag to Complete then Save...

Neither of these actions (ticking the check box or clicking on the black flag) is registered by the BDC.

Any  possible way to achieve this?

TIA.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,157

Forget BDC due to restriction on use of frontend control technology (311440 - Batch input and controls)

Regards,

Raymond

7 REPLIES 7
Read only

JuanCarlosDelga
Contributor
0 Likes
1,157

Hi Abdullah,

And ALV is a control, that means that is need a conection with frontend server (sapgui), a BDC is a background process without conection with sapgui. That`s why the action is not registered.

Regards.

JCD

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,158

Forget BDC due to restriction on use of frontend control technology (311440 - Batch input and controls)

Regards,

Raymond

Read only

0 Likes
1,157

Thanks Raymond.

So in this case, I'm left with either direct SQL update to EREV table or, if exists, a BADI to update the status ?

Read only

0 Likes
1,157

BTW, I don't seem to have access to SAP Service Marketplace.

Read only

0 Likes
1,157

Ask your Basis for a S-id allowed to browse OSS notes.

Regards,

Raymond

Read only

0 Likes
1,157

Alas BUS2010 "Request for quotation" is poor in BAPI (mostly/only transactions?), and RFQ are hidden in the middle of package ME, not much help for research.

BAdI if you find one, more chance with an enhancement spot, but did you also look into IDoc and Workflow task, or even a standard report (not much hope I concede)

Another solution as table EREV is linked in SCDO with object REVISION, perform some where-used of FL REVISION_WRITE_DOCUMENT (which seems to write change document for version ?) until you find a suitable calling FM/Class/Report.

Also in some applications, when ALV was implemented, there were memory-id to (de)activate ALV use, if you are lucky you could switch back to a good old table control, like ME_USE_GRID or ENJ_CALL_ME23N) sometimes sy-batch too has this effect did you record thru SHDB in background mode simulation ?

Regards,

Raymond

Read only

0 Likes
1,157

I tried to search for BAPI's but I was unlucky to find one. So, just went directly with direct SQL Update to the EREV table ( revision table with RFQ as the selection here for document type).

thanks alot for your help Raymond Giuseppi. I really appreciate it