Quantcast
Channel: SCN : All Content - BOPF Application Framework
Viewing all 309 articles
Browse latest View live

Display of alternative key in BOBT is empty/space

$
0
0

Hi all,

 

I created my BO ZLIP_PA with some alternative keys to display node specific information in BOBT:

2016-03-16-084245.png

 

For each alternative key I defined a structure defining the columns I want to to display. For the ROOT node this structure looks like:

2016-03-16-084435.png

At database level I defined a secondary index. For the ROOT node this index looks like:

2016-03-16-084709.png

In BOBT the alternative can be selected as information to be displayed. For the ROOT node this screen looks like:

2016-03-16-085100.png

After selcting this alternative key the information displayed is empty/space (area marked red) although there are some inforamtion to display (area marked green):

2016-03-16-085336.png

The system status is as follows:

2016-03-16-085849.png

 

How to display the information of a multi column alternative key?

 

 

Regards

Thomas


Lock behaviour at Bussines object level locks.

$
0
0

Hi  Mentors,

 

At   BO level we have different types  of locks are there UPDATE , DIALOG AND UPDATE AND DIALOG LOCK.

 

Could you please explain what is the significance of each lock with scenarios.

I have red documentation but still no clarity.

 

 

Thank you for your patience.

 

Regards,

Shivajiraju.

Document migration in BOPF

$
0
0

Hello,

 

I have a problem on a Project (SAP SLC/SRM) regarding the use of BOPF in order to migrate the attachament documents from DOCUMENTUM. We need to know how to create a link between document from the content server connect to SAP via Archivelink and a BOPF objets.

 

Do you know or have documentaion about that?

 

Regards

Alexis

Error in ADT: Class /BOBF/CL_LIB_C_LANGUAGE must only be used in T

$
0
0

Hello All,

 

I am getting a strange errror when I add a Text Node to a business Object in ABAP Development Tools.

This error does not occur when editing the BO in BOBX.

 

Anyone?

 

 

 

Regards,

Bert

FBI Related View issues with Composite and Tabbed UIBBs

$
0
0

Hi Experts,

 

I have the below requirement.

 

  • ROOT
    • NODE1
      • NODE2

 

The cardinality b/w ROOT & NODE1 is 1:N and the cardinality b/w NODE1 and NODE2 is 1:1

 

I want to display all the fields of NODE2 and NODE1 in LIST UIBB. The standard approach to achieve this requirement is to create FBI on Node2 and add FBI view of NODE1 as related view and display all the fields.

 

Alternate approach for this for time being is to create an FBI view on NODE1 and assign FBI of NODE2 as related FBI view. With this I am able to display all the fields of these two node.

 

But the issue is, List is not showing NODE2 details outside Composite / Tabbed UIBB but not inside composite UIBB.

 

Any thoughts?

 

Best,

Anil

BOBX: Status Class / Status Derivator

$
0
0

Hello All,

 

We have a field for a Status Class and a Status Derivator.

 

Is there any documentation or example what we can do with this? Or is this old / obsolete?

 




The Text Collection dependent object /BOBF/TEXT_COLLECTION

$
0
0

Hello All,

 

I cannot find this object in my system (NW 7.50 SP1). Checked BOBX but it is not there.

Can anyone tell me where I should look for this object ? Do I have to activate something? Part of another component ?

 

Regards,

Bert

Generate OData for BOPF (cross client)

$
0
0

HI all,

 

In our development system we run the following setup:

client 999: used for usual abap development

client 200: used to develop the customizing for customer A

client 300: used to develop the customizing for customer B

 

Our system is running the following versions:

2016-03-16-085849.png

 

 

In this setup I want to access the data of my BOPF ZB_PA_PARTNER developed in client 999 (the data will be stored in client 200 and client 300) through a SAP UI5 application.

 

My basic idea is to generate a OData-Service based on the BOPF and finally connect the SAP UI5 application to the generated OData service.

 

I created the OData-Service in client 999 as describe in http://scn.sap.com/community/abap/bopf/blog/2014/03/24/3-simple-steps-to-expose-any-bopf-bo-as-odata-service I created the OData-Service. This worked fine and looks good:

2016-03-23-093606.png

 

In client 200 the generated OData-Service looks horrible:

2016-03-23-093852.png

 

Is there anything I can do to fix this situation?

 

 

Regards

Thomas


Model visualization in CONF_UI not working

$
0
0

Hi,

 

we have an issue in /bobf/conf_ui: If we navigate to the tab model visualization of a BO, the JNet graphics is not displayed but there is a http 404 error appearing. Is there a specific ICF node or any other setting which needs to be active for the model visualization?

 

