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

BOPF enhancment - Steps to delete an enhancement - Incident management

$
0
0

Hi All,

 

Can anyone guide on how to delete and enhancement of a BOPF object.

 

We  are currently working on Incident management. As part of our requirement we need an additional Tab "Claims" during incident creation.

At BO level the object EHHSS_INCIDENT had to be enhanced to add a subnode CLAIMS. This new object's name is Z_TEST_CLAIMS whose super business object is EHHSS_INCIDENT.


Is it possible to delete this enhancement object. While trying to delete this object it gives a message "

Can be deleted only if all its entities are deleted"


Can anyone help me with this as we have to remove this enhanced object for the time being....




Re: BOPF enhancment - Steps to delete an enhancement - Incident management

$
0
0

Hello Vivek,

 

if your system is uses the latest version use transaction BOBX, select the enhancement to be deleted in the list and choose "Delete" from context menu.

 

If your system has an older version, use transaction BOB, open the enhancement, delete all contained actions/determinations/validations and then afterwards delete the enhancement. Thereto select it in the BO list and chosse "Delete" from the context menu.

Best regards

Tilmann

BOPF - Adding F4 help for a custom field in Incident management

$
0
0

Hi All,

 

In our requirement , we have added custom fields multiple nodes like basic info, person injury, etc.

Incident creation uses GAF FPM. Incident display/change uses OIF FPM.

 

Our initial requirement was to have dropdown boxes for the custom fields, which works well with GAF as it displays the description of value.

However, in OIF the dropdowns only show the value and not the description. So we decided to stick with INPUT FIELD instead of DROPDOWN  .

For standard fields like PLANT , the plant description gets loaded on the screen as it is used as an element in the Melting Group.

I am trying to do the same with my custom fields but not having a clue like how it gets loaded from the UIBB.

I have added the descrption field as text view in the melting group similar to the standard fields.

 

While debugging the feeder class for plant field, the system was populating the value in runtime from the UIBB to the class for the standard field description but not in the case of custom field..

 

Help would be greatly appreciated as i have to implement this for 14 fields.

 

I have attached a file with screenshots , which explains the standard scenario and the custom scenario.

I am not sure if it has something to do with the search help.

 

thanks in advance.

Re: BOPF enhancment - Steps to delete an enhancement - Incident management

How to get BOBF Texts for T100 messages?

$
0
0

Hi All,

 

for my T100 Message APOC_OR_UI_MESSAGES with number 051 (Action "&1" is not available for the current item status "&2") I would like to reuse the action texts in BOBF. Could you tell me an API or DB-Table to fetch that texts?

Best regards

Christof

Re: How to get BOBF Texts for T100 messages?

Re: How to get BOBF Texts for T100 messages?

$
0
0

Hello Martin,

 

the message handling with ADD_CM I already implemented but for the actions I just have the GUID in the generated interface IF_APOC_OUTPUT_REQUEST_C which I should not provide in the message. I would like to fetch the action text e.g. 'RESEND' from BOBF and apply it to the message. How can I do that???

Best regards

Christof

Re: How to get BOBF Texts for T100 messages?

$
0
0

Hello Christof,

 

you can fetch the text of your action by using the following statement:

 

/bobf/cl_frw_factory=>get_configuration( is_ctx-bo_key )->get_act(
      EXPORTING
            iv_act_key = is_ctx-act_key
            iv_node_key = is_ctx-node_key
      IMPORTING
            es_action = ls_action ).

 

 

 

Cheers Chris


Re: How to get BOBF Texts for T100 messages?

$
0
0

Hello Chris,

 

thanks a lot for your reply. I tried it out but I am only getting the ls_action-act_name filled with the technical name of the action e.g. ISSUE_OUTPUT but I would like to have the language dependent text which I can also see in tx. BOBX which would be "Issue Output". How could I get that one?

Best regards

Christof

unable to fetch data of BOPF from Odata service

$
0
0

Hello,

 

I have created the bopf object: ztest.

I created odata service and redefined the odata model with bopf.

/bofu/gui_cust table entry is

client: 100, service name: ztest1_srv, service version: 1, model name: ztest1_mdl, version:1, bo : ztest, default query: select_all.

 

If i try to overwrite the data model of odata service, it will create new entry in /bopf/gbi_cust table.

 

when i generate the odata service and run my service in /iwfnd/gw_client.

service url:  /sap/opu/odata/SAP/ZTEST1_SRV;v=0002/ROOTCollection.

 

question: 1. why the service url is appended wiht ;v=0002 is added in the url.

how to make it work without version value appended?

2. did i do any mistake while creating the odata service?

3. while creating i got the service name: ztest1_1_srv.

Can somebody help me in creating step by step procedure to create odata service with screenshots in $tmp package?

I have created almost 3 t 4, but still i am not getting.

If i remove the version, i cant access the odata service. 403 forbidden error.No service found for namespace , name ZTEST1_SRV, version 0001.

 

please help me with this.

Also, my UI need to access data like tree table,

node1->node2->node3 in stepwise node1 is root node.

 

how to query this way from ui or rest client?

