Skip to Content
0

BDC mass Upload for APO Life Cycle Planning T-Code - /N/SAPAPO/MSDP_FCST1

Nov 25, 2016 at 09:35 AM

146

avatar image

Hi All,

I have a requirement for Mass uploading for APO Life Cycle Planning T-Code /N/SAPAPO/MSDP_FCST1.

Initially we searched for BAPI FM's and raised question in SCN. Kindly check the below link.

SCN bapi link

We got various answers that we can only be able to use normal FM's. There is no BAPI for Following tcode.

Our try with the FM's failed, so we moved to implement in BDC programming.

I am facing an issue on this BDC approach.

Screen: Assignemnt

The table control in assignment screen is not allowing me to input more than 20 records.

I want to write a logic, when the sy-tabix is greater than 20 the table control should show the next page.

My recording contains only BDC_OKCODE = '/00' for all the line items, so i manually populated ('P++') buy its not working.

 IF lv_count >= 20.
          PERFORM bdc_dynpro      USING '/SAPAPO/SAPLMCPF' '0801'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'G_FCST_LC1-MERKMAL1(01)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=P++'. "'=UEBN'.
          PERFORM bdc_dynpro      USING '/SAPAPO/RMDP_FCST_LC_CALL' '1000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'. 
          PERFORM concat_field_assign CHANGING fld_assign1 fld_assign2 
                                               fld_assign3 fld_assign4
                                               fld_assign5 fld_assign6 
                                               fld_assign7 fld_assign8.
ENDIF.

Below is the screen shot of Assignment screen

When I execute the BDC Program, the existing lines are replaced by the new lines in the DB table as well.

Any input how to achieve the next page in BDC for APO Life Cycle Planning ?

asign.jpg (140.6 kB)
10 |10000 characters needed characters left characters exceeded

May I know if there is any issue with this thread because I do not see any response or view from a long time.

Anyone please.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sijin Chandran Nov 30, 2016 at 10:07 AM
0

Hi Prabin,

I faced the same issue with same tcode couple of weeks ago.

Please refer the below link , it might be helpful.

https://archive.sap.com/discussions/thread/3940311

Thanks,

Sijin

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Sijin,

Thanks for the response.

We opted the function module technique again , Will update the status soon.

Regards,

Prabin

0