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

Creation of Action Validation is not possible

$
0
0

Hi Experts,

 

 

I wanted to create Action Validation in my generated CDS View based BOPF BO,

but it is not allowed in transaction /BOBF/CONF_UI.  It can be opened only in display mode.

(Figures 1. , 2.)

 

I tried to use transaction BOBX instead.

Edit mode is allowed here but Create Action Validation is missing from the context menu

(Figure 3.)

 

Is there any prerequisite to create Action Validation in this case? Or any other idea what's wrong with it?

 

 

Regards,

Laszlo

 

 

Figure 1. (transaction /BOBF/CONF_UI)

BOBF_CONF_UI_1.jpg

 

Figure 2. (transaction /BOBF/CONF_UI)

BOBF_CONF_UI_2.jpg

 

Figure 3. (transaction BOBX)

BOBX.jpg


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

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

Assigning Freight unit to a Freight Booking

$
0
0

Hi All,

 

How can I assign the freight unit to a freight booking , I tried the below code but it is going to the dump.

 

          READ TABLE lt_root_fb INTO lwa_root_fb INDEX 1.
IF sy-subrc = 0.
REFRESH lt_key_root.


* Existing Freight Booking Key


ls_key_root-key = lwa_root_fb-root_key.
APPEND ls_key_root TO lt_key_root.


* Freight Unit Key that we are used to assign to the existing Freight Booking


ls_key_item-key = <lfs_tor_item>-fu_root_key.
APPEND ls_key_item TO lt_key_item.
ls_parameters-target_item_keys = lt_key_item.

* Adding string for test planning


ls_parameters-string = '001'.
GET REFERENCE OF ls_parameters INTO lr_s_parameters.

* Assign the Freight unit to Freight booking
CALL METHOD lo_srv_mgr->do_action
EXPORTING
iv_act_key           = /scmtms/if_tor_c=>sc_action-root-add_fu_by_fuid
it_key               = lt_key_root
is_parameters        = lr_s_parameters
IMPORTING
*               eo_change            = lo_change
eo_message           = lo_msg
et_failed_key        = lt_failed_key
et_failed_action_key = lt_failed_act_key.

 

* Saving the Action
if lt_failed_key is INITIAL and
lt_failed_act_key is INITIAL.
lo_tra->save( IMPORTING  eo_message = lo_msg ).
endif.
ENDIF.


Thanks,

Arun

How to migrate correct

$
0
0

Hello,

 

I have a problem and I don't know how to solve it correct.

We use SRM (with some parts of SLC) and in the past we have created a lot of Z Tables with Z Data in it. Now, I have to rebuild one Datatype and I thought: hey migrate it to BOPF. But I'm not sure how to do it correct.

 

The actual situation is like the following.

We have Business Partners in Standardtables BUT000, ADRC, ...

In a Z Table we have Information about special Roles a BP can use in our Portal. In the Customizing Table there are the Roletypes, including Texts and some additional Informations to control the process.

And then, we have a table where the Role are assiocated to a BP, it is just a table with the key fields of the Customizing Table and BP (GUID and PartnerID) and a add. Textfield for comments.

 

How to migrate this to BOPF? Is the Customizingtable a BOPF Object? Or BP? Can you give me some hints/advice?

 

Kind regards and thank you in advance.

Bastian Stritt

Are there Workflow items based on bobf planned/possible

$
0
0

Hello together,

 

i only found the sentence that ppf can action an workflow out of BOBF and i am wondering that/if we realy still have to build Old BO for Workflow design?

 

Am i right, that i need to create an old fashioned BO even i want to have the actions in the bobf?

 

Is there any reusable object to support defining the Workflow tasks based on bobf?

 

 

Thanks for any help,

 

Ulrich Becker

Save specific instances in BOPF

$
0
0

Hi Experts,

 

I have N number of instances created for a BO node. But while saving i have a requirement of saving only some specific instances. Is this possible....I am using transaction manager SAVE but it saves all the data which is present in the buffer at that moment.

 

Any Help will be greatly appreciated.

 

Regards,

Joyal

Possible to put BOPF View in old FPM Application?

$
0
0

Hello folks,

 

I have created a new BOPF Object and now I want to display the data in a List View via FBI. So far so good. But when I just add an UIBB (FPM_LIST_UIBB_ATS) and use Feeder Class /BOFU/CL_FBI_GUIBB_LIST_ATS. Now I added some fields and, with high hopes, I started the Application...dump: MOVE_CAST_ERROR between /BOFU/CL_FBI_CONTROLLER and /BOFU/IF_FBI_CONTROLLER_NEW.

Some searches later I found out that I need to configure the Application Controller. But I don't have a separated application for this BO. It is just some Z Data for an Standardobject (BP) which don't uses BOPF yet (SRM).

 

I tried to manage our zdata via BOPF. Is this even possible?

 

kind regards

Bastian Stritt


can we Implement existing Non-BOPF application in BOPF framework ???

$
0
0

Existing ABAP application tables  doesn't have DB key , Root key and Parent Keys so
1. if i create new table with these keys then
2. how can i get that already existing data of old application to new BOPF application ???
3. if i create data entry in new application should i replicate same data in old tables also???:

 


Example : SD module applications







Examples on BOPF

$
0
0

Hi All,

   Can anyone provide me with the examples on BOPF in IDES System.

 

  Thanks in Advance.

 

Regards,

Deepa Adla

