Quantcast
Channel: SCN: Message List - BOPF Application Framework
Viewing all 726 articles
Browse latest View live

Re: Plug-ins in BOPF & Usage of Transaction /BOBF/IF_TRA_PLUGIN_SERV_MGR

$
0
0

Thanks for the info Tilmann.

 

My use case is about the message handling. User always want to see couple of messages from Application Log on the UI depending on the scenario.

  1. These messages can be  dependent on the status ( of the document) & are not specific to any node
  2. In some cases they are specific to a node and attribute  irrespective of the status and can be generated during the background process or online.

This is a custom BO.

 

Best,

Anil


BOPF - Definition in BOB(X) based on BOR object?

$
0
0

Hello together,

 

as we have already a lot of (standard) Business Objects within SWO2,

I wanted to know if there is a possibility to utilise this within BOPF,

or do we have to define the objects from scratch?

Re: Plug-ins in BOPF & Usage of Transaction /BOBF/IF_TRA_PLUGIN_SERV_MGR

$
0
0

Hello Anil,

if you would like to show application log messages, you could check the BOFU application log wrapper (/BOFU/BASIS_APPLICATION_LOG). Is that what you require?

Best regards

Tilmann

Re: Plug-ins in BOPF & Usage of Transaction /BOBF/IF_TRA_PLUGIN_SERV_MGR

$
0
0

Hi Tilmann,

 

Ok.

But the requirement says that i have to through these messages on the UI by highlighting the Attributes( in case if it is having) as well..this forces me eventually to store the info Node, Attribute.

 

I think for this use case, BOFU application log wrapper is not sufficient. Is mu understanding is right?

 

Best,

Anil

Re: Associations and checks

$
0
0

Hello Tilmann,

 

many thanks for the quick and clear answer.

 

Best regards

 

Roman

Re: Plug-ins in BOPF & Usage of Transaction /BOBF/IF_TRA_PLUGIN_SERV_MGR

$
0
0

Hello Anil,

so you would like to read the messages form the application log and afterwards enrich them by a defined origin location (that is used by the UI to highlight the corresponding fields on the UI, to which the message refers to)?
What UI do you use (e.g. FBI)?

Best regards

Tilmann

Re: BOPF - Definition in BOB(X) based on BOR object?

$
0
0

Hello Jakob,

I'm not aware of a BOR to BOPF adapter yet. However it should be possible to built one. Here you have to trade off the effort for building the adapter versus reimplementing the objects with BOPF.

Best regards

Tilmann

Re: BOPF - Definition in BOB(X) based on BOR object?

$
0
0

But that would also mean, that i save all data twice!?

 

So once in the "standard" sap tables, and a second time within my business object...

Or is there a possibility to just "use" the standard tables

(e.g. Sales Doc Header / Items / Texts / ...)


Re: Plug-ins in BOPF & Usage of Transaction /BOBF/IF_TRA_PLUGIN_SERV_MGR

$
0
0

Hi Tilmann,

 

Yes. We are using FBI views with FPM mostly in 95% of the use cases and in other cases FBI with freestyle webdynpro.

 

Best,

Anil

Unit testing BOPF operations

$
0
0

Dear BOPF Colleagues,

 

I would ask do you have any correct, working implementation, or PoC how to write correct unit test for BOPF CRUD operations without calling the determination event?

These CRUD operations are NOT actions under Business objects, we fill up the modification table with the corresponding BO operation code and then

call service manager modify and transaction manager save.

 

We have an normal ABAP class called Planning Profile API, which creates, updates, copies and deletes Planning Profile Object data via BOPF framework.

I tried to write ABAP unit test but either the determination is called on delete and the transaction manager doesnot save the deletion

or if I tried to mock service and transactionm manager it went into infinite loop in retieve of service manager.

 

 

Do you have any working iimplementation how to unit test a create-update-delete operation? Please help.

 

 

Thank you & regards,

Csaba

Re: Unit testing BOPF operations

$
0
0

Hello Csaba,

 

as BOPF automatically takes care of create, update and delete, what is the intention to have a test exactly for this (without any determination)? Do you have an own DAC/buffer?

 

