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

Query does not works

$
0
0

Hi Experts,

 

I got a problem in the Query  /scmtms/if_tor_c=>sc_query-root-planning_attributes when execute in Background.

 

If I execute Online it´s working but in Background task, not works.

 

I am calling the Query from SUBMIT, below a example:

 

SUBMIT z_program WITH s_option EQ imp_variable SIGN 'I' AND RETURN


I already tested imputing the SUBMIT inside the Function module but does not work too.


.Could you help me?


Regards.

Wellington Oliveira.


Re: /BOBF/IF_FRW_CHANGE~GET_CHANGES: precise Meaning of IV_FAILED

$
0
0

Hi Jürgen,

 

This seems to be an error in our ABAP Doc. If the parameter IV_FAILED is set to true, the result will contain only changes that have been failed.

I will provide a correction of our ABAP Doc that clarifies the usage of the parameter.

 

Best regards,

Carsten

Re: /BOBF/IF_FRW_CHANGE~GET_CHANGES: precise Meaning of IV_FAILED

$
0
0

Thanks a lot. That simplifies our implementation.

Cross-BO Aggregations/Compositions

$
0
0

Hello,

 

we have BOs Alice & Bob.

 

Alice shall contain an aggregation of multiple Bobs. Therefore we integrated Bob via an Representation-Node into Alice.

Bob's ROOT has a field ALICE_KEY that links to Alice.

So we want the association Alice-TO_BOB to be a 1:N target-resolving cross-BO association that is based on Bob's ALICE_KEY.

 

Is it even possible to model this scenario in BOBF?

 