Help me to find the BOPF constant inteface name in programming (provided only object name)

$
0
0

Hi Experts,

 

i have generated a bopf object , Constants interface is generated  and object is working well and good.

 

my requirement is to read the data from the program(different class) which has input of ROOT KEY and OBJECT NAME.  My question is how do i find the constant interface name which is generated in the design time and through which i can read / modify the data.

 

Please help me to find the interface name Associated with bopf object  by providing BOPF object name .

 

Thank you in advance.

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

When use consistency validation check in BOPF, how to prevent the data being saved?

$
0
0

Hello,

 

When use consistency validation check in BOPF, how to prevent the data being saved?

 

In help document link:Validation - Business Object Metadata Model - SAP Library

if there are inconsistent node instances, a consistency validation behaves in one of the following ways:

 

  • The validation sends messages to the consumer
  • The validation sends messages to the consumer and prevents the transaction from being saved until the inconsistency is corrected
  • The validation sends messages to the consumer and changes the consistency status.

 

I created a test class, but the data still be saved as the first way. How to implement the class like the second way?

 

Thank you.

Mix transient and persistent data

$
0
0

Hi,

 

I'm new to BOPF and have looked at the tutorials and blogs. I know the ABAP Object Services, and there we can create transient and persistent instances of the same object. In BOPF I can have transient attributes or transient nodes. Is there a way to have one node containing transient and persistent entries?

 

The reason behind the question: I want to display in a uniform table data that is for some rows persisted on the database, and for some other rows comes from a different web service. The data from comming from the web service is read only, but the data from the DB should be possible to change. In ABAP Object Services I simple can create transient objects for the data comming from the webservice and persistent objects for the data from the DB and combine them easyliy in a table and operate on them in the same way, as they are of the same class type.

 

Any ideas how to achieve that in BOPF?

 

Thanks for all your input,

Peter

What is the use of process control BO in BOPF??

$
0
0

What is the use of process control BO in BOPF??


BOPF node Locking and Unlocking????

$
0
0

Hi Experts,

 

  in my Incident Management project i have one business scenario where on enabling send to shift supervisor and pressing save button , one workflow will trigger that will send that incident to supervisor where in that one of the workflow step has to change the status of that incident to "in-process"
but in that workflow step its not getting update because that incident is locked in UI  .

 

So is there any way to unlock that incident by coding so i can unlock that incident in that step and update.

Show field in red in case of error.

$
0
0

Hi guys.

 

I'm working in determination and the node is trq item.

In screen i want show a specific field of specific line item like red color.

 

I tried my normal code typping the atribute but din´t work:

 

CLEAR: lv_message.

               lv_message-msgty = 'E'.

               lv_message-msgid = 'ZMSG_PARTY_ID'.

               lv_message-msgno = '037'.

 

               lv_peso_limite   = ls_equi_code-max_gross_weight.

               lv_message-msgv1 = lv_peso_limite.

               lv_message-msgv2 = 'KG'.

 

               CONDENSE lv_message-msgv1 NO-GAPS.

 

               READ TABLE it_key INTO DATA(ls_key) INDEX 1.

 

               IF eo_message IS NOT BOUND.

                 eo_message = /bobf/cl_frw_factory=>get_message( ).

               ENDIF.

 

               eo_message->add_message(

                 is_msg  = lv_message

                 iv_node = is_ctx-node_key

                 iv_key  = ls_key-key

                 iv_attribute = 'PACKAGE_TYPE'

                              ).

 

               APPEND ls_key TO et_failed_key.


the screen have many items line.



ITEM_RED.png


There are a way to do it?


Thanks.

No authorization to create instances

$
0
0

Hi all,

 

We've created a BO with authorization checks. Our authorization object has three fields : ACTVT, BO_SERVICE and an extra field VKORG (sales org). In our roles we want to allow our user to perform CRUD operations, but only for specific sales organizations.

 

For instance:

ACTVT : 01, 02, 03

BO_SERVICE : (blank)

VKORG : XYZ

 

We thought that this would allow the user to create/change/display instances of our BO for sales organization XYZ. But unfortunately we receive an error that says that we don't have the authorization to create instances of our ROOT.

 

Apparently the authorization check is executed when we click on the create button in BOBT (or start our FPM application with CHANGE_MODE = C). All the fields of our ROOT are blank at that moment, so the authorization check fails because the user does not have the authorization to create an instance with a blank value for VKORG.

 

Does this mean that we have to grant all users the ACTVT 01 for a blank VKORG? This doesn't feel right? Instead, we'll create our own version of /BOBF/CL_LIB_AUTHCHECK_W_QUERY to avoid this check.

 

Or is there another solution to this problem?

 

Best regards

Liesbeth

Cannot use BOBX nor Eclipse for BO editing

$
0
0

Hi team,

 

I cannot use transaction bobx nor eclipse for editing my BO anymore. Both work in read-only mode only and there is a message /bobf/conf_ui 384 that says that the BO has been created in /bobf/conf_ui which is not the case. Apparently I did some change using the old transaction at some point of time. Is there a way how to "unlock" my BO and make it editable from BOBX?

 

Kind Regards,
Igor.

BOPF usable for Customizing Tables

$
0
0

Hello folks,

 

I have to build some Customizing Tables. I'm right, if I guess, that BOPF is not really useful for this? I need SM30 Views. Or have you some experience for this?

 

Kind regards

Bastian Stritt

Viewing all 249 articles
Browse latest View live


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