cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Vendor details against Spec in RMWB

Former Member
0 Likes
434

Experts,

I can see Vendor details again spec in RMWB Tcode in Property Tree section. I have a custom repo to display spec info. Currently users have to manually pick the spec, go to RMWB Tcode, drill down & see Vendor details.

I would like to display the same in my report. I have not been successful so far in figuring out table/BAPI to get Vendor info against Spec.

Please share your valuable inputs.

I would like add that i am providing hyperlink option in ALV output for spec col. Clicking it takes users to RMWB Tcode. The

From threads, i learn about FM C1F5_SPECIFICATIONS_READ. Executing this with inputs from SE37 Tcode gives message as seen in attachment.

BR,

Aspire

Accepted Solutions (1)

Accepted Solutions (1)

christoph_bergemann
Active Contributor
0 Likes

Hello

your demand is quite common; but normally other solutions are used. Inany case. the "correct" use of the BAPIs/APIs/FM ro read data in EH&S have been discussed quite often here. Some of the discussions are "combined" in this document:

The best option in most cases is to look at the SAP delivered output variant and how they do the job "internally; ABAP code etc.). If you take a look on the ABAP code usd there (e.g output variant "VALUATION" you will hopefully learn a lot about how to do it "right".

But honestly I can see no diffference (incomparison what you have done)  in use of tcode CG02 and output variant "VALUATION" (or similar ones) as you can use there a "hit list" and user get all data (in most cases) as needed for their daily work. On the top you can use the outputvariants in such a way that you can call them from "outside" using a RFC call (please check SAP docue etc.).

The last dicussion in that context was done here:

C.B.

PS: it is nearfly no tpossible to provide any kind of feedback based on the error you have shown without knowing the "ABAP" code you have used

Former Member
0 Likes

Chris,

Thanks a lot for your reply. I saw a thread where you had shared this link from which i got to know about BAPIs.

Will try your suggestions.

Thanks

Aspire

christoph_bergemann
Active Contributor
0 Likes

Dear Aspire

a further quite good example in SCN is:

This thread links to:

You might learn a lot in reading the discussions.

C.B.

Former Member
0 Likes

Chris,

Thanks for being kind in sharing valuable inputs. Links you shared were very helpful!

I had been passing incorrect inputs to C1F5_SPECIFICATIONS_READ FM.

Solution:

1) Reading FM doc cleared most of doubts

Code that worked for me is as below,


        lst_scenario-spec_head    = 'X'.

        lst_scenario-charact_data = 'X'.

  lst_addinf-valdat         = sy-datum.

***Also pass RECN value to table parameter lit_spec_tab

***NOTE: We can pick RECN value from ESTRH Table

CALL FUNCTION 'C1F5_SPECIFICATIONS_READ'

           EXPORTING

             i_scenario         = lst_scenario

             i_addinf           = lst_addinf

           TABLES

             x_spec_head_tab    = lit_spec_tab

             x_charact_data_tab = lit_charact_tab.

Executing this FM call will give values of fields in property tree in lit_charact_tab internal table. From this table, we can read the property tree value that we are interested in.

BR,

Aspire

Answers (0)