on ‎2015 Jun 20 2:30 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.