Skip to Content
author's profile photo Former Member
Former Member

BDC for FAGLSKF...?Need Help...

Hi Gurus,

I am trying to do a BDC for FAGLSKF transaction but it doesnt seem to work...I am doing it thru SHDB transaction and when i generate program from it it doesnt show the line items...

Also I have to capture the BDC for two layout: Profit Center and Cost Center....can i do it in one BDC program or not...?

If I can how shud i do it..and how shud i change the recording sequence so that the line items are also visible in the program that is generated from the recording...

Please help....its a critical situation for me here...

Cheers:

Sam

I

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 06:12 PM

    Hi Sam,

    Better way is record the bdc and when table control comes enter first line of data and press enter and then enter the second line and save it.

    now make two internal tables or more depending on ur table control.

    and keep the line items data in a loop and keep all the bdc table prepare data for the table control inside it.

    and then call ur transaction and keep refreshing the bdcdata as the new data will be filled in the second time.

    or use one of the following

    In recording of BDC, it is always advisable NOT TO USE scroll functionality as it depends upon what screen size (800X600 or 1200X1024 or something else) user has selected.

    What you need to do here is,

    Use '+' button given below in the VL01N transaction. The F-Code for that is 'POAN_T'. So here, you need to add one item at a time and press this button and so that you will always need to add the new row at the second line as the previous all the lines will be scrolled above by SAP.

    But still if you want to go with your scrolling. You need to take care about the screen resolution problem.

    1. while recording ensure that it is in default size. Just ensure the check box is checked or not.

    2. while processing means if call transaction use ctu_params structure and make defsize eq 'X'.

    3. If it is session method just ensure that dynpro standard size check box is checked or not.

    This way you can overcome screen resolution problem.

    it depends on the transaction whichyou are suing.

    But general way you can follow the above tips

    For sample code go through the below link.

    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

    <b><REMOVED BY MODERATOR></b>

    Regards,

    KK

    Message was edited by:

    Alvaro Tejada Galindo

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the reply kishore....

      In my case the BDC recording program thai is generated doesnt see the line items....I mean when i go to transaction FAGLSKF and enter data and save a document number is generated ...when i am doing the recording of FAGLSKF in the program there are no line items fields...i just see the header data....

      I am attaching the piece of code that is generated from BDC recording with no line items:

      perform bdc_dynpro using 'FAGLSKF_POST_LOCAL' '0100'.

      perform bdc_field using 'BDC_OKCODE'

      '/EBKWE'.

      perform bdc_dynpro using 'SAPLACHD' '1000'.

      perform bdc_field using 'BDC_CURSOR'

      'BKPF-BUKRS'.

      perform bdc_field using 'BDC_OKCODE'

      '=ENTR'.

      perform bdc_field using 'BKPF-BUKRS'

      wa_bdc_document_item_main-BUKRS.

      perform bdc_dynpro using 'FAGLSKF_POST_LOCAL' '0100'.

      perform bdc_field using 'BDC_OKCODE'

      '/00'.

      perform bdc_field using 'BDC_CURSOR'

      'FAGLSKF_HEAD-DATE_FROM'.

      perform bdc_field using 'FAGLSKF_HEAD-DATE_FROM'

      wa_bdc_document_item_main-DATE_FROM.

      perform bdc_dynpro using 'FAGLSKF_POST_LOCAL' '0100'.

      perform bdc_field using 'BDC_OKCODE'

      '=CHECK'.

      perform bdc_field using 'FAGLSKF_HEAD-DATE_FROM'

      wa_bdc_document_item_main-DATE_FROM.

      perform bdc_field using 'FAGLSKF_HEAD-DATE_TO'

      wa_bdc_document_item_main-DATE_TO.

      perform bdc_dynpro using 'FAGLSKF_POST_LOCAL' '0100'.

      perform bdc_field using 'BDC_OKCODE'

      '=SAVE'.

      perform bdc_field using 'FAGLSKF_HEAD-DATE_FROM'

      '2007.09.01'.

      perform bdc_field using 'FAGLSKF_HEAD-DATE_TO'

      I have tried to make changes but it doesnt seem to work...

      Please help...

      Cheers:

      Sam

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.