What we tried so far:

  • Association Class /BOBF/CL_LIB_C_CROSS_BO together with "Cross-BO Binding Hint"
    Does only work for source-resolving associations, therefore strictly 1:1 (?).
    When used with target-resolving association-configuration, it just CONTINUEs instead of a proper assert.... oh my...
    Furthermore, internally there is an (FAULTY) assertions that checks the ASSOC_CAT against an Assoc-*BINDING*-Cat. This check must fail all the time but no one notices because of these castrated/disabled/optional crap assertions

  • Using the "Cross-BO Binding" one is only allowed to select KEY of the target-BO (we would want to select Bob's ALICE_KEY), so no luck either

 

The only solution we can think of by now, is a dedicated Alice-node in Alice for every Bob:

Alice / LINK_TO_BOB_NODE / BOB_REPRESENTATION_NODE

where LINK_TO_BOB_NODE has a field BOB_KEY and its association TO_BOB_REPRESENTATION_NODE is a source-resolving assocation with BOB-KEY as target and BOB_KEY as source.....

 

Any advice much appreciated.

Re: Cross-BO Aggregations/Compositions

$
0
0

Hello Kai,

 

I think you require an implemented association for that as the field containing the link information is located on the foreign BO. However, this is not a big thing:

 

1. Create a non-unique altkey on the BOB's "ALICE_KEY" field (if it is not already there)

2. In the implementation of the resolve method of the association just use the Service Manager's CONVERT_ALTERN_KEY Service to resolve the target keys in the implemented association:

  • IV_ALTKEY_KEY: Constant for ALICE_KEY altkey
  • IV_TARGET_ALTKEY_KEY: /BOBF/IF_FRW_C=>SC_ALTERNATIVE_KEY_KEY
  • IT_KEY: IT_KEY that are the instances of the alice

 

Best regards

Tilmann

How to use the tree UIBB (FBI Feeder class)

$
0
0

Hi experts,

 

Is it possible to use the FPM_TREE_UIBB component to display a BO's nodes and subnodes as a hierarchical list?

 

I've tried as described below: http://help.sap.com/saphelp_tm90/helpdata/ru/a5/a8171815a6433c8180fb3a95e49def/content.htm?frameset=/ru/39/edbb0ef1644bc4926422da4f6a0b29/frameset.htm&current_toc=/ru/c3/3f78b9e4044bd1b38246f0a7993c42/plain.htm&node_id=34

 

But, in the MAP_DATA_BO_NODE_TO_UI method of the mapper class, we only receive the entries of the node defined in the tree's FBI view, derived from the wiremodel.  I also tried with adding an associated view to the FBI view, but this only gives the information of one subnode, available as an extra column of the tree rather than a sub layer in the hierarchy.

 

Does this mean the FBI tree UIBB cannot work with multiple node's, but I have to define a custom 'parent_key' in order to create a hierarchy within the data of one single node of the BO?

 

Thanks for your advice!

 

KR,

Bjorn

Processing mode of BOPF BO

$
0
0

Hello,

 

by calling methode RETRIEVE of the BOPF service manager one can read the data of a node and also specify the processing mode via parameter IV_EDIT_MODE, domain /BOPF/CONF_EDIT_MODE. I always use 02 -> exclusive write,

 

I would like to request the processing mode at some other point of time, i.e. determine whether the object is in read only or edit mode, but couldn't find any suitable methods.

Any idea how this could be achieved?

 

Thx and regards,

Ulli

Re: Processing mode of BOPF BO

$
0
0

Hello Ulli;
you could RETRIEVE the object with an optimistic lock. If this works fine (there is no error message in EO_MESSAGE of the RETRIEVE), the object can be changed. If this does not work fine, it is exclusively locked in a parallel session.

Best regards

Tilmann


Re: setting dynamic field control in bopf

$
0
0

Hello Seven,

it seems that you would like to expose a BOPF BO via OData. Is this a CDS-based BOPF BO?

Best regards

Tilmann

Re: Processing mode of BOPF BO

$
0
0

Hi Tilmann,

 

I was hoping that there'd be a more comfortable solution, but will do it as you've suggested.

 

thx and regards,

Ulli

Re: Cross-BO Aggregations/Compositions

$
0
0

Hi Kai,

 

did you model alice_key as non-unique alternative key? Did you model to_bob with multiplicity 0..n?

If you do this, the magical drop-down-list in the association binding will offer you alice_key.

 

2016-02-12 11_38_23-Twitter.png

2016-02-12 11_49_40-Starten.png

2016-02-12 11_44_10-Starten.png

2016-02-12 11_44_46-Starten.png

 

Cheers,

Oliver

 

P.s.: Tilmann David Kopp: Warum nicht modellieren?

Re: Cross-BO Aggregations/Compositions

$
0
0

thank you very much, this seems to do the trick!

Re: Cross-BO Aggregations/Compositions

$
0
0

thank you very much Oliver, screenshots greatly appreciated.

we were not Aware that alternative-keys can be used as foreign-keys...

 

cheers!

Kai

Re: Cross-BO Aggregations/Compositions

Using BOPF Actions in CDS View

$
0
0

Dear Experts,

 

Ic have a probelm with implementing the Business Object action in CDS View.

 

@UI.lineItem: [

-- Standard Lineitem

{ position: 10 },

-- Action Lineitem

{ type: #FOR_ACTION, dataAction: 'BOPF:Copy', label: 'Copy' }

//{ type: #FOR_ACTION, dataAction: 'Z_PSO_BOPF_999:ACTION, label: 'Copy' }

 

 

]

 

As far as I understand under the "dataAction: 'BOPF:Copy'" I should write my Business Object name and actions, defined there.

But it seems it doesn't work. Can someboy give me a hint, how to make it work?

 

Thank you in advance and best regards

 

Christian


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

$
0
0

Hi Experts,

 

I want to know the usage of the /BOBF/IF_TRA_PLUGIN_SERV_MGR & /BOBF/IF_TRA_PLUGIN and tables /BOBF/TRA_PI and /BOBF/TRA_PI & /BOBF/TRA_PI_ACT and how they are related.

 

 

I can see the code in Transaction manager  /BOBF/CL_TRA_TRANSACTION_MGR method load_plugins is using the above tables.

 

Best,

Anil

Associations and checks

$
0
0

Hello,

 

I create a root -> sub object node structure with a 1:1 association, is the association checked by the BO and I can´t create more than one sub object or do I have to program any checks to avoid creation of more than one sub object.

 

Can anyone explain the logic to me? Is there an example in the system?

 

Many thanks

 

Best regards


Roman

Re: Associations and checks

$
0
0

Hello Roman,

 

 

as this check would cost performance, it is not inbuilt in the framework itself. There are applications that rely on fieldcontrol (or are satisfied with just raising error messages) and would not like to spend performance on checking the cardinality and rejecting the modifications.

However you can configure /BOBF/CL_LIB_V_ASSOC_CARD in case you need this functionality (e.g. raising an error message in case of cardinality violation). You could configure it as action validation on save.

 

 

Best regards

Tilmann

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

$
0
0

Hello Anil,

the usage of plugins is not released for public, however if you describe your use case we might find a suitable solution also for your issue.

Best regards

Tilmann

Re: Using BOPF Actions in CDS View

$
0
0

Hello Christian,

please add a ' char at the end of Z_PSO_BOPF_999:ACTION and try again.

Best regards

Tilmann

Viewing all 726 articles
Browse latest View live


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