Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

configuring SD_SALESDOCUMENT_CREATE

Former Member
0 Likes
1,663

Hello Experts,

I was trying to create a sales document using FM 'SD_SALESDOCUMENT_CREATE'.

I'm passing Header, Item and Configuration details in respective structures.

It is creating Header and Item data but Configuration data for target quantity in the iten overview screen and

QTY in the condition tab of the item is not getting populating at the same time. If target quantity is fillend the QTY in condiotin tabe is not getting populated or vice versa.

Can anyone tell me how to configure item material in above FM.

thanks

khushy

9 REPLIES 9
Read only

Former Member
0 Likes
1,429

Hi,

Fill the Quantity details in SALES_SCHEDULES_IN & SALES_SCHEDULES_INX structures also. Pass quantity in the structure field SALES_SCHEDULES_IN-REQ_QTY.

Regards

Vinod

Read only

0 Likes
1,429

thanks vinod for reply . But i have done that still my QTY filed on the condition item tab is blank

please help!!!!

regards,

khushy

Read only

0 Likes
1,429

Hi,

After filling SCHEDULE LINE structures, does the quantity field is updating at item level (VBAP)?

Regards

Vinod

Read only

0 Likes
1,429

targert quantity is not filled but the order quantity in VBAP is filled

regds

khushy

Read only

0 Likes
1,429

Hi,

Update the structure field ORDER_ITEMS_IN-TARGET_QTY also.

Regards

Vinod

Read only

0 Likes
1,429

Vinod ...thats the only problem i filled that tooo still its not coming up in the order

Read only

0 Likes
1,429

Hi, see the sample code below, cross check this with your code.

fill item & item flags
  wa_itemordx-updateflag = 'I'.
  wa_itemord-itm_number = <item no>
  wa_itemord-material = <material no>.
  wa_itemord-plant    = <plant>.
  wa_itemord-target_qty = <quantity>.
  wa_itemordx-itm_number = 'X'.
  wa_itemordx-material = 'X'.
  wa_itemordx-plant   = 'X'.
  wa_itemordx-target_qty = 'X'.
  append wa_itemordx to it_itemordx.
  append wa_itemord to it_itemord.

*Fill schedule lines
  wa_schedules_in-itm_number = <item no>.
  wa_schedules_in-sched_line = '0001'.
  wa_schedules_in-req_qty    = <quantity>.
  append wa_schedules_in to it_schedules_in.

* Fill schedule line flags
  wa_schedules_inx-itm_number  = <item no>
  wa_schedules_inx-sched_line  = '0001'.
  wa_schedules_inx-updateflag  = 'X'.
  wa_schedules_inx-req_qty     = 'X'.
  append wa_schedules_inx to it_schedules_inx.

Regards

Vinod

Read only

0 Likes
1,429

vinod i tried exactly the same what you have posed still my target quantity is coming blank

Read only

0 Likes
1,429

Just a small thing .... is it something like that for credit memos which will created from outside (means not manually)...target quality at item line will not be displayed only quanity in condition tab inside .... will be populated. i am trying to create a credit memo

please suggest

regards,

khushy