Usually a BOPF "unit" (=smallest unit to be tested) test is focusing a single implementation class like an action, determination, or validation class. Thereto we have a BOPF unit test framework available.

 

Testing a whole core service is usally part of a scenario test and therefor the service manager can be used and the DAC layer can be mocked.

 

Best regards

Tilmann

Re: Unit testing BOPF operations

$
0
0

Hello Tilmann,

 

This unit test is more like a scenario test as this would test the whole process from create to delete.

I planned to create a scenario test which would have several test steps for CRUD operations. I would use real Data Access Layer (not mocked DAC).

 

The test steps are:

1. Create an Business object with predefined data

2. Update this Business object (change some sttribute value)

3. Copy Business Object creating new one

4. Delete recently created Business Object

 

All these steps would use the real BOPF service and transaction managers and would write data into the database (into ABAP transparent tables).

We should skip the running of determination class/event somehow, because it blocks the step 4: deletion of created test BOPF data.

 

Is it possible to run unit test which writes into database?

Thank you for your help.

 

Best regards,

Csaba

Re: Cross-BO Aggregations/Compositions

$
0
0

lol have already read your articles as the first thing but didn't find an answer to this question.

you work is very much appreciated!

Re: Unit testing BOPF operations

$
0
0

Based our discussion we will use an private attribute flag added to the determination class which will control of using determination (either called from real API or from unit test).

The Unit test class will be friend of this determination class so it can set this parameter.

 

Tilmann, thank you for your help!

Re: BOPF - Definition in BOB(X) based on BOR object?

$
0
0

Hello Jakob,

by implementing an own DAC you can use existing persistency tables without duplicating.

Best regards

Tilmann


Cardinality in BOPF Framework development

$
0
0

Hi All,

 

I have some clarifications related to cardinality!!

 

My requirement is to have 3 nodes

Root->Parent->Child

The cardinality from ROOT to PARENT is 0..1 and

The cardinality from PARENT to CHILD is 1..N

 

Is there any option or possibility to restrict the records based on cardinality of the nodes by caller program(or class) or any configuration set up. we tried by setting the association cardinality of Root(1..1) and Parent node(1..1) but when tried creating a record in BOBT it is allowing more than one record even though cardinality is 1…1.

Our main requirement is to have only one record at root and parent node, but child node can have multiple records corresponding to parent node key. Please find the below image of our BOPF object structure in pictorial representation.

 

TYPO in the Below Pic -->> Root to Parent 2 is 1...1

 

Would be really nice if you can guide us!!BOPF Object Structure.JPG

 

Regards,

Thiru

Re: Cardinality in BOPF Framework development

$
0
0

Hello Thiru,

you should use library class /BOBF/CL_LIB_V_ASSOC_CARD and configure it as action validation on save. As this check also costs performance, it is not inbuilt in the framework by default.

Best regards

Tilmann

Re: How to know flow of determination which are being called in debugging after modification?

$
0
0

Hi Tilmann,

 

Thank you for your prompt reply.

 

Regards,

Shivajiraju.

Re: How to know flow of determination which are being called in debugging after modification?

$
0
0

Hello Shivajiraju,

 

In addition to Tilmann's reply, there is another possibility:

If you would like to debug all application code triggered by the BOPF framework, you can also consider using Layer Aware Debugging (refer to the Application Help of transaction SLAD).

BOPF delivers a number of SLAD profiles. For your purpose, /BOBF/TOOL_BUSINESS_CONTENT should do the trick: if you enable layer aware debugging and choose this profile, you should be able to step from one application implementation (action, determination, validation, ...) to the next.

 

Kind Regards,

Ivo

BOBX - ddic generation fails

$
0
0

Moin, moin,

 

I am using the following Settings when re-generating the ddic structures of my BO:

2016-03-01-145311.jpg

I am getting the following error and do not know how to proceed:

2016-03-01-145551.jpg

 

All data base tables are not re-generated with the message:

TABL ZLT_IP_PA_ROOT delivered to customer (action not possible)

All mentioned tables appear as data base table in my three nodes.

 

Any hint how to proceed are welcome.

 

Regards,

Thomas

Viewing all 726 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>