Thanks & Cheers,

Martin

Delegated Nodes Settings

$
0
0

Hi,

 

We have enhanced EHHSS_INCIDENT to add few determinations, validation and added Z fields to BASIC INFO node. One of the Z fields is a description field on which we would like to have the Edit Translation functionality as in the Description of Events/ Immediate Actions as seen below:

 

DO.jpg

On the enhanced BO - EHHSS_INCIDENT, created a Delegated node - ZEHSMXXXXXXX

 

DO1.jpg

But there is difference in the above delegation from the SAP generated delegation, see below:

 

DO2.jpg

Due to this difference we are unable to assign ZZ key field in the association as the source attribute.

 

Any help in this regards would be very much appreciated.

 

Thanks,

Kedar

How to achive saving draft BO entity ?

$
0
0

Dear Community Members,

 

we would like to use Business Objects in OData service. Since the OData service is based on REST protocol, we've no session memory between user interactions during updating the values through the UI. It means as soon as the user push the edit button, we need to keep the saved instance of the BO, but in addition save the changes done by the user, without memory in ABAP, so have no possibility to simply reset the changes.

This kind of Draft management is done using a darft flag as key in our tables. When user push the Edit button, we copy the active version(without draft flag) and set the draft flag in the copied  table entries. All changes of the user is done on the draft version, and when the User push save, we delete the current active version, and remove the draft flag from the entries updated by teh user.

Do you know, how to cover this draft management requirement using BOPF, where the backend data is managed by BO, and have to be saved after each change, and both active and temporary version have to be managed ? My idea would be to copy the instance when the user push the edit button. To support this for example, Is there a default copy operation provided by the BOPF API ? Might not this is the best solution, just an idea. If you have better suggestion, just tell me

 

Thank you,Attila

Document migration in BOPF

$
0
0

Hello,

 

I have a problem on a Project (SAP SLC/SRM) regarding the use of BOPF in order to migrate the attachament documents from DOCUMENTUM. We need to know how to create a link between document from the content server connect to SAP via Archivelink and a BOPF objets.

 

Do you know or have documentaion about that?

 

Regards

Alexis

BOPF Application Framework Creating OData Service and same service using into SAP WEB IDE to Create UI5 / FIORI Application [ without CDS views, SADL and HANA ]

$
0
0

Hi experts,

 

Before am explaining my issue please find my system details, NW7.4 SAP_GWFND740, SAP_UI5, IW_PGW 100+007, SAP_ABA740_10 and SAP_BS_FND 747 + 008.

 

Am in a process to create simple UI5 application at SAP WEB IDE using with BOPF Application Framework, to move forward I am creating a simple OData service [ segw ], creation is no issue, after creating a new service right click at DATA MODEL and rather importing as normal process here i am selecting a redefine option with BOPF Service [i.e. redefine-->BOPF Service ] reason to selecting this option is.... to use custom or standard BOPF service which we have created at BOBF, am able to add custom or standard BOPF to newly created ODATA, please refer below screen.

 

bopf1.png

 

But after creation while doing map to data source at service implementation level, am getting below error, please refer below screen..


bopf2.png

 

1. After referring to many documents am getting small doubt is my approach is in right direction, I mean to get this BOPF framework in FIORI / UI5 without CDS view, SADL and HANA, will this possible or not, please suggest your kind inputs / suggestion / information will help me to way forward for further R&D on above process.

 

2. if above point yes, the why system is not allowing “map to data source”, if I create as a normal ODATA using with Import-->RFC/BOR/DDIC working fine, it is as a normal process there is no BOPF Application Framework.

 

your kind and value inputs are highly appreciated.

 

Regards,

Venugopal.a

How to create local objects of /bobf/if_frw_read and /bobf/if_frw_modify?

$
0
0

Hello all!

 

I need to create objects of /bobf/if_frw_read and /bobf/if_frw_modify in my report and than call some method from BOPF. It should be objects similiar to io_read and io_modify in BOPF..

 

How I can create it? Probably, there are exist some class which I can use (with operator ?= or another way) ?


Thanks.

Except. /BOBF/CX_FRW_FATAL while calling action of standard object

$
0
0

We are getting following dump when we are calling an action of standard business object.

 

This dump comes only in background execution and we are calling this action in Asynchronous RFC.

 

Details:

Runtime Errors         UNCAUGHT_EXCEPTION

Except.                /BOBF/CX_FRW_FATAL

ABAP Program           /BOBF/CL_FRW==================CP

