Hello all,
i am using program RFBIBL00 to make G/L account postings for tr. FB01.everything is fine,but i am not able to populate the fields product,plant and distribution channel in the screen Assignment to Profitability Segment.When i run the program in foreground the screen does appear but the values do not pass into these fields.
I populate the BBSEG str. as follows.
FORM BBSEG_DATEN_DEBI.
PERFORM INIT_BBSEG(RFBIBLI0) USING BBSEG.
BBSEG-NEWBS = ITAB-NEWBS.
BBSEG-NEWKO(17) = ITAB-NEWKO.
BBSEG-WRBTR = ITAB-WRBTR.
BBSEG-GSBER = ITAB-GSBER.
BBSEG-RKE_ARTNR = ITAB-PRODUCT. "str.COPABBSEG
BBSEG-RKE_WERKS = ITAB-PLANT. "str.COPABBSEG
BBSEG-RKE_VTWEG = ITAB-DISTCHANNEL."str.COPABBSEG
BBSEG-ZUONR = ITAB-ZUONR.
BBSEG-SGTXT = ITAB-SGTXT.
TRANSFER BBSEG TO DS_NAME.
Kindly help me.
Regards.
Milind.
ENDFORM.