Rootnode("ABC")/Pages("xyz")/list("123").

Re: unable to fetch data of BOPF from Odata service

$
0
0

You can find the name of the link under the "Navigation Properties" of the root node in SEGW

 

So in your example "node1 -> node2"

the URL could be /sap/opu/odata/SAP/ZTEST/node1("Condition")/"Name from the navigation properties".

 

Atleast this worked for me

 

Raj

Wrong call of CALL FUNCTION 'NUMBER_GET_INFO' in /BOFU/CL_D_DRAW_NUMBER

$
0
0

Hello Colleagues,

 

I wonder a bit of what I see in /BOBF/IF_FRW_DETERMINATION~EXECUTE (/BOFU/CL_D_DRAW_NUMBER). There is a CALL FUNCTION 'NUMBER_GET_INFO' with attribute mv_subobject. The attribute mv_subobject is defined as boolean in the class but SAP function module expects the name if the subobject in number range there. The value is not a boolean it is a CHAR(6) value.

 

I think this implementation is wrong.

 

Check line 152 ff in /BOBF/IF_FRW_DETERMINATION~EXECUTE.

 

Can someone confirm my thoughts? Can someone at SAP fix this if it is a bug?

 

Thanks

 

Best regards

 

Roman

Re: How to get BOBF Texts for T100 messages?

$
0
0

Hello Christof,

 

you can try to use the standard BO '/BOBF/CONF_MODEL' to fetch the description of your action.

 

You have to perform the following steps:

  1. Get instance of serviceManager for the above mentioned BO
  2. Retrieve ROOT node with key of your BO
  3. RetrieveByAssociation ToActiveVersion
  4. RerieveByAssociation Action

 

Now you have a table containing all actions of your BO. You can read this table with your acition key. The field description should contain the required information.

 

You can also read the table /BOBF/ACT_LISTT directly to fetch the description of your action.

 

Please keep in mind that your description is language dependent and can be initial.

 

Cheers Chris

How to create subnode entries with an action

$
0
0

Hello Colleagues,

 

maybe someone can help me out. I have this structure:

 

ROOT

     - ROOT_TEXT

 

I have an action to import data for ROOT and ROOT_TEXT at one instance. Updating the ROOT node with the imported data was "easy" but now I must create multiple new records at ROOT_TEXT at the same time. I think I must use io_modify->create but how can I get the right keys and connect the ROOT with the ROOT_TEXT.

 

Maybe someone can give me a hint or has an example for better understanding how to use.

 

Many thanks

 

Roman

Re: How to get BOBF Texts for T100 messages?


Re: How to create subnode entries with an action

$
0
0

Hello Roman,

 

you are absolutely right. You can use io_modify->crate to create ROOT_TEXT nodes. Below you can find an example for the creation of the ROOT_TEXT nodes. I am assuming that your action belongs to the ROOT node.

 

 

    io_modify->create(

      EXPORTING

        iv_node            = <constant_interface>=>sc_node-root_text

        is_data            = <ref to data type ROOT_TEXT>

        iv_assoc_key       = <constant_interface>=>sc_association-root-root_text

        iv_source_node_key = <constant_interface>=>sc_node-root

        iv_source_key      = <key of ROOT node instance> ).

 

 

 

May I ask you how your association between ROOT and ROOT_TEXT is designed? Maybe it might be useful to have a look at the library class /BOBF/CL_LIB_C_LANGUAGE. This is a very helpful class for text associations.

 

 

Cheers Chris 

Re: How to create subnode entries with an action

$
0
0

Hello Chris,

 

thanks for the quick answer. Then I am on the right way. I managed to get it work.

 

What especially did you mean with your note about ROOT and ROOT_TEXT association? Can you give me some more hints please.

 

Many thanks


Roman

Re: How to create subnode entries with an action

$
0
0

Hello Roman,

 

as you probably know there are many useful library classes provided by SAP which could be for custom BOPF objects. One of those classes is the above mentioned class /BOBF/CL_LIB_C_LANGUAGE. It provides functionality to resolve TEXT-associations during retrieve_by_association. More detailed information could be found in the english class documentation of this class. You can find an example of the usage in the attached screenshots.

As a prerequisit you have to include the structure /BOBF/S_LIB_C_LANGUAGE in the data structure of your node ROOT_TEXT.

 

 

Cheers Chris

 

association.JPG

Re: How to create subnode entries with an action

$
0
0

Thanks. Good hint and very clear now.

 

Roman

/BOBF/IF_FRW_CHANGE~GET_CHANGES: precise Meaning of IV_FAILED

$
0
0

Hi,

I have tried to understand /BOBF/CL_FRW_CHANGE... .

 

ABAP Doc says abaout parameter iv_failed:

If true, the result of the method will also contain change information of modifications that have been failed and are thus not executed.

 

Is it correct that both kind of keys are given when this flag is set: failed AND succeeded keys? Or only failed keys?

 

We want to consider only the failed ones. Does it mean we have to do the subtraction for ourselves?

 

Regards, Jürgen

Viewing all 726 articles
Browse latest View live


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