Application Component  AP-RC-BOF-RNT

 

 

 

Details of error:

While executing action "DELETE_TEAM_MEMBER" of
node "MP_TEAM" of business object "/CPD/PWS_BO_MP" an
exception has occurred. The method "EXECUTE" of class

 

"/CPD/CL_PWS_MP_A_TEAM" didn't call
"END_MODIFY" and the subsequent framework call of "END_MODIFY"
led to the exception chain below. Root cause may be a lock situation or...

 

Please open a ticket to the responsible component
"CA-CPD-WS"!

 

I have checked few blogs and threads but could not get much help.

 

Has anyone faced this issue before?


test function dumps after succesfully executing an action.

$
0
0

Hello together,

 

due to an SCn error my Question just have been lost :-( so i try ask again far shorter:

For understanding, i am totally beginning trying to use BOBF and the most valuable information  for me are the blog entries of Oliver Jaegele.

So, the chance is very high that i just cause trouble because of a lack of understanding..

 

I

I wanted to model some action preconditions and i tried to this not on validation but on base of a transient Determination.

Reason: i wanted to have the check if the action is allowed on load of the node , so i have the action disabled without any call of validation directly in the model (the "model" for me is the bobf  itself).

I did not want to have any persistent change made in the determination, just to set the action inactive or active and thought, that should be allowed, even i will do change data persistent later in the action.

 

Result was:  a dump with no information after executing the action in the test environment ( BO component local or unknown, Application Information empty). Debugging leads to a point, where a success message is sent but then after raise of event /bobf/if_tui_events~instances_changed , /BOBF/CL_TUI_CTRL_BO_TREE  handels that event and dumpy accessing /BOBF/S_FRW_PROPERTY_K typed data of a node and dumps because a node type 'F'  is found ..

After i changed to have the determination persistent and changed the triggering, the dump is gone and the action is processed as wanted.

 

Just the function is not what i wanted.

Is the use of the determination completely wrong and a action check validation has to be used?

As described above i intended to have the actions disabled on load, if some fields are not filled sufficiently.

No i need to ract on cahnges, even i do not need to make any change to evaluate, if the action shall be nabled or not

Any better solution, how i can keep the inforamtion, if the action is 'ok' in the model others than also add a validation, that does the "same" as the determination?

Thanks for any advice

Ulrich Becker

Deleted Development Objects via BOB Wizard are Furthermore Visible

$
0
0

Hello community,

 

I have deleted a BO and the dependent development objects (table, table types and structures) via the wizard of the transaction BOB.

The BO is not longer visible, but the development objects are furthermore visible in the project tree of AiE - you can find the corresponding post here.

 

At the BO the DELFLAG is set in the table TADIR, but at the dependent development objects not.

 

003.jpg

 

004.jpg

 

Is something wrong with my deleting method or someting other?

 

I work with SAP_BASIS SAPKB74013, SAP_ABA SAPKA74013 and SAP_BS_FND SAPK-74711INSAPBSFND.

 

Thanks for tips and hints.

 

Cheers

Stefan

BOPF SCN Sitemap

$
0
0

The BOPF SCN space contains a lot of of discussions, useful blog posts and tutorials about the BOPF. This BOPF SCN Sitemap provides an overview so that you quickly find what you're searching or just for browsing the information. If you miss a ressource, please send me a message to keep this page up to date.

 

1. BOPF Design Time Tutorials
If you have not created your first BOPF Business Object, it is time to create one. BOPF Business Objects are created by the SAPGUI transaction "BOBX" or the new Eclipse design time tool. In addition, we provide the "BOB" transaction for easily extend existing Objects or create new customer objects. Finally, the Test UI allows to test existing BOPF Objects by the help of a generic user interface.


2. BOPF Overview Documents

Those documents provide you a high level overview about BOPF and its features.

 

3. Consumption of BOPF Objects at Runtime

 

4. BOPF Object Implementation

 

5. Development Aspects


6. Other Topics
Here is information about some specific issues, that might help you.

 

 

7. BOPF Training

You need more Information? Ask the community or take part at our BOPF trainings.

Any suitable help on FBI Views?

$
0
0

Hello folks,

 

i am searching for any guide or other helpful source of information on FBI Views.

 

I did read lots of blogs and the "Help" but none is describing the function of the Configuration of an FBI View in a way that  i can understand.

 

My actual use case is:

I have a query in my own bobf, that i am alread using for some none-FBi-Lists ( just learning and i do not want the standard navigation, described in all the sources).

Now i tried to add a FBI search based on that query, but i always get dunps, because the search does not use the defined return structure of the query but the structure of the corresponding node.

 

So i tried to define  a FBI View to tell the framework, what a structure will be returned. 

I am not able to find any suitable informaion on how to define it correctly. The Sap Help does not even tell the meaning of the fields on the very fist screen of the configuration..

 

 

I do  no get, how to define the View, that should only represent the already defined data that the query returns .

It is stated, that it is possible to combine different node data, but on realted views i can only enter another view.

So it seems that i have to defne another view on the node i want to use for the association.  So : 2 Views, Association, maybe futher mappings, and more objects. 

A lot of work, even i already have defined the return Structure of the query in bobf..

So for me it loos like it would be very easy to change the typing in the generic FBI:SUIBB_Feeder to the return type of the Query instead to the given node, and taht should do the job.

 

for now i will stopp that approach and prefer to build my search from the scratch, as it is less time consuming than trying to find out, how to do it correctly.

( Actually, i might be the only one too stupid to understand the guides, but  i am having taht problem with all FPM and BOBF Topics.   It is just too hard to do it right so i finally do mess up the principles quite for a lot of times.  There is a lack of proper material, that realy explains the contexts.  If all topics would have documentations in the style and qualitiy of Oliver Jaegles BOBF blogs, that would make far more develper use the tools at all and far better  )

 

Ulrich Becker

Deep Insert on CDS BOPF

$
0
0

Hey Experts,

 

i'm trying to execute a deep insert on a CDS-View published via Gateway and SADL. The CDS-View has created a BO and contains a association which is represented as a node in the generated BO.

 

The root view, which is also exposed as odata-service via sadl and gateway looks as follows

@ObjectModel.compositionRoot: true
@ObjectModel.modelCategory: #BUSINESS_OBJECT
@ObjectModel.writeEnabled: true
@ObjectModel.writeActivePersistence: '*****/CUMT_CUMAT'
@ObjectModel.createEnabled: true
@ObjectModel.deleteEnabled: true
@ObjectModel.updateEnabled: true
define view....
association [1..1] to ****/cumt_i_Text as _text    on $projection.db_key = _text.parent_key   and _text.spras = $session.system_language
.....     @ObjectModel.foreignKey.association: '_text'     key db_key          ....
// assosiation     @ObjectModel.association.type:  [ #TO_COMPOSITION_CHILD ]     _text

The associated view (which represents the header text of the main object) looks as follows

@ObjectModel.writeEnabled: true
@ObjectModel.writeActivePersistence: '*****/CUMT_CUMTX'
@ObjectModel.createEnabled: true
@ObjectModel.deleteEnabled: true
@ObjectModel.updateEnabled: true
define view.....     key db_key     ....

Read requests including expand of the _text association are processed correctly. The create request on the root node is also processed correctly and the entry is written to the db-table.

 

But by calling a deep insert (insert data into root node and child node) a exception occurs in the method /BOBF/CL_SADL_MAPPER~GET_BOPF_ALTERNATIVE_KEY

ev_sadl_key_field_name = mt_fieldmapping[ KEY fieldname_bopf                                                 COMPONENTS fieldname_bopf = /bobf/if_conf_c=>sc_attribute_name_key ]-fieldname_sadl.

 

Payload is looks as follows:

<?xml version="1.0" encoding="UTF-8"?><atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">   <atom:content type="application/xml">     <m:properties>       <d:active>true</d:active>       <d:class>T_REEL</d:class>       <d:cuobj>000000000000000076</d:cuobj>       <d:kdmat>Test Deep</d:kdmat>       <d:kunn2 />       <d:kunnr>90000</d:kunnr>       <d:matnr>1</d:matnr>       <d:parvw />       <d:spart>10</d:spart>       <d:status />       <d:vkorg>5000</d:vkorg>       <d:vtweg>10</d:vtweg>     </m:properties>   </atom:content>   <atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/to_text" type="application/atom+xml;type=entry" title="to_text">     <m:inline>       <atom:feed>         <atom:entry>           <atom:content type="application/xml">             <m:properties>               <d:shdescr>Folie Deep</d:shdescr>               <d:spras>DE</d:spras>             </m:properties>           </atom:content>         </atom:entry>       </atom:feed>     </m:inline>   </atom:link></atom:entry>

I haven't changed anything on the generated BO. Does anybody have an idea how deep inserts can be done on cds views which generated BOs?

 

System: SAP_BASIS 7.50 SPS01

 

Regards

Simon

Viewing all 309 articles
Browse latest View live


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