cancel
Showing results for 
Search instead for 
Did you mean: 

SC Created using FM BBP_PD_SC_CREATE (But only Header details are updated)

Former Member
0 Kudos

Hi,

Iam able to create SC using FM  BBP_PD_SC_CREATE.But i canot see Item/Account/Partner Details in BBP_PD Transaction.Header details are created with the status.

What iam missing.

thanks,

Sriram


Accepted Solutions (0)

Answers (3)

Answers (3)

robin_janke
Contributor
0 Kudos

Hi,

This may not be the answer to your specific question, but I recently found some interesting SAP program with some examples how to create any type of document using test data.

check out program /SAPSRM/TEST_TOOL_PROGRAM for some interesting code .

The header says enough I guess .

*&---------------------------------------------------------------------*
*& Report  /SAPSRM/TEST_TOOL_PROGRAM                                   *
*& - ONLY FOR INTERNAL USE -                                           *
*&---------------------------------------------------------------------*
*& SRM Test tool for                                                   *
*& Creation of different BO documents & follow-on                      *
*& by using PDO-Layer classes                                          *
*& - No UI Test Tool -                                                 *
*&---------------------------------------------------------------------*


Regards,

Robin

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

its transaction /SAPSRM/TEST_TOOL, should be called as /n/sapsrm/test_tool.

I knew the authors of this program

Regards

Konstantin

Former Member
0 Kudos

Hi All,

Actually iam calling SC creation screen through URL, i need to popualte some vlaues (Which comes from ECC) .What is the way to popualte values in to the Browser Window.We are using NWBC SRM7.

Thanks,

Sriram

ivy_li
Active Contributor
0 Kudos

Hi Sriram,

I suggest you create some Z-fields in SC to populate the value from ECC side.

This will satisfy your needs.

Regards,

Ivy

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

first of all - you need to fill position data.

ls_item-guid must not be initial

After

BBP_PD_SC_CREATE you may have to call

BBP_PD_SC_UPDATE with the same positions data and

BBP_PD_SC_SAVE at the end.

Regards

Konstantin

konstantin_anikeev
Active Contributor
0 Kudos

BBP_PD_SC_UPDATE - is important!

ivy_li
Active Contributor
0 Kudos

Hi Sriram,

the BAPI BBP_PD_SC_CREATE is used within the standard only in the

external requirement scenario, and is not released for customers.

However if you can successfully create it, would you please tell me the parameters you entered before executing this FM? Such as

I_ITEM

I_ACCOUNT

I_PARTNER

Best regards,

Ivy

Former Member
0 Kudos

Hi Ivy,

I have entered below parameters.

ls_item-guid

ls_item-parent      "header guid

ls_item-number_int

ls_item-number_ext

ls_item-product

ls_item-description

ls_item-product_type

ls_item-category
ls_item-category_id 

ls_item-quantity  ls_item-unit ls_item-price ls_item-gross_price ls_item-catalog_price ls_item-price_unit ls_item-deliv_date =  sy-datum + 1.
ls_item-be_co_code ls_item-currency ls_item-be_plant

Accounting Data

ls_account-guid
ls_account-p_guid    "item guid
ls_account-DISTR_PERC ls_account-acc_no ls_account-SRC_GUID
ls_account-g_l_acct ls_account-cost_ctr ls_account-co_area ls_account-profit_ctr ls_account-acc_cat

Partner data


*ls_bup-partner_guidls_bup-p_guid ls_bup-partner_fct ls_bup-partner_no

Thanks,

Sriram

ivy_li
Active Contributor
0 Kudos

Hi Sriram,

I still failed with 'buffer table not  up to date' dump after executing this FM with all the above parameters.

Would you please list all the values in all the parameters?

Meanwhile please note this FM is not used and release for customer to directly create SC with it, so it might cause a lot of problems.

I don't know why you create SC with this FM since it is very complicated to insert all these parameters. More complicated than directly create SC in portal.

Best regards,

Ivy