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

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


can't create a BOPF-Object

$
0
0

Hi,

i want to create a BOPF with eclipse but getting the following error:

bopfproblem.PNG

 

i think the release of our system should work...

 

best regards,

Michael

Workflow Initiation

$
0
0

Hi Experts,

 

   I am looking to integrate SAP workflow in BOPF based Business object.

  •   Do I need to make use of Determinations to start the workflow?
  •   If I have to use it then what should be the category .

 

Thanks

Pavan

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


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

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.

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.

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 309 articles
Browse latest View live


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