‎2007 Sep 18 6:13 PM
Hi Gurus,
I have to add custom fields to Standard SAP program SAPF080 that is used for Mass Reversal of a document.I mean I have to enhance this program so that the reversal of the document can be done by these custom fields.First I have to enhance the selection screen to include these custom fields and then enhnace START-OF-SELECTION to obtain all FI documents out of BSEG by the custom fields....
Can any of you gurus provide me some inputs to begin with....Any guidance from all of you will be appreciated...
Thanks...Please help...
Cheers:
Sam
Message was edited by:
Sam williams
‎2007 Sep 18 8:11 PM
It's not that hard....First copy <b>SAPF080</b> to <b>ZSAPF080</b>....Second...Look for the SELECT-SCREEN section and add your custom fields...Third...Add you logic using the new fields...
Greetings,
Blag.
‎2007 Sep 18 8:11 PM
It's not that hard....First copy <b>SAPF080</b> to <b>ZSAPF080</b>....Second...Look for the SELECT-SCREEN section and add your custom fields...Third...Add you logic using the new fields...
Greetings,
Blag.
‎2007 Sep 18 8:16 PM
Thanks for the reply...I have done this already...added the custom fields on the selection screen...Now it is about the logic...What kind of logic shud i write if i have 6 custom fields say field1 field2.....field6 and I have to write code in a way that when user enters the field1 then data is selected from BSEG and all the documents with value same as field1 are reversed....
What modifications do i have to made in this ZSAPF080....Please provide me some inputs...its a learning phase for me in ABAP....
Cheers:
Sam
‎2007 Sep 18 8:20 PM
You must look for the BSEG select and add your field...
LOOP AT XBKPF2.
SELECT * FROM BSEG
WHERE BUKRS = XBKPF2-BUKRS
AND BELNR = XBKPF2-BELNR
AND GJAHR = XBKPF2-GJAHR
AND ???? = FIELD1.
IF SY-SUBRC = 0.
APPEND BSEG TO XBSEG2.
ENDIF.
ENDSELECT.
ENDLOOP.
Replace ???? with the BSEG field that you must compare with your custom field....
Greetings,
Blag.
‎2007 Sep 18 8:29 PM
Thanks for the reply....
I have 6 custom fields...I was able to find the place where the BSEG select is made so do i have to write 6 selects in this.....
Also if the user just enters value in one of these fields and try to reverse will it be possible...I mean if user enters name in field1 then the code shud display all the documents with field1 as name and then reverse all of them....is it possible or am i going in the wrong direction...
Thanks...Any Suggestions...
kindly provide me some inputs
Message was edited by:
Sam williams
Message was edited by:
Sam williams